5/5/2023 0 Comments Memory note blocks![]() ![]() For example you want to read data off an SD Card, you could store it in a Dual Port RAM, then read it out later. One possible use case would be storing data off of an external device. I personally find that I have more use cases for DPRAMs than I do for Single-Port RAMs. Therefore a DPRAM is able to perform a write on one address while reading from a completely different address. Port A can perform a read on Address 0 on the same clock cycle that Port B is writing to address 200. Both Port A and Port B behave exactly the same. The Dual Port Block RAM (or DPRAM) configuration behaves exactly the same way as the single port configuration, except you have another port available for reading and writing data. If you want to read and write data at the same time, you will need a Dual Port Block RAM! Dual Port BRAM Configuration For the single port configuration, you can either read or write data on Port A, you can’t do both at the same time. This would involve driving Wr En high for one clock cycle and Wr Data would have your write data. There might be an application where you want to write some data into the Block RAM buffer, then read it out at a later time. ![]() So if your Block RAM is 1024 values deep, it will take at least 1024 clock cycles to read the entire thing out. Note that you can only read one Rd Data value per clock cycle. Read values come out on Rd Data, this is the data stored in the BRAM. Data will be read out on the positive edge of the clock cycle at the address specified by Addr as long as Wr En signal is not active. The way they work is all based on a Clock. ![]()
0 Comments
Leave a Reply. |