Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flip Flop Syncing

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
0
0
GB
Hello

Apparently it's possible to synchronize two signals by using 2 flip flops. Can anyone show me how to code this?

Do I have to first code a flip flop and then link them, or is there a better way to do it?

Thanks in advance,
 
A flip flop is implied when stuff is defined under a rising edge clock event.

I think the "sync" circuit you are thinking of is just two cascaded D Flip-flops. In VHDL thats just: asign under a clock event:

temp <= input;
out <= temp;

where temp and out are the outputs from the two FFs.
Sorry, I don't remember the exact VHDL syntax off the top of my head.

There is a extra clock delay. The idea is that the first FF should have settled any meta-stability before out is clocked, but really you are just making the odds very very high.


Steve

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top