Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

VHDL Code Help

Altera_Forum
Honored Contributor II
1,730 Views

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. 

 

 

Your help is highly appreciated.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
561 Views

What do you expect us to do? We don't write the code for you, but we can help you when you have something written. 

I suggest drawing the circuit you want and then think about how to code it. Mabe try to make the leds go on and off on a button push first, then you can add the effects later.
0 Kudos
Altera_Forum
Honored Contributor II
561 Views

Whats the problem we can help with?

0 Kudos
Altera_Forum
Honored Contributor II
561 Views

) 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 .
0 Kudos
Reply