Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
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.
21615 Discussions

What the problem is about the circuit?

User1591865219705211
1,047 Views

Hello everyone.

I made a circuit like this.註解 2020-06-11 165256.png​The Simulation is like this.

註解 2020-06-11 165349.png

 

The TFF has triggered before the "Toggle" single rise up.

I use Quartus FPGA lite 18.1 and 19.1. The simulation is same.

I tried to program it to fpga dev board(EPM240T100C5N). The situation is also same.

I asked this problem to our school teachers.They also can't solve this problem.

I wanna know why the TFF is triggered to high before Clk and "test" signal at the start time.

So what the circuit problem is? Thank you.

0 Kudos
1 Solution
sstrell
Honored Contributor III
1,000 Views

Your input to the flip-flop is low because you're ANDing the high Toggle and the low Q_Bar, so the flip-flop doesn't toggle.

 

https://en.wikipedia.org/wiki/Flip-flop_(electronics)#T_flip-flop

 

#iwork4intel

View solution in original post

0 Kudos
4 Replies
sstrell
Honored Contributor III
1,001 Views

Your input to the flip-flop is low because you're ANDing the high Toggle and the low Q_Bar, so the flip-flop doesn't toggle.

 

https://en.wikipedia.org/wiki/Flip-flop_(electronics)#T_flip-flop

 

#iwork4intel

0 Kudos
User1591865219705211
1,000 Views

I Know the TFF is triggered to high and then it can't not be toggle again.But the TFF is not trigger by CLK or "test" signal.It toggle automatically at the start time.

0 Kudos
sstrell
Honored Contributor III
1,000 Views

I'm not sure I understand what you are saying here. As suggested, if you used an OR gate instead of an AND gate, it would work.

 

#iwork4intel

0 Kudos
SyafieqS
Employee
1,000 Views

Hi,

 

There is low toggle resulted by AND gate as high input toggle and low q_bar

Change it to OR gate to make it toggle.

 

Thanks,

Regards

0 Kudos
Reply