6. Implementation details
System design consists of Top down approach. This system performs only one
function i.e. Digital clock. This function is implemented using counter module
and display module. Counter module consist of second, minute, hour counter
which are updated by internal clock signal. Internal clock signal is generated
on the completion of every counter and it will be updated by preceding
counter.
8. • Counters
Counter for second incrementation:
if(Clk_1sec == 1'b1) begin //at the beginning of each second
seconds = seconds + 1; //increment sec
Counter for minutes incrementation:
minutes = minutes + 1;
Counter for hours incrementation:
hours = hours + 1; //increment hours ;