Decade Counter
Decade Counter
12
Aim
To implement VHDL code for Decade Counter
Tool required
Mentor Graphics FPGA advantage 8.1ps Model sim 6.3a
Theory
Counter
In digital logic and computing, a counter is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock signal.
Decade Counter
A decade counter is one that counts in decimal digits, rather than binary. A decade counter may have each digit binary encoded (that is, it may count in binary-coded decimal, as the7490 integrated circuit did) or other binary encodings (such as the bi-quinary encoding of the7490 integrated circuit).
Fig (12.1)
Truth Table
TABLE (12.1)
CLOCK 0 1 2 3 4 5 6 7 8 9 10
E 0 0 0 0 0 0 1 1 1 1 0
D 0 0 0 1 1 1 0 0 1 1 0
C 0 0 1 0 0 1 0 0 0 1 0
B 0 1 1 1 1 1 1 1 0 1 0
A 0 1 1 0 1 0 0 1 0 1 0
Timing Diagram
temp<="10010"; elsif(temp="10010")then temp<="10011"; elsif(temp="10011")then temp<="11000"; elsif(temp="11000")then temp<="11111"; end if; end if; end process; END ARCHITECTURE decade_beh;
Output
Result - The VHDL code for Decade counter were implemented and simulated successfully.