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