5.1 LSRAM Macro

The LSRAM macro (RAM1K20) in the Libero SoC IP macro library can be used directly to instantiate the LSRAM block in the design. The LSRAM block must be configured with appropriate values of the static signals. Instantiating LSRAM primitives in a design is not recommended. For the recommended methods of instantiating memory in a user design, see LSRAM Memory Macro. The following figure shows the LSRAM macro (RAM1K20).

Figure 5-1. RAM1K20 Macro

The following table lists the ports of RAM1K20.

Table 5-1. Port List of RAM1K20
Pin NameDirectionType1PolarityDescription
A_ADDR[13:0]InputDynamicPort A address
BLK_EN[2:0]InputDynamicActive HighPort A block selects
A_CLKInputDynamicRising edgePort A clock
A_DIN[19:0]InputDynamicPort A write data
A_DOUT[19:0]OutputDynamicPort A read data
A_WEN[1:0]InputDynamicActive HighPort A write-enables (per byte)
A_RENInputDynamicActive HighPort A read-enable
A_WIDTH[2:0]InputStaticPort A width/depth mode select
A_WMODE[1:0]InputStaticActive HighPort A read-before-write and feed-through write selects
A_BYPASSInputStaticActive HighPort A pipeline register bypassed when High
A_DOUT_ENInputDynamicActive HighPort A pipeline register enable
A_DOUT_SRST_NInputDynamicActive LowPort A pipeline register synchronous reset
A_DOUT_ARST_NInputDynamicActive LowPort A pipeline register asynchronous reset
B_ADDR[13:0]InputDynamicPort B address
B_BLK_EN[2:0]InputDynamicActive HighPort B block selects
B_CLKInputDynamicRising edgePort B clock
B_DIN[19:0]InputDynamicPort B write data
B_DOUT[19:0]OutputDynamicPort B read data
B_WEN[1:0]InputDynamicActive HighPort B write-enables (per byte)
B_RENInputDynamicActive HighPort B read-enable
B_WIDTH[2:0]InputStaticMode selectPort B width/depth mode select
B_WMODE[1:0]InputStaticActive HighPort B read-before-write and feed-through write selects
B_BYPASSInputStaticActive HighPort B pipeline register bypassed when High
B_DOUT_ENInputDynamicActive HighPort B pipeline register enable
B_DOUT_SRST_NInputDynamicActive LowPort B pipeline register synchronous-reset
B_DOUT_ARST_NInputDynamicActive LowPort B pipeline register asynchronous-reset
ECC_ENInputStaticActive HighEnable ECC
ECC_BYPASSInputStaticActive HighECC pipeline register bypassed when High
SB_CORRECTOutputDynamicActive HighSingle-bit correct flag
DB_DETECTOutputDynamicActive HighDouble-bit detect flag
BUSY_FBInputStaticActive HighLock access to SmartDebug
ACCESS_BUSYOutputDynamicActive HighBusy signal when being initialized or accessed using SmartDebug
Note:
  1. Static inputs are defined at design time and need to be tied to 0 or 1.