m1.h

来自「Kluwer.Academic.Pub.Systemc.From.The.Gro」· C头文件 代码 · 共 46 行

H
46
字号
#ifndef M1_H#define M1_H//BEGIN connections.h//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <systemc.h>#include <interfaces.h>SC_MODULE(m1), public ifW {  // Ports  sc_port<if1> pA;  sc_port<ifB> pB;  sc_port<ifD> pC;#ifdef SYSTEMC_V2_1  sc_export<if6> pG;#endif  // Interface ifW  #include "interfaces.inc"  // Local channels for sc_exports  chC cCi;  chG cGi;  SC_CTOR(m1)  : pA("pA"), // label all the ports & channels to aid debug    pB("pB"),    pC("pC"),#ifdef SYSTEMC_V2_1    pG("pG"),#endif    cCi("cCi"),    cGi("cGi")  {    // Connectivity    pC(cCi);#ifdef SYSTEMC_V2_1    pG(cGi);#endif    // Local processes    SC_THREAD(m1_thread);  }  void m1_thread(void) {  }};#endif//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: m1.h,v 1.5 2004/04/15 17:37:38 dcblack Exp $

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?