Newbie - selecting digit and adding one to current digit Spartan 3

Status
Not open for further replies.

fabynx

Newbie level 3
Joined
Nov 3, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…