/*Write your code here*/
module signed_thresh (
input [7:0]sample,
input [7:0]thresh,
output reg gt_unsigned,
output reg gt_signed
);
always @(*) begin
if(sample>thresh)begin
gt_unsigned = 1;
end
else gt_unsigned = 0;
if ($signed (sample) > $signed (thresh))begin
gt_signed = 1;
end
else gt_signed = 0;
end
endmodule