45 #ifndef SCFX_OTHER_DEFS_H
46 #define SCFX_OTHER_DEFS_H
75 "sc_signed::operator = ( const sc_fxval& )" );
78 for(
int i = 0; i <
length(); ++ i )
79 (*
this)[i] = v.get_bit( i );
91 "sc_signed::operator = ( const sc_fxval_fast& )" );
94 for(
int i = 0; i <
length(); ++ i )
95 (*
this)[i] = v.get_bit( i );
104 if( ! v.is_normal() )
107 "sc_signed::operator = ( const sc_fxnum& )" );
110 for(
int i = 0; i <
length(); ++ i )
111 (*
this)[i] = v.get_bit( i );
120 if( ! v.is_normal() )
123 "sc_signed::operator = ( const sc_fxnum_fast& )" );
126 for(
int i = 0; i <
length(); ++ i )
127 (*
this)[i] = v.get_bit( i );
143 if( ! v.is_normal() )
146 "sc_unsigned::operator = ( const sc_fxval& )" );
149 for(
int i = 0; i <
length(); ++ i )
150 (*
this)[i] = v.get_bit( i );
159 if( ! v.is_normal() )
162 "sc_unsigned::operator = ( const sc_fxval_fast& )" );
165 for(
int i = 0; i <
length(); ++ i )
166 (*
this)[i] = v.get_bit( i );
175 if( ! v.is_normal() )
178 "sc_unsigned::operator = ( const sc_fxnum& )" );
181 for(
int i = 0; i <
length(); ++ i )
182 (*
this)[i] = v.get_bit( i );
191 if( ! v.is_normal() )
194 "sc_unsigned::operator = ( const sc_fxnum_fast& )" );
197 for(
int i = 0; i <
length(); ++ i )
198 (*
this)[i] = v.get_bit( i );
209 #define NUM_WIDTH LLWIDTH
211 #define NUM_WIDTH INTWIDTH
221 if( ! v.is_normal() ) {
223 "sc_int_base::operator = ( const sc_fxval& )" );
225 for(
int i = 0; i <
m_len; ++ i ) {
226 set( i, v.get_bit( i ) );
236 if( ! v.is_normal() ) {
238 "sc_int_base::operator = ( const sc_fxval_fast& )" );
240 for(
int i = 0; i <
m_len; ++ i ) {
241 set( i, v.get_bit( i ) );
251 if( ! v.is_normal() ) {
253 "sc_int_base::operator = ( const sc_fxnum& )" );
255 for(
int i = 0; i <
m_len; ++ i ) {
256 set( i, v.get_bit( i ) );
266 if( ! v.is_normal() ) {
268 "sc_int_base::operator = ( const sc_fxnum_fast& )" );
270 for(
int i = 0; i <
m_len; ++ i ) {
271 set( i, v.get_bit( i ) );
290 if( ! v.is_normal() ) {
292 "sc_uint_base::operator = ( const sc_fxval& )" );
294 for(
int i = 0; i <
m_len; ++ i ) {
295 set( i, v.get_bit( i ) );
305 if( ! v.is_normal() ) {
307 "sc_uint_base::operator = ( const sc_fxval_fast& )" );
309 for(
int i = 0; i <
m_len; ++ i ) {
310 set( i, v.get_bit( i ) );
320 if( ! v.is_normal() ) {
322 "sc_uint_base::operator = ( const sc_fxnum& )" );
324 for(
int i = 0; i <
m_len; ++ i ) {
325 set( i, v.get_bit( i ) );
335 if( ! v.is_normal() ) {
337 "sc_uint_base::operator = ( const sc_fxnum_fast& )" );
339 for(
int i = 0; i <
m_len; ++ i ) {
340 set( i, v.get_bit( i ) );
357 const sc_fxval&
object,
const std::string& name )
360 tf->
trace(
object, name );
366 const sc_fxval*
object,
const std::string& name )
369 tf->
trace( *
object, name );
378 tf->
trace(
object, name );
387 tf->
trace( *
object, name );
393 const sc_fxnum&
object,
const std::string& name )
396 tf->
trace(
object, name );
402 const sc_fxnum*
object,
const std::string& name )
405 tf->
trace( *
object, name );
414 tf->
trace(
object, name );
423 tf->
trace( *
object, name );
const sc_unsigned & operator=(const sc_unsigned &v)
#define SC_REPORT_ERROR(msg_type, msg)
sc_uint_base & operator=(uint_type v)
virtual void trace(const unsigned int &object, const std::string &name, const char **enum_literals)=0
const sc_signed & operator=(const sc_signed &v)
sc_int_base & operator=(int_type v)
void sc_trace(sc_core::sc_trace_file *tf, const sc_fxval &object, const std::string &name)