Branch data Line data Source code
1 : : /*****************************************************************************
2 : :
3 : : The following code is derived, directly or indirectly, from the SystemC
4 : : source code Copyright (c) 1996-2006 by all Contributors.
5 : : All Rights reserved.
6 : :
7 : : The contents of this file are subject to the restrictions and limitations
8 : : set forth in the SystemC Open Source License Version 2.4 (the "License");
9 : : You may not use this file except in compliance with such restrictions and
10 : : limitations. You may obtain instructions on how to receive a copy of the
11 : : License at http://www.systemc.org/. Software distributed by Contributors
12 : : under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13 : : ANY KIND, either express or implied. See the License for the specific
14 : : language governing rights and limitations under the License.
15 : :
16 : : *****************************************************************************/
17 : :
18 : : /*****************************************************************************
19 : :
20 : : floating.h -- Floating Point Execution Unit.
21 : :
22 : : Original Author: Martin Wang, Synopsys, Inc.
23 : :
24 : : *****************************************************************************/
25 : :
26 : : /*****************************************************************************
27 : :
28 : : MODIFICATION LOG - modifiers, enter your name, affiliation, date and
29 : : changes you are making here.
30 : :
31 : : Name, Affiliation, Date: Nicolas Blanc, ETHZ, 2009
32 : : Description of Modification: many code updates
33 : :
34 : : Name, Affiliation, Date:
35 : : Description of Modification:
36 : :
37 : : *****************************************************************************/
38 : :
39 : : #ifndef _FLOATING_H_
40 : : #define _FLOATING_H_
41 : :
42 : : #include "systemc.h"
43 : :
44 : : //LCOV_EXCL_BR_START
45 : 1 : SC_MODULE(floating)
46 : : {
47 : : sc_in_clk CLK;
48 : : sc_in<bool> cs;// chip select
49 : : sc_in<sc_uint<8> > opcode;// opcode
50 : : sc_in<sc_int<32> > dina;// operand A
51 : : sc_in<sc_int<32> > dinb;// operand B
52 : : sc_out<sc_int<32> > dout;// FPU output
53 : : sc_out<bool> out_valid; // output valid
54 : :
55 : : void entry();
56 : :
57 : 1 : SC_CTOR(floating)
58 : 1 : {
59 : 1 : SC_CTHREAD(entry, CLK.pos());
60 : 1 : }
61 : : };
62 : : //LCOV_EXCL_BR_STOP
63 : :
64 : : #endif
|