method_delay.h
来自「Kluwer.Academic.Pub.Systemc.From.The.Gro」· C头文件 代码 · 共 25 行
H
25 行
#ifndef METHOD_DELAY_H#define METHOD_DELAY_H//BEGIN method_delay.h//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// DESCRIPTION// This example illustrates how to insert time delays into SC_METHODs.//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <systemc.h>extern const sc_time FIVE;SC_MODULE(method_delay) { enum states {INIT, FIVE_1, FIVE_2, ZERO_1, ZERO_2, STOP}; int state; SC_CTOR(method_delay) : state(INIT) { SC_METHOD(delay_method); } void delay_method(void);};#endif//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: method_delay.h,v 1.3 2004/04/15 17:42:34 dcblack Exp $
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?