00001 /***************************************************************************** 00002 00003 The following code is derived, directly or indirectly, from the SystemC 00004 source code Copyright (c) 1996-2004 by all Contributors. 00005 All Rights reserved. 00006 00007 The contents of this file are subject to the restrictions and limitations 00008 set forth in the SystemC Open Source License Version 2.4 (the "License"); 00009 You may not use this file except in compliance with such restrictions and 00010 limitations. You may obtain instructions on how to receive a copy of the 00011 License at http://www.systemc.org/. Software distributed by Contributors 00012 under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 00013 ANY KIND, either express or implied. See the License for the specific 00014 language governing rights and limitations under the License. 00015 00016 *****************************************************************************/ 00017 00018 /***************************************************************************** 00019 00020 exec.h -- Integer Execution Unit. 00021 00022 Original Author: Martin Wang, Synopsys, Inc. 00023 00024 *****************************************************************************/ 00025 00026 /***************************************************************************** 00027 00028 MODIFICATION LOG - modifiers, enter your name, affiliation, date and 00029 changes you are making here. 00030 00031 Name, Affiliation, Date: 00032 Description of Modification: 00033 00034 *****************************************************************************/ 00035 00036 00037 struct exec : sc_module { 00038 sc_in<bool> reset; // reset not used. 00039 sc_in<bool> in_valid; // input valid 00040 sc_in<int> opcode; // opcode from ID 00041 sc_in<bool> negate; // not implemented 00042 sc_in<int> add1; // not implemented 00043 sc_in<bool> shift_sel; // not implemented 00044 sc_in<signed int> dina; // operand A 00045 sc_in<signed int> dinb; // operand B 00046 sc_in<bool> forward_A; // data forwarding A valid 00047 sc_in<bool> forward_B; // data forwarding B valid 00048 sc_in<unsigned> dest; // destination register number 00049 sc_out<bool> C; // Carry bit 00050 sc_out<bool> V; // Overflow bit 00051 sc_out<bool> Z; // Zero bit 00052 sc_out<signed int> dout; // output data 00053 sc_out<bool> out_valid; // output valid 00054 sc_out<unsigned> destout; // write to which registers? 00055 sc_in_clk CLK; 00056 00057 00058 SC_CTOR(exec) { 00059 SC_CTHREAD(entry, CLK.pos()); 00060 } 00061 00062 void entry(); 00063 }; 00064 00065 // EOF