?? xsimtest.cpp
字號:
#include "work/test/test.h"
#include "work/glbl/glbl.h"
static const char * HSimCopyRightNotice = "Copyright 2004-2005, Xilinx Inc. All rights reserved.";
#include "work/test/test.h"
static HSim__s6* IF0(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new workMtest(label);
return blk;
}
#include "simprim_ver.auxlib/ffsrce/ffsrce.h"
static HSim__s6* IF1(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibMffsrce(label);
return blk;
}
#include "simprim_ver.auxlib/x__lut4__mux4/x__lut4__mux4.h"
static HSim__s6* IF2(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibMx__lut4__mux4(label);
return blk;
}
#include "simprim_ver.auxlib/_x___b_u_f/_x___b_u_f.h"
static HSim__s6* IF3(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___b_u_f(label);
return blk;
}
#include "simprim_ver.auxlib/_x___b_u_f_g_m_u_x/_x___b_u_f_g_m_u_x.h"
static HSim__s6* IF4(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___b_u_f_g_m_u_x(label);
return blk;
}
#include "simprim_ver.auxlib/_x___f_f/_x___f_f.h"
static HSim__s6* IF5(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___f_f(label);
return blk;
}
#include "simprim_ver.auxlib/_x___f_f/_x___f_f.h"
static HSim__s6* IF6(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___f_f(label);
return blk;
}
#include "simprim_ver.auxlib/_x___i_n_v/_x___i_n_v.h"
static HSim__s6* IF7(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___i_n_v(label);
return blk;
}
#include "simprim_ver.auxlib/_x___i_p_a_d/_x___i_p_a_d.h"
static HSim__s6* IF8(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___i_p_a_d(label);
return blk;
}
#include "simprim_ver.auxlib/_x___l_u_t4/_x___l_u_t4.h"
static HSim__s6* IF9(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___l_u_t4(label);
return blk;
}
#include "simprim_ver.auxlib/_x___l_u_t4/_x___l_u_t4.h"
static HSim__s6* IF10(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___l_u_t4(label);
return blk;
}
#include "simprim_ver.auxlib/_x___o_n_e/_x___o_n_e.h"
static HSim__s6* IF11(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___o_n_e(label);
return blk;
}
#include "simprim_ver.auxlib/_x___o_p_a_d/_x___o_p_a_d.h"
static HSim__s6* IF12(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___o_p_a_d(label);
return blk;
}
#include "simprim_ver.auxlib/_x___o_r2/_x___o_r2.h"
static HSim__s6* IF13(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___o_r2(label);
return blk;
}
#include "simprim_ver.auxlib/_x___t_r_i/_x___t_r_i.h"
static HSim__s6* IF14(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___t_r_i(label);
return blk;
}
#include "simprim_ver.auxlib/_x___z_e_r_o/_x___z_e_r_o.h"
static HSim__s6* IF15(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___z_e_r_o(label);
return blk;
}
#include "simprim_ver.auxlib/_x___z_e_r_o/_x___z_e_r_o.h"
static HSim__s6* IF16(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___z_e_r_o(label);
return blk;
}
#include "simprim_ver.auxlib/_x___t_r_i/_x___t_r_i.h"
static HSim__s6* IF17(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___t_r_i(label);
return blk;
}
#include "simprim_ver.auxlib/_x___o_r2/_x___o_r2.h"
static HSim__s6* IF18(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___o_r2(label);
return blk;
}
#include "simprim_ver.auxlib/_x___o_p_a_d/_x___o_p_a_d.h"
static HSim__s6* IF19(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___o_p_a_d(label);
return blk;
}
#include "simprim_ver.auxlib/_x___o_n_e/_x___o_n_e.h"
static HSim__s6* IF20(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___o_n_e(label);
return blk;
}
#include "simprim_ver.auxlib/_x___l_u_t4/_x___l_u_t4.h"
static HSim__s6* IF21(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___l_u_t4(label);
return blk;
}
#include "simprim_ver.auxlib/_x___i_p_a_d/_x___i_p_a_d.h"
static HSim__s6* IF22(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___i_p_a_d(label);
return blk;
}
#include "simprim_ver.auxlib/_x___i_n_v/_x___i_n_v.h"
static HSim__s6* IF23(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___i_n_v(label);
return blk;
}
#include "simprim_ver.auxlib/_x___f_f/_x___f_f.h"
static HSim__s6* IF24(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___f_f(label);
return blk;
}
#include "simprim_ver.auxlib/_x___b_u_f_g_m_u_x/_x___b_u_f_g_m_u_x.h"
static HSim__s6* IF25(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___b_u_f_g_m_u_x(label);
return blk;
}
#include "simprim_ver.auxlib/_x___b_u_f/_x___b_u_f.h"
static HSim__s6* IF26(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new simprim_ver_auxlibM_x___b_u_f(label);
return blk;
}
#include "work/sw__led/sw__led.h"
static HSim__s6* IF27(HSim__s6 * Arch,
const char* label,
int nGenerics,
va_list vap)
{
HSim__s6 *blk = new workMsw__led(label);
return blk;
}
#include "work/glbl/glbl.h"
static HSim__s6* IF28(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("test");
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", (HSimInstFactoryPtr)IF0);
cfg.addVlogModule("ffsrce", (HSimInstFactoryPtr)IF1);
cfg.addVlogModule("x_lut4_mux4", (HSimInstFactoryPtr)IF2);
cfg.addVlogModule("X_BUF", (HSimInstFactoryPtr)IF3);
cfg.addVlogModule("X_BUFGMUX", (HSimInstFactoryPtr)IF4);
cfg.addVlogModule("X_FF", (HSimInstFactoryPtr)IF5);
cfg.addVlogModule("X_FF", (HSimInstFactoryPtr)IF6);
cfg.addVlogModule("X_INV", (HSimInstFactoryPtr)IF7);
cfg.addVlogModule("X_IPAD", (HSimInstFactoryPtr)IF8);
cfg.addVlogModule("X_LUT4", (HSimInstFactoryPtr)IF9);
cfg.addVlogModule("X_LUT4", (HSimInstFactoryPtr)IF10);
cfg.addVlogModule("X_ONE", (HSimInstFactoryPtr)IF11);
cfg.addVlogModule("X_OPAD", (HSimInstFactoryPtr)IF12);
cfg.addVlogModule("X_OR2", (HSimInstFactoryPtr)IF13);
cfg.addVlogModule("X_TRI", (HSimInstFactoryPtr)IF14);
cfg.addVlogModule("X_ZERO", (HSimInstFactoryPtr)IF15);
cfg.addVlogModule("X_ZERO", (HSimInstFactoryPtr)IF16);
cfg.addVlogModule("X_TRI", (HSimInstFactoryPtr)IF17);
cfg.addVlogModule("X_OR2", (HSimInstFactoryPtr)IF18);
cfg.addVlogModule("X_OPAD", (HSimInstFactoryPtr)IF19);
cfg.addVlogModule("X_ONE", (HSimInstFactoryPtr)IF20);
cfg.addVlogModule("X_LUT4", (HSimInstFactoryPtr)IF21);
cfg.addVlogModule("X_IPAD", (HSimInstFactoryPtr)IF22);
cfg.addVlogModule("X_INV", (HSimInstFactoryPtr)IF23);
cfg.addVlogModule("X_FF", (HSimInstFactoryPtr)IF24);
cfg.addVlogModule("X_BUFGMUX", (HSimInstFactoryPtr)IF25);
cfg.addVlogModule("X_BUF", (HSimInstFactoryPtr)IF26);
cfg.addVlogModule("sw_led", (HSimInstFactoryPtr)IF27);
cfg.addVlogModule("glbl", (HSimInstFactoryPtr)IF28);
_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;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -