aluctrl.h
来自「改进的基于6个mips核的NOC网络」· C头文件 代码 · 共 40 行
H
40 行
/* * TU Eindhoven * Eindhoven, The Netherlands * * Name : aluctrl.h * * Author : Sander Stuijk (sander@ics.ele.tue.nl) * * Date : July 23, 2002 * * Function : ALU controller * * History : * 23-07-02 : Initial version. * 13-12-02 : Synthesizable version A.S.Slusarczyk@tue.nl * */ #ifndef ALUCTRL_H_INCLUDED#define ALUCTRL_H_INCLUDED#include "mips.h"SC_MODULE(ALUCTRL) { sc_in< sc_bv<W_FUNCCODE> > functionCode; // Bit [0,5] of instruction sc_in< sc_bv<W_ALUOP> > ALUop; // ALU operation code sc_in< sc_bv<W_SHAMT> > Shamt; // Shift amount sc_out< sc_bv<W_ALUCTRL> > ALUctrl; // Control output to ALU void aluctrl_thread(); // Constructor SC_CTOR(ALUCTRL) { SC_METHOD(aluctrl_thread); //-> SC_THREAD(aluctrl_thread); sensitive << functionCode << ALUop << Shamt; }};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?