Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
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
 

And what is the problem? the pushbuttons will just be inputs to the system.
 

Was just wondering how but I worked it out.
Thanks anyway
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top