EmbDev.net

Forum: FPGA, VHDL & Verilog VHDL Blinking leds


von James H. (vida0021)


Rate this post
0 useful
not useful
Hello!
Im working on a project and I'm curious if someone can help out!
Im working on a LED timer, example, 5 seconds, 5 leds will turn on, then 
4, then 3,2,1...
If anyone knows how to do it, i'd be thankful!
Thanks for your time!

von -gb- (Guest)


Rate this post
1 useful
not useful
Initialize the slv with the number of ones in the LSBs and then shift 
right every second.

von Heo (Guest)


Rate this post
0 useful
not useful
Yes.

You start with:
1. Think about the specifications and what device you have to achieve 
this

2. Implement and Test it

3. Validate your assumption

4. Done



If that is too abstract, you maybe need to provide more info about the 
exact problem you have in inscrutable detail (rather than posting a 
VERYVERYVERYVERY high-level question).

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig