modify vdhl code to use t flip flops to blink 4 led's

OP #5184289
Rate this post
• ▲ 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
Attached files:
Moderator (Company: Titel) #5184333
Rate this post
• ▲ 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.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.