RAMB

Dual Port RAM primitive with independent read and write ports.

MEMORY

Model

RAMB CS RE WE RADDR WADDR DATAIN DATA
Pin Function
CS Chip Select (Active High). If Low, outputs are High-Z and writes are disabled.
RE Read Enable (Active High). Enables level-sensitive read from RADDR.
WE Write Enable (Active High). Enables level-sensitive write from DATAIN to WADDR.
RADDR Read Address input bus.
WADDR Write Address input bus.
DATAIN Data input bus for writes.
DATA Data output bus for reads.

Operation

RAMB allows simultaneous read and write operations from different addresses.

Conflict Handling: If the same address is simultaneously read and written, the output data is undefined (X).

Initialization & Data Population

RAMB contents are initialized pre-simulation using the DATA keyword in the PART statement, or the CLAMP command.

# Static initialization in netlist
PART=U1 TYPE=RAMB DATA=X0, 55, AA

# Dynamic population in run script
CLAMP PART=U1 DATA=X0 55 AA

For detailed information on the DATA syntax, X-handling behavior, and the CLAMP command, see the Memory Handling & Initialization guide.

X-Handling

Physical Constraints

Equivalent Type Statement

Type=RAMB i=CS,RE,WE,RADDR[m:0],WADDR[m:0],DATAIN[n:0] o=DATA[n:0]