SystemC  Recoding Infrastructure for SystemC v0.6.3 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
sc_nbexterns.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  The following code is derived, directly or indirectly, from the SystemC
4  source code Copyright (c) 1996-2014 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 (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.accellera.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  sc_nbexterns.h -- External functions for both sc_signed and sc_unsigned
21  classes. These functions work on two parameters u and
22  v, and copy the result to the first parameter u. This
23  is also the reason that they are suffixed with _on_help.
24 
25  The vec_* functions are called through either these
26  functions or those in sc_nbfriends.cpp. The functions in
27  sc_nbfriends.cpp perform their work on two inputs u and v,
28  and return the result object.
29 
30  Original Author: Ali Dasdan, Synopsys, Inc.
31 
32  *****************************************************************************/
33 
34 /*****************************************************************************
35 
36  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
37  changes you are making here.
38 
39  Name, Affiliation, Date:
40  Description of Modification:
41 
42  *****************************************************************************/
43 
44 // $Log: sc_nbexterns.h,v $
45 // Revision 1.2 2011/02/18 20:19:15 acg
46 // Andy Goodrich: updating Copyright notice.
47 //
48 // Revision 1.1.1.1 2006/12/15 20:20:05 acg
49 // SystemC 2.3
50 //
51 // Revision 1.3 2006/01/13 18:49:32 acg
52 // Added $Log command so that CVS check in comments are reproduced in the
53 // source.
54 //
55 
56 #ifndef SC_NBEXTERNS_H
57 #define SC_NBEXTERNS_H
58 
59 
61 
62 
63 namespace sc_dt
64 {
65 
66 extern
67 void add_on_help(small_type &us,
68  int unb, int und, sc_digit *ud,
69  small_type vs,
70  int vnb, int vnd, const sc_digit *vd);
71 
72 extern
74  int unb, int und, sc_digit *ud,
75  int vnb, int vnd, const sc_digit *vd);
76 
78  int unb, int und, sc_digit *ud,
79  int vnb, int vnd, const sc_digit *vd);
80 
81 extern
83  int unb, int und, sc_digit *ud,
84  int vnb, int vnd, const sc_digit *vd);
85 
86 extern
88  int unb, int und, sc_digit *ud,
89  int vnb, int vnd, const sc_digit *vd);
90 
92  int unb, int und, sc_digit *ud,
93  int vnb, int vnd, const sc_digit *vd);
94 
95 extern
97  int unb, int und, sc_digit *ud,
98  int vnb, int vnd, const sc_digit *vd);
99 
100 extern
101 void and_on_help(small_type us,
102  int unb, int und, sc_digit *ud,
103  small_type vs,
104  int vnb, int vnd, const sc_digit *vd);
105 
106 extern
107 void or_on_help(small_type us,
108  int unb, int und, sc_digit *ud,
109  small_type vs,
110  int vnb, int vnd, const sc_digit *vd);
111 
112 extern
113 void xor_on_help(small_type us,
114  int unb, int und, sc_digit *ud,
115  small_type vs,
116  int vnb, int vnd, const sc_digit *vd);
117 
118 } // namespace sc_dt
119 
120 
121 #endif
void mod_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
void and_on_help(small_type us, int unb, int und, sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd)
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.h:118
void or_on_help(small_type us, int unb, int und, sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd)
void mul_on_help_signed(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
unsigned int sc_digit
Definition: sc_nbdefs.h:173
void div_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)
void add_on_help(small_type &us, int unb, int und, sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd)
void mod_on_help_signed(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 unb, int und, sc_digit *ud, small_type vs, int vnb, int vnd, const sc_digit *vd)
void mul_on_help_unsigned(small_type &us, int unb, int und, sc_digit *ud, int vnb, int vnd, const sc_digit *vd)