Clock domain crossing problem

Status
Not open for further replies.

adivy

Newbie level 6
Joined
Nov 21, 2011
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Visit site
Activity points
1,403
Hi,
I am using a gated clock A domain(outside the FPGA) to send data to a clock B domain in FPGA where clock A is slower than clock B.
Here to synchronize the data transmission I have used an asynchronous FIFO .
FIFO write clock is CLKA(generated inside the FPGA and equal to 3*clock A) as FIFO requires continuous clock.
Still the data is not written correctly i.e sometimes fifo writes extra data.
Can anyone help me out on the same?
 

why not just use clock A?
THe problem is probably a code bug. Have you written a testbench?
 

I read in FIFO datasheet that it needs a continuous clock.So gated clock can't be given directly as input.
Yes I have written test bench and it is in TB I am getting this problem.
 

I think your write clock HAS to be synchronous with your input data, that's not what you've done by using your internal clock.

You should look into either:

1) a FIFO that doesn't need a continuous write clock
2) generating a continuous clock on the write side
3) using a different synchronizer
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…