fabynx
Newbie level 3
- Joined
- Nov 3, 2011
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,299
Hello everyone
I would like to know how to make one push button cycle through selecting each of the four digits separately in a 7 segment display?
and adding 1 to the selected digit using another push button?
I've added a rar file of the example code before I edited any of it to create my digital clock. I think the "signal curr : std_logic_vector(3 downto 0);" has something to do with the current value and "signal cd : std_logic_vector(2 downto 0);" has something to do with changing digits. However I am not quite sure how to go about coding the push buttons (signal pb).
View attachment 7segclock.rar
Any help will be appreciated.
Thanks
I would like to know how to make one push button cycle through selecting each of the four digits separately in a 7 segment display?
and adding 1 to the selected digit using another push button?
I've added a rar file of the example code before I edited any of it to create my digital clock. I think the "signal curr : std_logic_vector(3 downto 0);" has something to do with the current value and "signal cd : std_logic_vector(2 downto 0);" has something to do with changing digits. However I am not quite sure how to go about coding the push buttons (signal pb).
View attachment 7segclock.rar
Any help will be appreciated.
Thanks