3.6.1.25 Replicate ROM
(Ask a Question)- Syntax
#pragma HLS memory replicate_rom variable(<rom_var_name>) max_replicas(<int>)
- Description
- This pragma can be used to replicate constant memory (i.e., arrays) to achieve better throughput (shorter cycle latency) at the expense of extra resource (e.g., block RAM). Typically when an array is implemented in block RAMs, there are up-to-two RAM ports to allow a maximum of two reads per clock cycle. To allow more parallel read accesses in each clock cycle, constant read-only memories (ROM) can be replicated by using this pragma.
- Parameters
Parameter Value Optional Default Description max_replicas
integer Yes 0 The maximum number of replicas allowed - Position
- Before the global / local variable declaration.
- Examples
#pragma HLS memory replicate_rom variable(my_rom) max_replicas(10) const int my_rom[100]