?? 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 + -