📄 output.cpp
字号:
/************************************************************************
* file name: output.cpp
* description: implementation of output module.
*
* modification history
* --------------------
* 2003-5-31 20:10:39, created by zhuwei
*/
/* includes----------------------------------------------------------- */
#include "output.h"
/* defines------------------------------------------------------------ */
/* typedefs----------------------------------------------------------- */
/* externs------------------------------------------------------------ */
/* globals------------------------------------------------------------ */
/* forward declarations----------------------------------------------- */
void output::do_output()
{
sc_bit b1, b0;
b1 = 1;
b0 = 0;
while(true)
{
dout[0] = b0;
dout[1] = b0;
dout[2] = b0;
wait(5, SC_NS);
dout[0] = b1;
dout[1] = b1;
dout[2] = b1;
wait(15, SC_NS);
dout[0] = b0;
dout[1] = b0;
dout[2] = b0;
wait(15, SC_NS);
dout[0] = b0;
dout[1] = b0;
dout[2] = b1;
wait(15, SC_NS);
sc_stop();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -