module __float64__ceil_with_denorms( input wire [63:0] f, output wire [63:0] out ); function automatic priority_sel_1b_2way (input reg [1:0] sel, input reg case0, input reg case1, input reg default_value); begin casez (sel) 2'b?1: begin priority_sel_1b_2way = case0; end 2'b10: begin priority_sel_1b_2way = case1; end 2'b00: begin priority_sel_1b_2way = default_value; end default: begin // Propagate X priority_sel_1b_2way = 1'dx; end endcase end endfunction function automatic [10:0] priority_sel_11b_2way (input reg [1:0] sel, input reg [10:0] case0, input reg [10:0] case1, input reg [10:0] default_value); begin casez (sel) 2'b?1: begin priority_sel_11b_2way = case0; end 2'b10: begin priority_sel_11b_2way = case1; end 2'b00: begin priority_sel_11b_2way = default_value; end default: begin // Propagate X priority_sel_11b_2way = 11'dx; end endcase end endfunction wire [10:0] f_bexp__1; wire [10:0] exp__1; wire literal_771; wire [51:0] f_fraction__1; wire [51:0] fractional_mask__1; wire [52:0] fraction_up__2; wire [10:0] literal_779; wire [10:0] EXPR_MASK; wire f_sign__1; wire and_reduce_786; wire eq_788; wire eq_789; wire [51:0] fraction_integral__4; wire [51:0] fraction_integral__2; wire and_796; wire [10:0] sign_ext_800; wire or_804; wire nor_805; wire ult_808; wire [10:0] add_812; wire [51:0] sel_814; wire [63:0] tuple_829; assign f_bexp__1 = f[62:52]; assign exp__1 = f_bexp__1 + 11'h401; assign literal_771 = 1'h0; assign f_fraction__1 = f[51:0]; assign fractional_mask__1 = {{21{exp__1[10]}}, exp__1} >= 32'h0000_0034 ? 52'h0_0000_0000_0000 : 52'hf_ffff_ffff_ffff >> {{21{exp__1[10]}}, exp__1}; assign fraction_up__2 = {literal_771, f_fraction__1} + {literal_771, fractional_mask__1}; assign literal_779 = 11'h000; assign EXPR_MASK = 11'h7ff; assign f_sign__1 = f[63:63]; assign and_reduce_786 = &f_bexp__1[9:0]; assign eq_788 = f_fraction__1 == 52'h0_0000_0000_0000; assign eq_789 = f_bexp__1 == EXPR_MASK; assign fraction_integral__4 = ~(~fraction_up__2[51:0] | fractional_mask__1); assign fraction_integral__2 = ~(~f_fraction__1 | fractional_mask__1); assign and_796 = f_bexp__1 == literal_779 & eq_788; assign sign_ext_800 = {11{~f_sign__1}}; assign or_804 = and_796 | eq_789 & eq_788; assign nor_805 = ~(~eq_789 | eq_788); assign ult_808 = f_bexp__1 < 11'h433; assign add_812 = f_bexp__1 + ({10'h000, fraction_up__2[52]} & sign_ext_800); assign sel_814 = ult_808 ? (f_sign__1 ? fraction_integral__2 : fraction_integral__4) & {52{f_bexp__1[10] | and_reduce_786}} : f_fraction__1; assign tuple_829 = {~(nor_805 | ~f_sign__1), priority_sel_11b_2way({and_796, eq_789}, EXPR_MASK, literal_779, ult_808 ? (~(f_bexp__1[10] | and_reduce_786) ? {literal_771, sign_ext_800[9:0]} : add_812) : f_bexp__1), {priority_sel_1b_2way({or_804, nor_805}, 1'h1, literal_771, sel_814[51]), sel_814[50:0] & {51{~(or_804 | nor_805)}}}}; assign out = tuple_829; endmodule