module __bfloat16__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 [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__2; wire [7:0] exp; wire [6:0] tuple_index_793; wire [6:0] fractional_mask__2; wire [7:0] fraction_up__2; wire eq_801; wire and_reduce_806; wire f_sign__1; wire [7:0] EXPR_MASK; wire ne_811; wire [6:0] fraction_integral__2; wire [6:0] fraction_integral__4; wire eq_816; wire ult_824; wire [7:0] add_827; wire and_830; wire [6:0] sel_831; wire priority_sel_842; wire [15:0] tuple_847; assign f_bexp__2 = f[14:7]; assign exp = f_bexp__2 + 8'h81; assign tuple_index_793 = f[6:0]; assign fractional_mask__2 = {{24{exp[7]}}, exp} >= 32'h0000_0007 ? 7'h00 : 7'h7f >> {{24{exp[7]}}, exp}; assign fraction_up__2 = {1'h0, tuple_index_793} + {1'h0, fractional_mask__2}; assign eq_801 = f_bexp__2 == 8'h00; assign and_reduce_806 = &f_bexp__2[6:0]; assign f_sign__1 = f[15:15]; assign EXPR_MASK = 8'hff; assign ne_811 = tuple_index_793 != 7'h00; assign fraction_integral__2 = ~(~tuple_index_793 | fractional_mask__2); assign fraction_integral__4 = ~(~fraction_up__2[6:0] | fractional_mask__2); assign eq_816 = f_bexp__2 == EXPR_MASK; assign ult_824 = f_bexp__2 < 8'h86; assign add_827 = f_bexp__2 + {7'h00, f_sign__1 & fraction_up__2[7]}; assign and_830 = eq_816 & ne_811; assign sel_831 = ult_824 ? (f_sign__1 ? fraction_integral__4 : fraction_integral__2) & {7{f_bexp__2[7] | and_reduce_806}} : tuple_index_793; assign priority_sel_842 = priority_sel_1b_2way({eq_801 | eq_816 & ~(~eq_801 & ne_811), and_830}, 1'h1, 1'h0, sel_831[6]); assign tuple_847 = {~(and_830 | ~f_sign__1), priority_sel_8b_2way({eq_801, eq_816}, EXPR_MASK, 8'h00, ult_824 ? (~(f_bexp__2[7] | and_reduce_806) ? {1'h0, {7{f_sign__1}}} : add_827) : f_bexp__2), {priority_sel_842, sel_831[5:0] & {6{~(eq_801 | eq_816)}}}}; assign out = tuple_847; endmodule