storage_typeoption on the interface pragma or directive lets the user explicitly define which type of RAM is used, and which RAM ports are created (single-port or dual-port). If no
storage_typeis specified, Vitis HLS uses:
- A single-port RAM by default.
- A dual-port RAM if it reduces the initiation interval or latency.
For the Vivado flow, the user can specify a
RAM storage type on the specified interface, replacing the deprecated RESOURCE
pragma with the
#pragma HLS INTERFACE bram port = in1 storage_type=RAM_2P #pragma HLS INTERFACE bram port = out storage_type=RAM_1P latency=3