Verilator and SystemPerl - Veripool
Verilator and SystemPerl - Veripool
Verilator and SystemPerl - Veripool
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Avoid Includes!• SystemC documentation suggests the bad practice ofputting SC_CTOR implementation in the header file.– If a low level module changes, you need to recompile EVERYTHING!• Instead, remove all unnecessary #includes in header files!– Move any implementation code, such as constructors to the .cpp file– Declare SubModules as just "class SubModule"– Only #include submodules in the .cpp file// FileName.hclass SubModule;SC_MODULE(Foo) {…SubModule* subcell;…SC_CTOR(Foo);};// FileName.cpp#include "SubModule.h"SP_CTOR_IMP(Foo) {…}<strong>Verilator</strong> Environment, NASCUG June 2004. Copyright 2004 by Wilson Snyder; redistribution allowed as complete presentation.12