FIFO problem
Hi guys ,
I have a different Solution for the same question .
As the Qst says at rate of 50 bytes in 100 clks , and the max rate is 7 per 10 clks ,so we need minimum of 71 clks to complete 50 bytes .
and these 71 clks can be at any stage like 0-71 , 10-81 ,20-91,29-100,
After 1st 100 clks again in 101-200 clks period another 50 bytes write will happen
So best case scenario will be when In the first 0-100 period the write happens in 29-100 clks and in the second 101-200 period 101 -172 ,
So in this duration from 29-172 , we will have continous data coming of 100 bytes in total 142 clks
but in read side , we can read only 71 bytes in 142 clks at the rate of 1 byte in two clocks , so out of 100 we can read 71 , remaing 29 wil be left ,so 29 will be the depth .
My answer is 29 ,
Please correct me if i am wrong !!!