04-09-2013 03:00 PM
is there a way of selecting a digit being displayed on the Spartan 3's 7 segment display using a push button and adding 1 to it using another push buttons?
I would also like to know if there's a way to make one push button cycle through the digits?
Ive added a rar file of the code I'm editing to create an digital alarm 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).
Any help will be appreciated.
04-09-2013 03:03 PM
Read about debouncing a pushbutton first,
But yes, you can do anything you want if you program it properly.
04-09-2013 07:05 PM
Thanks for the advice
I have read about debouncing now and im sure it will be helpul but im still unsure about the original questions in my post.
04-10-2013 08:17 AM
Go get a book on RTL design,
Something like, "FPGA Prototyping by VHDL example" (there is another identical book, except it is done with verilog).
Read it, work the examples.
Then you will understand how to do digital synchronous logic design in FPGA devices.
At universities and colleges, this is a one semster (quarter) class to learn the fundamentals.
EECS150 is the course number at UC Berkeley (which I taught 38 years ago, and only recently helped them upgrade from older Xilinx FPGA devices to newer ones).