MatchLib
Macros
#include <mc_scverify.h>
#include <boost/preprocessor.hpp>

Go to the source code of this file.

Macros

#define NVHLS_DESIGN(X)
 
#define NVHLS_DESIGN_IN_CHIP(X)
 

Detailed Description

Replacement for Catapult's mc_verify.h, including their CCS_DESIGN() macros. NVHLS_VERIFY_BLOCKS list of units to be supported for co-simulation by NVHLS_DESIGN() And NVHLS_DESIGN_IN_CHIP() should be specified before including nvhls_verify.h. Only need to include the top-level units that will be directly under SystemC in co-simulation. Again, it's important to specify this immediately before including nvhls_verify, because there may be multiple calls to nvhls_verify.h within a full design. Do not include any intermediate header files or specify any other defines in between.

A Simple Example
#define NVHLS_VERIFY_BLOCKS (UnitA)(UnitB)(UnitC)
#include <nvhls_verify.h>
...
NVHLS_DESIGN(UnitA) my_unita; // Instance
NVHLS_DESIGN_IN_CHIP(UnitA)* my_unita_ptr = new NVHLS_DESIGN_IN_CHIP(UnitA)(); // Pointer and dynamic allocation

Definition in file nvhls_verify.h.