gem5  v19.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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__
void and_on_help(small_type us, int, int und, sc_digit *ud, small_type vs, int, int vnd, const sc_digit *vd)
unsigned int sc_digit
Definition: sc_nbdefs.hh:163
Definition: sc_bit.cc:67
void mul_on_help_signed(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
void mod_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int, int vnd, const sc_digit *vd)
Bitfield< 9, 5 > vs
void div_on_help_signed(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
int small_type
Definition: sc_nbdefs.hh:108
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:66
void or_on_help(small_type us, int, int und, sc_digit *ud, small_type vs, int, int vnd, const sc_digit *vd)
double us
microsecond
Definition: core.cc:54
void mul_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
void xor_on_help(small_type us, int, int und, sc_digit *ud, small_type vs, int, int vnd, const sc_digit *vd)
void div_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
void mod_on_help_signed(small_type &us, int unb, int und, sc_digit *ud, int, int vnd, const sc_digit *vd)

Generated on Fri Feb 28 2020 16:27:04 for gem5 by doxygen 1.8.13