Forum Discussion
Altera_Forum
Honored Contributor
9 years ago0-15 counter
Hi Guys, Can anyone help me i am nee to altera programming. Can anyone help me i am trying to write an up and down counter that counts from 0-15 with 2 bushbuttons and 2 7 segments display ...
Altera_Forum
Honored Contributor
9 years agoYep, you got it :)
Now look at the VHDL implementation https://github.com/d-hawkins/hdl/blob/master/lib/hex_display/src/hex_display.vhd The std_logic_vector(6 downto 0) output is just (G,F,E,D,C,B,A), so the binary values in the table are in bit-reversed order to what you wrote above. That is just an implementation detail :) Cheers, Dave