Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

using FIFO for two clock domain

Status
Not open for further replies.

pulkit.vlsi

Junior Member level 1
Joined
Jun 11, 2012
Messages
16
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,475
hello,

I ma doing a project in which i have to transfer data between two domains. But the problem is that, these domains working on two different clocks. clock1 > clock2.

to solve this problem i will have to use a FIFO between these domains. But i am not aware of FIFOs. i dont know how a FIFO works.

Can anyone guide me about FIFOs of suggest me any link for the complete tutorials about FIFO

Thanks in advance
 

The manufacturers all provide FIFO IP blocks that you can use in your own designs so you dont have to build your own.

altera: https://www.altera.com/literature/ug/ug_fifo.pdf
xilinx : https://www.xilinx.com/support/documentation/ipmeminterfacestorelement_fifo_fifogenerator.htm

Essentially a FIFO (First In First Out) is a dual port ram with a counter on the read and write ports as the address. The difference between the two counters will tell you how full it is. With dual clocks you have to be careful how you transfer the address over the clock domains, so many of them use grey counters.

Make sure your Data rates match in both clock domains. FIFOs are good at handling bursty data and transfering data over clock domains but if you have a data rate imbalance you will fill the FIFO up and jam up your system.
 

hello,

I ma doing a project in which i have to transfer data between two domains. But the problem is that, these domains working on two different clocks. clock1 > clock2.

Do you have to transfer any control/status signals as well or just data? That's quite different. That's ignoring the FIFO control/status signals.

And is your data wider than a single FIFO can be in your FPGA? (I'd guess that your FIFOs are 36 bits wide max.)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top