gem5  v20.1.0.0
sc_nbexterns.hh
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  sc_nbexterns.h -- External functions for both sc_signed and sc_unsigned
23  classes. These functions work on two parameters u and
24  v, and copy the result to the first parameter u. This
25  is also the reason that they are suffixed with _on_help.
26 
27  The vec_* functions are called through either these
28  functions or those in sc_nbfriends.cpp. The functions in
29  sc_nbfriends.cpp perform their work on two inputs u and v,
30  and return the result object.
31 
32  Original Author: Ali Dasdan, Synopsys, Inc.
33 
34  *****************************************************************************/
35 
36 /*****************************************************************************
37 
38  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
39  changes you are making here.
40 
41  Name, Affiliation, Date:
42  Description of Modification:
43 
44  *****************************************************************************/
45 
46 // $Log: sc_nbexterns.h,v $
47 // Revision 1.2 2011/02/18 20:19:15 acg
48 // Andy Goodrich: updating Copyright notice.
49 //
50 // Revision 1.1.1.1 2006/12/15 20:20:05 acg
51 // SystemC 2.3
52 //
53 // Revision 1.3 2006/01/13 18:49:32 acg
54 // Added $Log command so that CVS check in comments are reproduced in the
55 // source.
56 //
57 
58 #ifndef __SYSTEMC_EXT_DT_INT_SC_NBEXTERNS_HH__
59 #define __SYSTEMC_EXT_DT_INT_SC_NBEXTERNS_HH__
60 
61 #include "sc_nbutils.hh"
62 
63 namespace sc_dt
64 {
65 
66 extern void add_on_help(
67  small_type &us, int unb, int und, sc_digit *ud,
68  small_type vs, int vnb, int vnd, const sc_digit *vd);
69 
70 extern void mul_on_help_signed(
71  small_type &us, int unb, int und, sc_digit *ud,
72  int vnb, int vnd, const sc_digit *vd);
73 
75  small_type &us, int unb, int und, sc_digit *ud,
76  int vnb, int vnd, const sc_digit *vd);
77 
78 extern void mod_on_help_signed(
79  small_type &us, int unb, int und, sc_digit *ud,
80  int vnb, int vnd, const sc_digit *vd);
81 
82 extern void mul_on_help_unsigned(
83  small_type &us, int unb, int und, sc_digit *ud,
84  int vnb, int vnd, const sc_digit *vd);
85 
87  small_type &us, int unb, int und, sc_digit *ud,
88  int vnb, int vnd, const sc_digit *vd);
89 
90 extern void mod_on_help_unsigned(
91  small_type &us, int unb, int und, sc_digit *ud,
92  int vnb, int vnd, const sc_digit *vd);
93 
94 extern void and_on_help(
95  small_type us, int unb, int und, sc_digit *ud,
96  small_type vs, int vnb, int vnd, const sc_digit *vd);
97 
98 extern void or_on_help(
99  small_type us, int unb, int und, sc_digit *ud,
100  small_type vs, int vnb, int vnd, const sc_digit *vd);
101 
102 extern void xor_on_help(
103  small_type us, int unb, int und, sc_digit *ud,
104  small_type vs, int vnb, int vnd, const sc_digit *vd);
105 
106 } // namespace sc_dt
107 
108 #endif // __SYSTEMC_EXT_DT_INT_SC_NBEXTERNS_HH__
sc_dt::mul_on_help_unsigned
void mul_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:218
sc_dt
Definition: sc_bit.cc:67
sc_dt::div_on_help_unsigned
void div_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:344
sc_dt::sc_digit
unsigned int sc_digit
Definition: sc_nbdefs.hh:197
MipsISA::vs
Bitfield< 9, 5 > vs
Definition: pra_constants.hh:146
SimClock::Float::us
double us
microsecond
Definition: core.cc:51
sc_dt::mod_on_help_signed
void mod_on_help_signed(small_type &us, int unb, int und, sc_digit *ud, int, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:407
sc_dt::mul_on_help_signed
void mul_on_help_signed(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:155
sc_dt::div_on_help_signed
void div_on_help_signed(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:285
sc_nbutils.hh
sc_dt::small_type
int small_type
Definition: sc_nbdefs.hh:142
sc_dt::or_on_help
void or_on_help(small_type us, int, int und, sc_digit *ud, small_type vs, int, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:621
sc_dt::xor_on_help
void xor_on_help(small_type us, int, int und, sc_digit *ud, small_type vs, int, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:699
sc_dt::mod_on_help_unsigned
void mod_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:473
sc_dt::and_on_help
void and_on_help(small_type us, int, int und, sc_digit *ud, small_type vs, int, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:545
sc_dt::add_on_help
void add_on_help(small_type &us, int, int und, sc_digit *ud, small_type vs, int, int vnd, const sc_digit *vd)
Definition: sc_nbexterns.cc:100

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