Forum Discussion
Altera_Forum
Honored Contributor
10 years agoVHDL Code Help
Hi everyone, I'm new FPG and VHDL, I am trying write this code: Pushing a SW1 will turn on the 4 LEDs on the board one by one from up to down every 2 seconds until all LEDs are lit. Y...
Altera_Forum
Honored Contributor
10 years ago) why do not start reading books, look for reference design, surf Altera website for university program materials
what behaviour do you expect? 1. Switch -> will it be simple like light switcher? what about bouncing? do you need register? 2. LEDs -> could you draw a time-diagram for yourself? 3. timer -> implement it later, on the start of project rely on LED switch every clock-cycle. You should use clock your scheme won't be pure combinatorial. If you able to answer this question you probably write code. So others can take a look .