Question: I been trying to display the 7 segment display for this digital clock but I can not figure it out. Help me how to display

I been trying to display the 7 segment display for this "digital clock" but I can not figure it out. Help me how to display 6 bits numbers on the 7 segment display of the altera board using verilog
1 E module clocktimer clk 1sec, reset, seconds, minutes, hours, hex0) input clk 1sec 10 input reset output reg E6:0 seconds 11 output reg T6:01 minutes 12 output reg D 5:0] hours 13 14 15 16 always acposedge clk isec or posedge reset 17 18 E begi if (reset 1 b1) begin //check for active high reset 19 E reset the time. 20 seconds 0 21 minutes 30; 22 hours end 23 else if (clk 1sec 1 b1) begin at the beginning of each second 24 seconds seconds 1; //increment sec 25 if (seconds 6 d60) begin //check for max value of sec 26 E seconds 0; //reset seconds 27 minutes minutes 1 //increment minute if (minutes 6 d 60) begin //check for max value of min 28 29 E minutes reset minutes 30 1 E module clocktimer clk 1sec, reset, seconds, minutes, hours, hex0) input clk 1sec 10 input reset output reg E6:0 seconds 11 output reg T6:01 minutes 12 output reg D 5:0] hours 13 14 15 16 always acposedge clk isec or posedge reset 17 18 E begi if (reset 1 b1) begin //check for active high reset 19 E reset the time. 20 seconds 0 21 minutes 30; 22 hours end 23 else if (clk 1sec 1 b1) begin at the beginning of each second 24 seconds seconds 1; //increment sec 25 if (seconds 6 d60) begin //check for max value of sec 26 E seconds 0; //reset seconds 27 minutes minutes 1 //increment minute if (minutes 6 d 60) begin //check for max value of min 28 29 E minutes reset minutes 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
