?? xsimtest__mag4comp__v.cpp
字號:
#include "work/test__mag4comp__v/test__mag4comp__v.h"
#include "work/glbl/glbl.h"
static const char * HSimCopyRightNotice = "Copyright 2004-2005, Xilinx Inc. All rights reserved.";
#include "work/test__mag4comp__v/test__mag4comp__v.h"
static HSim__s6* IF0(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new workMtest__mag4comp__v(label);
return blk;
}
#include "work/mag4comp/mag4comp.h"
static HSim__s6* IF1(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new workMmag4comp(label);
return blk;
}
#include "work/glbl/glbl.h"
static HSim__s6* IF2(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new workMglbl(label);
return blk;
}
class _top : public HSim__s5 {
public:
_top() : HSim__s5("_top", "_top", 0) {}
void moduleInstantiate (HSimConfigDecl * cfg) {
HSim__s5 * topvl = 0;
topvl = new workMtest__mag4comp__v("test_mag4comp_v");
topvl->moduleInstantiate(cfg);
addChild(topvl);
topvl = new workMglbl("glbl");
topvl->moduleInstantiate(cfg);
addChild(topvl);
}
void setDefparam() {}
void constructObject() {}
void connectSigs() {} void archImplement() {}
};
main(int argc, char **argv) {
HSimDesign::initDesign();
globalKernel->getOptions(argc,argv);
HSim__s5 * _top_i = 0;
try {
HSimConfigDecl cfg(" default ");
cfg.addVlogModule("test_mag4comp_v", (HSimInstFactoryPtr)IF0);
cfg.addVlogModule("mag4comp", (HSimInstFactoryPtr)IF1);
cfg.addVlogModule("glbl", (HSimInstFactoryPtr)IF2);
_top_i = new _top();
_top_i->moduleInstantiate(&cfg);
return globalKernel->runTcl(&cfg, _top_i, "_top", argc, argv);
}
catch (HSimError& msg){
try {
globalKernel->error(msg.ErrMsg);
return 1;
}
catch(...) {}
return 1;
}
catch (...){
globalKernel->fatalError();
return 1;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -