01-02-2013, 11:05 AM
Timers and Real-time Clock
Timers and Real-time.pdf (Size: 77.43 KB / Downloads: 51)
Background
In Verilog hardware description language we can describe a variable-size counter by using a parameter declaration.
An example of an n-bit counter is shown in Figure 1.
By using parameters we can instantiate counters of different sizes in a logic circuit, without having to create a new
module for each counter.
Part I
Create a modulo-k counter by modifying the design of an 8-bit counter to contain an additional parameter. The
counter should count from 0 to k 1. When the counter reaches the value k 1 the value that follows should be
0.
Your circuit should use pushbutton KEY0 as an asynchronous reset, KEY1 as a manual clock input. The contents
of the counter should be displayed on red LEDs. Compile your design with Quartus II software, download your
design onto a DE1 board, and test its operation. Perform the following steps:
1. Create a new Quartus II project which will be used to implement the desired circuit on the DE1 board.