?? pc.h
字號:
#ifndef PC_H
#define PC_H
#include "STDAFX.h"
SC_MODULE(pc)
{
sc_in<sc_uint<32> > pc_in;
sc_out<sc_uint<32> > pc_out;
//sc_in_clk clk;
void entry()
{
pc_out.write(pc_in.read());
//cout<<endl;
//輸出上次運行結束后寄存器堆的結果
//Print(register_data,8);
//當前運行時間、指令指針
//cout<<"Current Time: "<<sc_simulation_time()<<endl;
//cout<<"PC: ";Print(pc_in.read());
}
SC_CTOR(pc)
{
SC_METHOD(entry);
//sensitive_pos<<clk;
sensitive<<pc_in;
}
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -