gem5  v20.1.0.0
a2901_alu_inputs.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4  more contributor license agreements. See the NOTICE file distributed
5  with this work for additional information regarding copyright ownership.
6  Accellera licenses this file to you under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with the
8  License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15  implied. See the License for the specific language governing
16  permissions and limitations under the License.
17 
18  *****************************************************************************/
19 
20 /*****************************************************************************
21 
22  a2901_alu_inputs.h --
23 
24  Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
25 
26  *****************************************************************************/
27 
28 /*****************************************************************************
29 
30  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
31  changes you are making here.
32 
33  Name, Affiliation, Date:
34  Description of Modification:
35 
36  *****************************************************************************/
37 
38 #ifndef A2901_ALU_INPUTS_H
39 #define A2901_ALU_INPUTS_H
40 
41 #include "common.h"
42 
43 SC_MODULE( a2901_alu_inputs )
44 {
45  SC_HAS_PROCESS( a2901_alu_inputs );
46 
47  // shared state
48  long* RAM;
49 
50  // inputs
51  const sig9& I;
52  const sig4& Aadd;
53  const sig4& Badd;
54  const sig4& D;
55  const sig4& Q;
56 
57  // outputs
58  sig4& RE;
59  sig4& S;
60  sig4& A;
61 
62  // constructor
63  a2901_alu_inputs( sc_module_name,
64  long* RAM_,
65  const sig9& I_,
66  const sig4& Aadd_,
67  const sig4& Badd_,
68  const sig4& D_,
69  const sig4& Q_,
70  sig4& RE_,
71  sig4& S_,
72  sig4& A_ )
73  : RAM( RAM_ ),
74  I( I_ ),
75  Aadd( Aadd_ ),
76  Badd( Badd_ ),
77  D( D_ ),
78  Q( Q_ ),
79  RE( RE_ ),
80  S( S_ ),
81  A( A_ )
82  {
83  SC_METHOD( entry );
84  sensitive << I;
85  sensitive << Aadd;
86  sensitive << Badd;
87  sensitive << D;
88  sensitive << Q;
89  }
90 
91  void entry();
92 };
93 
94 #endif
95 
sig4
sc_signal< int4 > sig4
Definition: common.h:49
I_
@ I_
Definition: CommonTypes.hh:42
SC_METHOD
#define SC_METHOD(name)
Definition: sc_module.hh:299
X86ISA::RE
const uint8_t RE
Definition: decoder_tables.cc:53
sig9
sc_signal< int9 > sig9
Definition: common.h:51
SC_HAS_PROCESS
#define SC_HAS_PROCESS(name)
Definition: sc_module.hh:297
common.h
SC_MODULE
SC_MODULE(a2901_alu_inputs)
Definition: a2901_alu_inputs.h:43

Generated on Wed Sep 30 2020 14:02:17 for gem5 by doxygen 1.8.17