module bcd_to_seven( bin_in, sseg_out);
input wire [3:0] bin_in;
output reg [7:0] sseg_out;
endmodule
The inputs bin_in should be binary 0 to 15. The outputs of sseg_out should drive a seven segment display to indicate a number from 0 - F hexadecimal.
Answered the question below.
If you have any doubt ask in the comment section.
Please rate if you like my answer.
Get Answers For Free
Most questions answered within 1 hours.