Visible to Intel only — GUID: ldj1478797060182
Ixiasoft
Visible to Intel only — GUID: ldj1478797060182
Ixiasoft
4.4.1. Memory-Mapped Host Testbench Constructor
To create an mm_host<> object, add the following constructor in your code:
ihc::mm_host<int, … > mm(void* ptr, int size, bool use_socket=false);
where the constructor arguments are as follows:
- ptr is the underlying pointer to the memory in the testbench
- size is the total size of the buffer in bytes
- use_socket is the option you use to override the copying of the memory buffer and have all the memory accesses pass back to the testbench memory
By default, the Intel® HLS Compiler copies the memory buffer over to the simulator and then copies it back after the component has run. In some cases, such as pointer-chasing in linked lists, copying the memory buffer back and forth is undesirable. You can override this behavior by setting use_socket to true.
Note: When you set use_socket to true, only Avalon® MM Host interfaces with 64-bit wide addresses are supported. In addition, setting this option increases the run time of the simulation.
Did you find the information on this page useful?
Feedback Message
Characters remaining: