module __hfloat16__floor_daz( input wire [15:0] f, output wire [15: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 [4:0] priority_sel_5b_2way (input reg [1:0] sel, input reg [4:0] case0, input reg [4:0] case1, input reg [4:0] default_value); begin casez (sel) 2'b?1: begin priority_sel_5b_2way = case0; end 2'b10: begin priority_sel_5b_2way = case1; end 2'b00: begin priority_sel_5b_2way = default_value; end default: begin // Propagate X priority_sel_5b_2way = 5'dx; end endcase end endfunction wire [4:0] f_bexp__2; wire [4:0] exp; wire [9:0] tuple_index_794; wire [9:0] fractional_mask__2; wire [10:0] fraction_up__2; wire eq_802; wire and_reduce_807; wire f_sign__1; wire [4:0] EXPR_MASK; wire ne_813; wire [9:0] fraction_integral__2; wire [9:0] fraction_integral__4; wire [4:0] sign_ext_818; wire eq_819; wire ult_827; wire [4:0] add_830; wire and_833; wire [9:0] sel_834; wire priority_sel_845; wire [15:0] tuple_850; assign f_bexp__2 = f[14:10]; assign exp = f_bexp__2 + 5'h11; assign tuple_index_794 = f[9:0]; assign fractional_mask__2 = {{27{exp[4]}}, exp} >= 32'h0000_000a ? 10'h000 : 10'h3ff >> {{27{exp[4]}}, exp}; assign fraction_up__2 = {1'h0, tuple_index_794} + {1'h0, fractional_mask__2}; assign eq_802 = f_bexp__2 == 5'h00; assign and_reduce_807 = &f_bexp__2[3:0]; assign f_sign__1 = f[15:15]; assign EXPR_MASK = 5'h1f; assign ne_813 = tuple_index_794 != 10'h000; assign fraction_integral__2 = ~(~tuple_index_794 | fractional_mask__2); assign fraction_integral__4 = ~(~fraction_up__2[9:0] | fractional_mask__2); assign sign_ext_818 = {5{f_sign__1}}; assign eq_819 = f_bexp__2 == EXPR_MASK; assign ult_827 = f_bexp__2 < 5'h19; assign add_830 = f_bexp__2 + ({4'h0, fraction_up__2[10]} & sign_ext_818); assign and_833 = eq_819 & ne_813; assign sel_834 = ult_827 ? (f_sign__1 ? fraction_integral__4 : fraction_integral__2) & {10{f_bexp__2[4] | and_reduce_807}} : tuple_index_794; assign priority_sel_845 = priority_sel_1b_2way({eq_802 | eq_819 & ~(~eq_802 & ne_813), and_833}, 1'h1, 1'h0, sel_834[9]); assign tuple_850 = {~(and_833 | ~f_sign__1), priority_sel_5b_2way({eq_802, eq_819}, EXPR_MASK, 5'h00, ult_827 ? (~(f_bexp__2[4] | and_reduce_807) ? {1'h0, sign_ext_818[3:0]} : add_830) : f_bexp__2), {priority_sel_845, sel_834[8:0] & {9{~(eq_802 | eq_819)}}}}; assign out = tuple_850; endmodule