📄 heartbeat.h
字号:
#ifndef HEARTBEAT_H#define HEARTBEAT_H//BEGIN heartbeat.h//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// DESCRIPTION// This example uses the ea_heartbeat hierarchical channel, which// models a very simple clock.//// DESIGN HIERARCHY// sc_main()// +- ea_heartbeat clock// +- heartbeat_i(clock)// +- heartbeat_method//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <systemc.h>#include "ea_heartbeat_if.h"SC_MODULE(heartbeat) { sc_port<ea_heartbeat_if> clock; SC_CTOR(heartbeat) { SC_METHOD(heartbeat_method); sensitive << clock; dont_initialize(); } void heartbeat_method(void);};#endif//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: heartbeat.h,v 1.3 2004/04/15 17:40:11 dcblack Exp $
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -