karthik87
Junior Member level 1
Hi i am writing code for async fifo. I have two domains write n read,in write domain i have to check full flag n in read domain empty flag.....
I have started code with write domain...I have done bin to gray conversion for writeptr at writeclk.....is it required again to convert writeptr to binary n then check for empty flag in read domain????n is this conversion of writeptr from G2B has to be done during readclk and readen??
for checking full flag i have to compare wrptr(binary) with readptr in write clock domain....but i have readptr in gray...,so is this rdptr has to be converted to binary???if so i have to do this conversion at wrclk or rdclk????
pl reply urgently
thanks in advance
I have started code with write domain...I have done bin to gray conversion for writeptr at writeclk.....is it required again to convert writeptr to binary n then check for empty flag in read domain????n is this conversion of writeptr from G2B has to be done during readclk and readen??
for checking full flag i have to compare wrptr(binary) with readptr in write clock domain....but i have readptr in gray...,so is this rdptr has to be converted to binary???if so i have to do this conversion at wrclk or rdclk????
pl reply urgently
thanks in advance