module max2_func(
input wire [7:0] a,
input wire [7:0] b,
output wire [7:0] max
);
// =================================
// Function: max2 (DO NOT RENAME)
// =================================
function [7:0] max2(input [7:0] x, input [7:0] y);
begin
max2 = (x > y) ? x : y; // single comparison line
end
endfunction
// =================================
// Drive output
// =================================
assign max = max2(a, b);
endmodule