F
FP
Guest
I want to write all 0's to a 2 dimensional FIFO at reset. How do I do
this? The FIFO is 16 bits wide and 256 words deep.
this? The FIFO is 16 bits wide and 256 words deep.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
An empty fifo should read zerosI want to write all 0's to a 2 dimensional FIFO at reset. How do I do
this? The FIFO is 16 bits wide and 256 words deep.
You shouldn't have to initialize any memory in the FIFO. If the 'empty'I want to write all 0's to a 2 dimensional FIFO at reset. How do I do
this? The FIFO is 16 bits wide and 256 words deep.
The reason you're being told you don't need to reset the FIFO contentsI want to write all 0's to a 2 dimensional FIFO at reset. How do I do
this? The FIFO is 16 bits wide and 256 words deep.
The reason you're being told you don't need to reset the FIFO contents
rather than being told how to do it is that this kind of reset is very
expensive in terms of resources and effectively eliminates the ability
to use memory elements to implement the 4kbits of storage elements.
(snip)
With either triple port memory or an extra cycle on each readYou could use a similar "dirty bit" concept with a FIFO, using a counter
instead but to what end? Once your FIFO goes empty, the contents won't
exactly be zero. An empty FIFO and a reset-initialized FIFO should
behave the same.
Thank you all for your valuable suggestions.John_H wrote:
(snip)
The reason you're being told you don't need to reset the FIFO contents
rather than being told how to do it is that this kind of reset is very
expensive in terms of resources and effectively eliminates the ability
to use memory elements to implement the 4kbits of storage elements.
(snip)
You could use a similar "dirty bit" concept with a FIFO, using a counter
instead but to what end? Once your FIFO goes empty, the contents won't
exactly be zero. An empty FIFO and a reset-initialized FIFO should
behave the same.
With either triple port memory or an extra cycle on each read
one could possibly write zeros into previously used cells.
It might be required for some secure systems, such as ones
doing cryptographic processing, where sensitive data might
be left in empty cells. (Consider a FIFO between an ATM
keyboard and the bank computer. Do you want your PIN in there.)
-- glen