stim.cpp

来自「Kluwer.Academic.Pub.Systemc.From.The.Gro」· C++ 代码 · 共 18 行

CPP
18
字号
//BEGIN stim.cpp (systemc)//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//See stim.h for more information//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include "stim.h"void stim::stim_thread(void) {  wait(2,SC_NS);  // Get off zero  for (unsigned i=0; i!=5; i++) {    cout << "INFO: " << name() << " Sending event at " << sc_time_stamp() << endl;    irq_op->notify(SC_ZERO_TIME);    wait(5,SC_NS);  }//endfor}//end stim::stim_thread//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: stim.cpp,v 1.1 2004/02/13 05:21:42 dcblack Exp $

⌨️ 快捷键说明

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