98 void dump( ::std::ostream& )
const;
117 : m_type_params( type_params_ ),
119 m_cast_switch( cast_sw )
124 "SC_WRAP_SM not defined for unsigned numbers" );
137 return m_type_params;
151 return m_cast_switch;
161 return m_type_params.
wl();
168 return m_type_params.
iwl();
175 return ( m_type_params.
wl() - m_type_params.
iwl() );
182 return m_type_params.
q_mode();
189 return m_type_params.
o_mode();
196 return m_type_params.
n_bits();
206 os <<
"scfx_params" << ::std::endl;
207 os <<
"(" << ::std::endl;
208 os <<
"type_params = ";
209 m_type_params.
dump( os );
210 os <<
"enc = " << m_enc << ::std::endl;
211 os <<
"cast_switch = ";
212 m_cast_switch.
dump( os );
213 os <<
")" << ::std::endl;
Report ids for the datatypes/fx code.
scfx_params(const sc_fxtype_params &, sc_enc, const sc_fxcast_switch &)
void dump(::std::ostream &=::std::cout) const
sc_enc
Enumeration of sign encodings.
Fixed-point cast switch class.
void dump(::std::ostream &) const
const sc_fxtype_params & type_params() const
Fixed-point type parameters class.
void dump(::std::ostream &=::std::cout) const
sc_q_mode
Enumeration of quantization modes.
#define SC_REPORT_ERROR(msg_type, msg)
const sc_fxcast_switch & cast_switch() const
sc_o_mode
Enumeration of overflow modes.