📄 genghis.h
字号:
#ifndef GENGHIS_H#define GENGHIS_H//BEGIN Genghis.h//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// DESCRIPTION// This is the Genghis Chan, custom primitive channel definition.// It supports a very basic interface.//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <systemc.h>#include "Genghis_out_if.h"#include "Genghis_in_if.h"class Genghis: public sc_prim_channel, public Genghis_out_if, public Genghis_in_if {public: Genghis(); // Constructor void put(const char ID,int val); int get(const char ID); bool nb_put(const char ID, int val); inline bool empty(const char ID); bool nb_get(const char ID, int& val); inline bool full(const char ID); inline void checkid(const char ID);private: char m_id; int m_value; bool m_valid; sc_event m_changed;};#endif//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: Genghis.h,v 1.2 2004/04/15 17:43:04 dcblack Exp $
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -