Write Modes
The BRAM Wrapper core supports four different write modes during write operation to meet the desired output value during read operations.
| Write Mode | SP RAM | SDP RAM | TDP RAM | SP ROM | DP ROM |
|---|---|---|---|---|---|
| Write First | – | – | – | ||
| Read First | |||||
| No Change | – | – | – | – | |
| Read Unknown | – | – | – |
The following truth table describes the memory function logic for the supported write modes.
| Write Mode | clk[A/B] | clke[A/B] | we[A/B] | re[A/B]1 | wdata[A/B] | rdata[A/B] |
|---|---|---|---|---|---|---|
| Write First | Logic high | Logic high | Logic high | Logic high | Data in | Data in |
| Read First | Logic high | Logic high | Logic high | Logic high | Data in | Read out previously written data |
| No change | Logic high | Logic high | Logic high | – | Data in | Retain the same data of the last read data |
| Read Unknown | Logic high | Logic high | Logic high | Logic high | Data in | Unknown value |
1 Applicable to Single-port and Simple Dual-port RAM
only.