output.h

来自「SYSTEMC经典案例,很好的SYSTEMC参考资料.SYSTEMC系统验证测试」· C头文件 代码 · 共 36 行

H
36
字号
/************************************************************************
 * file name:	output.h
 * description:	header file of output module.
 *
 * modification history
 * --------------------
 * 2003-5-31 20:06:24, created by zhuwei
 */ 

#ifndef _OUTPUT_H
#define _OUTPUT_H

/* includes----------------------------------------------------------- */
#include "systemc.h"

/* defines------------------------------------------------------------ */
/* typedefs----------------------------------------------------------- */
SC_MODULE(output)
{
	sc_out< sc_bit >	dout[3];
	sc_in<bool>	clk;

	void do_output();
	//int		count;

	SC_CTOR(output)//: count(0)
	{
		SC_THREAD(do_output);
		sensitive_pos << clk;
	}
};
/* externs------------------------------------------------------------ */
/* globals------------------------------------------------------------ */
/* forward declarations----------------------------------------------- */

#endif /* _OUTPUT_H */

⌨️ 快捷键说明

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