Entity ocram_sdp_wf
Inferring / instantiating simple dual-port memory, with:
single clock, clock enable,
1 read port plus 1 write port.
Command truth table:
ce |
we |
Command |
---|---|---|
0 |
X |
No operation |
1 |
0 |
Read only from memory |
1 |
1 |
Read from and Write to memory |
Both reading and writing are synchronous to the rising-edge of the clock. Thus, when reading, the memory data will be outputted after the clock edge, i.e, in the following clock cycle.
- Mixed-Port Read-During-Write
When reading at the write address, the read value will be the new data, aka. "write-first behavior". Of course, the read is still synchronous, i.e, the latency is still one clock cyle.
Name |
Type |
Default |
Description |
---|---|---|---|
A_BITS |
positive |
|
|
D_BITS |
positive |
|
|
FILENAME |
string |
"" |
file-name for RAM initialization |
Name |
Type |
Direction |
Description |
---|---|---|---|
clk |
std_logic |
in |
|
ce |
std_logic |
in |
|
we |
std_logic |
in |
|
ra |
unsigned |
in |
|
wa |
unsigned |
in |
|
d |
std_logic_vector |
in |
|
q |
std_logic_vector |
out |
data out |