How do you plan to solve it?
module signed_thresh ( input [7:0] sample, input [7:0] thresh, output gt_unsigned, output gt_signed ); assign gt_unsigned = (sample > thresh); // Signed comparison (explicit cast) assign gt_signed = ($signed(sample) > $signed(thresh)); endmodule