URL
https://opencores.org/ocsvn/bcd_adder/bcd_adder/trunk
Subversion Repositories bcd_adder
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 7 to Rev 8
- ↔ Reverse comparison
Rev 7 → Rev 8
/bcd_adder/trunk/rtl/BCD_adder.vhd
40,10 → 40,10
|
--BCD_SIZE is the amount of binary digits that are needed for the BCD number. Each decimal digit is 4 bits, so 4*BCD_ADD_DEC_SIZE. |
constant BCD_SIZE : integer := 4*DEC_SIZE; |
variable sum_v : unsigned(BCD_SIZE downto 0); |
variable a_v : unsigned(BCD_SIZE downto 0); |
variable b_v : unsigned(BCD_SIZE downto 0); |
variable cin_v : STD_LOGIC; |
variable sum_v : unsigned(BCD_SIZE downto 0); |
variable a_v : unsigned(BCD_SIZE downto 0); |
variable b_v : unsigned(BCD_SIZE downto 0); |
variable cin_v : STD_LOGIC; |
begin |
if rising_edge(clk_i) then |
|