Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

VHDL JK FlipFlop Error, Please help

Hello. As you can see in the figure 1, We can make a JK flipflop with 2 ANDs and 2 NORs and two internal signals.

So I've written a very simple code in ModelSim to make and simulate a JK FlipFlop (Figure 2 - the code and Figure 3 - the benchmark which I simulated it in the software) but the problem is, the output of the flipflop is always same. (Figure 4) What is wrong with the outputs?

I know there are different ways to make a JK FlipFlop, but this is the way that I should make as a part of an other project, yet I have no clue why the outputs are not working.

Fig 1 - click to enlarge:

http://www.alteraforum.com/forum/attachment.php?attachmentid=12271&stc=1

Fig 2- click to enlarge:

http://www.alteraforum.com/forum/attachment.php?attachmentid=12275&stc=1

Fig 3 - click to enlarge:

http://www.alteraforum.com/forum/attachment.php?attachmentid=12273&stc=1

Fig 4 - click to enlarge:

http://www.alteraforum.com/forum/attachment.php?attachmentid=12274&stc=1

19 Replies