decoder.h
来自「国外开源的一个片上网络系统的源代码」· C头文件 代码 · 共 61 行
H
61 行
/* * TU Eindhoven * Eindhoven, The Netherlands * * Name : decoder.h * * Author : Sander Stuijk (sander@ics.ele.tue.nl) * * Date : July 23, 2002 * * Function : Decoder * * History : * 23-07-02 : Initial version. * 13-12-02 : Synthesizable version A.S.Slusarczyk@tue.nl * */ #ifndef DECODER_H_INCLUDED#define DECODER_H_INCLUDED#include "mips.h"SC_MODULE(DECODER) { sc_in< sc_bv<DWORD> > instr; sc_out< sc_bv<6> > instr_31_26; sc_out< sc_bv<DWORD> > instr_25_0; sc_out< sc_bv<5> > instr_25_21; sc_out< sc_bv<5> > instr_20_16; sc_out< sc_bv<5> > instr_15_11; sc_out< sc_bv<16> > instr_15_0; sc_out< sc_bv<5> > instr_10_6; sc_out< sc_bv<6> > instr_5_0; void decoder_thread(); SC_CTOR(DECODER) { SC_METHOD(decoder_thread); //-> SC_THREAD(decoder_thread); sensitive << instr; }};// decoder for non-registered instructionsSC_MODULE(DECODER_NBUF) { sc_in< sc_bv<DWORD> > instr; sc_out< sc_bv<5> > instr_25_21; sc_out< sc_bv<5> > instr_20_16; // sc_in< sc_bv<1> > w; void decoder_nbuf_thread(); SC_CTOR(DECODER_NBUF) { SC_METHOD(decoder_nbuf_thread); sensitive << instr;// << w; }};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?