module __float32__floor_with_denorms( input wire [31:0] f, output wire [31: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 [7:0] priority_sel_8b_2way (input reg [1:0] sel, input reg [7:0] case0, input reg [7:0] case1, input reg [7:0] default_value); begin casez (sel) 2'b?1: begin priority_sel_8b_2way = case0; end 2'b10: begin priority_sel_8b_2way = case1; end 2'b00: begin priority_sel_8b_2way = default_value; end default: begin // Propagate X priority_sel_8b_2way = 8'dx; end endcase end endfunction wire [7:0] f_bexp__1; wire [7:0] exp__1; wire literal_768; wire [22:0] f_fraction__1; wire [22:0] fractional_mask__1; wire [23:0] fraction_up__2; wire [7:0] literal_776; wire [7:0] EXPR_MASK; wire and_reduce_782; wire eq_784; wire eq_785; wire f_sign__1; wire [22:0] fraction_integral__2; wire [22:0] fraction_integral__4; wire and_792; wire [7:0] sign_ext_796; wire or_800; wire nor_801; wire ult_804; wire [7:0] add_808; wire [22:0] sel_810; wire [31:0] tuple_826; assign f_bexp__1 = f[30:23]; assign exp__1 = f_bexp__1 + 8'h81; assign literal_768 = 1'h0; assign f_fraction__1 = f[22:0]; assign fractional_mask__1 = {{24{exp__1[7]}}, exp__1} >= 32'h0000_0017 ? 23'h00_0000 : 23'h7f_ffff >> {{24{exp__1[7]}}, exp__1}; assign fraction_up__2 = {literal_768, f_fraction__1} + {literal_768, fractional_mask__1}; assign literal_776 = 8'h00; assign EXPR_MASK = 8'hff; assign and_reduce_782 = &f_bexp__1[6:0]; assign eq_784 = f_fraction__1 == 23'h00_0000; assign eq_785 = f_bexp__1 == EXPR_MASK; assign f_sign__1 = f[31:31]; assign fraction_integral__2 = ~(~f_fraction__1 | fractional_mask__1); assign fraction_integral__4 = ~(~fraction_up__2[22:0] | fractional_mask__1); assign and_792 = f_bexp__1 == literal_776 & eq_784; assign sign_ext_796 = {8{f_sign__1}}; assign or_800 = and_792 | eq_785 & eq_784; assign nor_801 = ~(~eq_785 | eq_784); assign ult_804 = f_bexp__1 < 8'h96; assign add_808 = f_bexp__1 + ({7'h00, fraction_up__2[23]} & sign_ext_796); assign sel_810 = ult_804 ? (f_sign__1 ? fraction_integral__4 : fraction_integral__2) & {23{f_bexp__1[7] | and_reduce_782}} : f_fraction__1; assign tuple_826 = {~(nor_801 | ~f_sign__1), priority_sel_8b_2way({and_792, eq_785}, EXPR_MASK, literal_776, ult_804 ? (~(f_bexp__1[7] | and_reduce_782) ? {literal_768, sign_ext_796[6:0]} : add_808) : f_bexp__1), {priority_sel_1b_2way({or_800, nor_801}, 1'h1, literal_768, sel_810[22]), sel_810[21:0] & {22{~(or_800 | nor_801)}}}}; assign out = tuple_826; endmodule