The
storage_type
option 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_type
is 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 old resource pragma with the
storage_type
.
#pragma HLS INTERFACE bram port = in1 storage_type=RAM_2P
#pragma HLS INTERFACE bram port = out storage_type=RAM_1P latency=3