Forum: FPGA, VHDL & Verilog modify vdhl code to use t flip flops to blink 4 led's

von Nick D. (ufcking18)

Attached files:

Rate this post
0 useful
not useful
I have this code, but I need help to modify it in order to use the t 
flip flops to simulate 4 leds that light up on each clock like this:

0 = led on
x = led off

clk 1: 0000
clk 2: 000x
clk 3: 00xx
clk 4: 0xxx
clk 5: xxxx
clk 6: xxx0
clk 7: xx00
clk 8: x000

(then it loops back to how it was in the first clock on the 9th clock.)

Thanks for the help

von Lothar M. (lkmiller) (Moderator)

Rate this post
0 useful
not useful
Nick D. wrote:
> but I need help to modify it
So first will be to add the fourth flipflop.
And then implement the transition terms for the 8 transitions. It will 
be less typewriting when you reduce the logic terms by using state of 
the art tools like Karnaugh maps in advance.

> I have this code
And what does it do?
Examine it and think about what to add to get your job done.

> Thanks for the help
Its not the intention of this forum to do your homework. So start with 
something and when you have a particular problem, then ask.


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]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.