Intel® High Level Synthesis Compiler Pro Edition: Reference Manual

ID 683349
Date 6/26/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.4.1. Memory-Mapped Host Testbench Constructor

For components that use an instance of the Avalon® Memory-Mapped (MM) Host class (mm_host<>) to describe their memory interfaces, you must create an mm_host<> object in the testbench for each mm_host argument.

To create an mm_host<> object, add the following constructor in your code:

ihc::mm_host<int, … > mm(void* ptr, int size);

where the constructor parameters are as follows:

  • ptr is the underlying pointer to the memory in the testbench
  • size is the total size of the buffer in bytes