PoC.arith.Counter_BCD
Counter with output in binary coded decimal (BCD). The number of BCD digits
is configurable by DIGITS.
All control signals (reset rst, increment inc) are high-active and
synchronous to clock clk. The output val is the current counter
state. Groups of 4 bit represent one BCD digit. The lowest significant digit
is specified by val(3 downto 0).
Todo
implement a
decinput for decrementingimplement a
loadinput to load a value
Entity Declaration:
1 );
2 port (
3 Clock : in std_logic;
4 Reset : in std_logic; -- Reset to 0
5 Increment : in std_logic; -- Increment
6 Value : out T_BCD_VECTOR(DIGITS-1 downto 0) -- Value output
7 );
8end entity;
9
10
11architecture rtl of arith_Counter_BCD is