gem5  v21.2.1.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
sc_core::sc_inout< sc_dt::sc_int< W > > Class Reference

#include <scx_signal_int.h>

Inheritance diagram for sc_core::sc_inout< sc_dt::sc_int< W > >:
sc_core::sc_port< sc_signal_inout_if< sc_dt::sc_int< W > >, 1 > sc_dt::sc_value_base sc_core::sc_port_b< sc_signal_inout_if< sc_dt::sc_int< W > > > sc_core::sc_port_base sc_core::sc_object sc_core::sc_out< sc_dt::sc_int< W > >

Public Types

typedef sc_dt::sc_int< W > data_type
 
typedef sc_signal_inout_if< sc_dt::sc_int< W > > if_type
 
typedef sc_port< if_type, 1 > base_type
 
typedef sc_inout< sc_dt::sc_int< W > > this_type
 
typedef if_type inout_if_type
 
typedef base_type inout_port_type
 

Public Member Functions

void bind (const inout_if_type &interface_)
 
void operator() (const inout_if_type &interface_)
 
void bind (inout_port_type &parent_)
 
void operator() (inout_port_type &parent_)
 
 sc_inout ()
 
 sc_inout (const char *name_)
 
 sc_inout (inout_if_type &interface_)
 
 sc_inout (const char *name_, inout_if_type &interface_)
 
 sc_inout (inout_port_type &parent_)
 
 sc_inout (const char *name_, inout_port_type &parent_)
 
 sc_inout (this_type &parent_)
 
 sc_inout (const char *name_, this_type &parent_)
 
virtual ~sc_inout ()
 
sc_dt::sc_int_bitref_r operator[] (int i) const
 
sc_dt::sc_int_bitref_r bit (int i) const
 
sc_int_sigrefoperator[] (int i)
 
sc_int_sigrefbit (int i)
 
sc_dt::sc_int_subref_r operator() (int left, int right) const
 
sc_dt::sc_int_subref_r range (int left, int right) const
 
sc_int_sigrefoperator() (int left, int right)
 
sc_int_sigrefrange (int left, int right)
 
const sc_eventdefault_event () const
 
const sc_eventvalue_changed_event () const
 
const sc_dt::sc_int< W > & read () const
 
 operator sc_dt::int64 () const
 
bool event () const
 
sc_event_findervalue_changed () const
 
bool and_reduce () const
 
bool nand_reduce () const
 
bool nor_reduce () const
 
bool or_reduce () const
 
bool xnor_reduce () const
 
bool xor_reduce () const
 
virtual void end_of_elaboration ()
 
virtual const char * kind () const
 
void initialize (const sc_dt::sc_int< W > &value_)
 
void add_trace (sc_trace_file *tf_, const std::string &name_) const
 
virtual int concat_length (bool *xz_present_p) const
 
virtual sc_dt::uint64 concat_get_uint64 () const
 
virtual bool concat_get_ctrl (sc_dt::sc_digit *dst_p, int low_i) const
 
virtual bool concat_get_data (sc_dt::sc_digit *dst_p, int low_i) const
 
virtual void concat_set (sc_dt::int64 src, int low_i)
 
virtual void concat_set (const sc_dt::sc_signed &src, int low_i)
 
virtual void concat_set (const sc_dt::sc_unsigned &src, int low_i)
 
virtual void concat_set (sc_dt::uint64 src, int low_i)
 
void operator= (const this_type &new_val)
 
void operator= (const char *new_val)
 
void operator= (sc_dt::uint64 new_val)
 
void operator= (sc_dt::int64 new_val)
 
void operator= (int new_val)
 
void operator= (long new_val)
 
void operator= (short new_val)
 
void operator= (unsigned int new_val)
 
void operator= (unsigned long new_val)
 
void operator= (unsigned short new_val)
 
template<typename T >
void operator= (const sc_dt::sc_generic_base< T > &new_val)
 
void operator= (const sc_dt::sc_signed &new_val)
 
void operator= (const sc_dt::sc_unsigned &new_val)
 
void operator= (const sc_dt::sc_bv_base &new_val)
 
void operator= (const sc_dt::sc_lv_base &new_val)
 
void write (const sc_in< sc_dt::sc_int< W > > &new_val)
 
void write (const sc_inout< sc_dt::sc_int< W > > &new_val)
 
void write (const sc_dt::sc_int< W > &new_val)
 
- Public Member Functions inherited from sc_core::sc_port< sc_signal_inout_if< sc_dt::sc_int< W > >, 1 >
 sc_port ()
 
 sc_port (const char *name)
 
 sc_port (const sc_signal_inout_if< sc_dt::sc_int< W > > &interface)
 
 sc_port (const char *name, const sc_signal_inout_if< sc_dt::sc_int< W > > &interface)
 
 sc_port (sc_port_b< sc_signal_inout_if< sc_dt::sc_int< W > > > &parent)
 
 sc_port (const char *name, sc_port_b< sc_signal_inout_if< sc_dt::sc_int< W > > > &parent)
 
 sc_port (sc_port< sc_signal_inout_if< sc_dt::sc_int< W > >, N, SC_ONE_OR_MORE_BOUND > &parent)
 
 sc_port (const char *name, sc_port< sc_signal_inout_if< sc_dt::sc_int< W > >, N, SC_ONE_OR_MORE_BOUND > &parent)
 
virtual ~sc_port ()
 
virtual const char * kind () const override
 
- Public Member Functions inherited from sc_core::sc_port_b< sc_signal_inout_if< sc_dt::sc_int< W > > >
void operator() (sc_signal_inout_if< sc_dt::sc_int< W > > &i)
 
void operator() (sc_port_b< sc_signal_inout_if< sc_dt::sc_int< W > > > &p)
 
virtual void bind (sc_signal_inout_if< sc_dt::sc_int< W > > &i)
 
virtual void bind (sc_port_b< sc_signal_inout_if< sc_dt::sc_int< W > > > &p)
 
sc_signal_inout_if< sc_dt::sc_int< W > > * operator-> ()
 
const sc_signal_inout_if< sc_dt::sc_int< W > > * operator-> () const
 
sc_signal_inout_if< sc_dt::sc_int< W > > * operator[] (int n)
 
const sc_signal_inout_if< sc_dt::sc_int< W > > * operator[] (int n) const
 
sc_interfaceget_interface ()
 
const sc_interfaceget_interface () const
 
- Public Member Functions inherited from sc_core::sc_port_base
 sc_port_base (const char *name, int n, sc_port_policy p)
 
virtual ~sc_port_base ()
 
void warn_port_constructor () const
 
int maxSize () const
 
int size () const
 
- Public Member Functions inherited from sc_core::sc_object
const char * name () const
 
const char * basename () const
 
virtual void print (std::ostream &=std::cout) const
 
virtual void dump (std::ostream &=std::cout) const
 
virtual const std::vector< sc_object * > & get_child_objects () const
 
virtual const std::vector< sc_event * > & get_child_events () const
 
sc_objectget_parent_object () const
 
bool add_attribute (sc_attr_base &)
 
sc_attr_baseget_attribute (const std::string &)
 
sc_attr_baseremove_attribute (const std::string &)
 
void remove_all_attributes ()
 
int num_attributes () const
 
sc_attr_cltnattr_cltn ()
 
const sc_attr_cltnattr_cltn () const
 
sc_simcontextsimcontext () const
 
- Public Member Functions inherited from sc_dt::sc_value_base
virtual ~sc_value_base ()
 

Protected Member Functions

virtual int vbind (sc_interface &interface_)
 
virtual int vbind (sc_port_base &parent_)
 
void remove_traces () const
 
- Protected Member Functions inherited from sc_core::sc_port_b< sc_signal_inout_if< sc_dt::sc_int< W > > >
void before_end_of_elaboration () override
 
void end_of_elaboration () override
 
void start_of_simulation () override
 
void end_of_simulation () override
 
 sc_port_b (int n, sc_port_policy p)
 
 sc_port_b (const char *name, int n, sc_port_policy p)
 
virtual ~sc_port_b ()
 
int vbind (sc_interface &i) override
 
int vbind (sc_port_base &pb) override
 
- Protected Member Functions inherited from sc_core::sc_port_base
void bind (sc_interface &)
 
void bind (sc_port_base &)
 
void report_error (const char *id, const char *add_msg) const
 
- Protected Member Functions inherited from sc_core::sc_object
 sc_object ()
 
 sc_object (const char *)
 
 sc_object (const sc_object &)
 
sc_objectoperator= (const sc_object &)
 
virtual ~sc_object ()
 

Protected Attributes

sc_dt::int64m_init_val_p
 
sc_trace_params_vecm_traces
 

Private Member Functions

 sc_inout (const sc_inout< sc_dt::sc_int< W > > &)
 

Detailed Description

Definition at line 1017 of file scx_signal_int.h.

Member Typedef Documentation

◆ base_type

Definition at line 1027 of file scx_signal_int.h.

◆ data_type

Definition at line 1025 of file scx_signal_int.h.

◆ if_type

Definition at line 1026 of file scx_signal_int.h.

◆ inout_if_type

Definition at line 1030 of file scx_signal_int.h.

◆ inout_port_type

Definition at line 1031 of file scx_signal_int.h.

◆ this_type

Definition at line 1028 of file scx_signal_int.h.

Constructor & Destructor Documentation

◆ sc_inout() [1/9]

Definition at line 1067 of file scx_signal_int.h.

◆ sc_inout() [2/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( const char *  name_)
inlineexplicit

Definition at line 1071 of file scx_signal_int.h.

◆ sc_inout() [3/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( inout_if_type interface_)
inlineexplicit

Definition at line 1075 of file scx_signal_int.h.

◆ sc_inout() [4/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( const char *  name_,
inout_if_type interface_ 
)
inline

Definition at line 1079 of file scx_signal_int.h.

◆ sc_inout() [5/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( inout_port_type parent_)
inlineexplicit

Definition at line 1083 of file scx_signal_int.h.

◆ sc_inout() [6/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( const char *  name_,
inout_port_type parent_ 
)
inline

Definition at line 1087 of file scx_signal_int.h.

◆ sc_inout() [7/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( this_type parent_)
inline

Definition at line 1091 of file scx_signal_int.h.

◆ sc_inout() [8/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( const char *  name_,
this_type parent_ 
)
inline

Definition at line 1095 of file scx_signal_int.h.

◆ ~sc_inout()

virtual sc_core::sc_inout< sc_dt::sc_int< W > >::~sc_inout ( )
inlinevirtual

Definition at line 1102 of file scx_signal_int.h.

◆ sc_inout() [9/9]

sc_core::sc_inout< sc_dt::sc_int< W > >::sc_inout ( const sc_inout< sc_dt::sc_int< W > > &  )
private

Member Function Documentation

◆ add_trace()

void sc_core::sc_inout< sc_dt::sc_int< W > >::add_trace ( sc_trace_file tf_,
const std::string &  name_ 
) const
inline

Definition at line 1221 of file scx_signal_int.h.

◆ and_reduce()

bool sc_core::sc_inout< sc_dt::sc_int< W > >::and_reduce ( ) const
inline

Definition at line 1167 of file scx_signal_int.h.

◆ bind() [1/2]

void sc_core::sc_inout< sc_dt::sc_int< W > >::bind ( const inout_if_type interface_)
inline

Definition at line 1037 of file scx_signal_int.h.

References sc_core::sc_port_base::bind().

◆ bind() [2/2]

void sc_core::sc_inout< sc_dt::sc_int< W > >::bind ( inout_port_type parent_)
inline

Definition at line 1041 of file scx_signal_int.h.

References sc_core::sc_port_base::bind().

◆ bit() [1/2]

sc_int_sigref& sc_core::sc_inout< sc_dt::sc_int< W > >::bit ( int  i)
inline

Definition at line 1115 of file scx_signal_int.h.

References gem5::ArmISA::i.

◆ bit() [2/2]

sc_dt::sc_int_bitref_r sc_core::sc_inout< sc_dt::sc_int< W > >::bit ( int  i) const
inline

Definition at line 1111 of file scx_signal_int.h.

References gem5::ArmISA::i.

◆ concat_get_ctrl()

virtual bool sc_core::sc_inout< sc_dt::sc_int< W > >::concat_get_ctrl ( sc_dt::sc_digit dst_p,
int  low_i 
) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1239 of file scx_signal_int.h.

◆ concat_get_data()

virtual bool sc_core::sc_inout< sc_dt::sc_int< W > >::concat_get_data ( sc_dt::sc_digit dst_p,
int  low_i 
) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1242 of file scx_signal_int.h.

◆ concat_get_uint64()

virtual sc_dt::uint64 sc_core::sc_inout< sc_dt::sc_int< W > >::concat_get_uint64 ( ) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1236 of file scx_signal_int.h.

◆ concat_length()

virtual int sc_core::sc_inout< sc_dt::sc_int< W > >::concat_length ( bool *  xz_present_p) const
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1234 of file scx_signal_int.h.

◆ concat_set() [1/4]

virtual void sc_core::sc_inout< sc_dt::sc_int< W > >::concat_set ( const sc_dt::sc_signed src,
int  low_i 
)
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1250 of file scx_signal_int.h.

◆ concat_set() [2/4]

virtual void sc_core::sc_inout< sc_dt::sc_int< W > >::concat_set ( const sc_dt::sc_unsigned src,
int  low_i 
)
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1252 of file scx_signal_int.h.

◆ concat_set() [3/4]

virtual void sc_core::sc_inout< sc_dt::sc_int< W > >::concat_set ( sc_dt::int64  src,
int  low_i 
)
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1244 of file scx_signal_int.h.

◆ concat_set() [4/4]

virtual void sc_core::sc_inout< sc_dt::sc_int< W > >::concat_set ( sc_dt::uint64  src,
int  low_i 
)
inlinevirtual

Reimplemented from sc_dt::sc_value_base.

Definition at line 1254 of file scx_signal_int.h.

◆ default_event()

const sc_event& sc_core::sc_inout< sc_dt::sc_int< W > >::default_event ( ) const
inline

Definition at line 1131 of file scx_signal_int.h.

◆ end_of_elaboration()

virtual void sc_core::sc_inout< sc_dt::sc_int< W > >::end_of_elaboration ( )
inlinevirtual

◆ event()

bool sc_core::sc_inout< sc_dt::sc_int< W > >::event ( ) const
inline

Definition at line 1151 of file scx_signal_int.h.

◆ initialize()

void sc_core::sc_inout< sc_dt::sc_int< W > >::initialize ( const sc_dt::sc_int< W > &  value_)
inline

◆ kind()

virtual const char* sc_core::sc_inout< sc_dt::sc_int< W > >::kind ( ) const
inlinevirtual

Reimplemented from sc_core::sc_port_base.

Definition at line 1201 of file scx_signal_int.h.

◆ nand_reduce()

bool sc_core::sc_inout< sc_dt::sc_int< W > >::nand_reduce ( ) const
inline

Definition at line 1169 of file scx_signal_int.h.

◆ nor_reduce()

bool sc_core::sc_inout< sc_dt::sc_int< W > >::nor_reduce ( ) const
inline

Definition at line 1171 of file scx_signal_int.h.

◆ operator sc_dt::int64()

sc_core::sc_inout< sc_dt::sc_int< W > >::operator sc_dt::int64 ( ) const
inline

Definition at line 1146 of file scx_signal_int.h.

◆ operator()() [1/4]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator() ( const inout_if_type interface_)
inline

Definition at line 1039 of file scx_signal_int.h.

References sc_core::sc_port_base::bind().

◆ operator()() [2/4]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator() ( inout_port_type parent_)
inline

Definition at line 1043 of file scx_signal_int.h.

References sc_core::sc_port_base::bind().

◆ operator()() [3/4]

sc_int_sigref& sc_core::sc_inout< sc_dt::sc_int< W > >::operator() ( int  left,
int  right 
)
inline

Definition at line 1121 of file scx_signal_int.h.

◆ operator()() [4/4]

sc_dt::sc_int_subref_r sc_core::sc_inout< sc_dt::sc_int< W > >::operator() ( int  left,
int  right 
) const
inline

Definition at line 1117 of file scx_signal_int.h.

◆ operator=() [1/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( const char *  new_val)
inline

Definition at line 1262 of file scx_signal_int.h.

◆ operator=() [2/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( const sc_dt::sc_bv_base new_val)
inline

Definition at line 1287 of file scx_signal_int.h.

◆ operator=() [3/15]

template<typename T >
void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( const sc_dt::sc_generic_base< T > &  new_val)
inline

Definition at line 1281 of file scx_signal_int.h.

◆ operator=() [4/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( const sc_dt::sc_lv_base new_val)
inline

Definition at line 1289 of file scx_signal_int.h.

◆ operator=() [5/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( const sc_dt::sc_signed new_val)
inline

Definition at line 1283 of file scx_signal_int.h.

References sc_dt::sc_signed::to_uint64().

◆ operator=() [6/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( const sc_dt::sc_unsigned new_val)
inline

Definition at line 1285 of file scx_signal_int.h.

References sc_dt::sc_unsigned::to_uint64().

◆ operator=() [7/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( const this_type new_val)
inline

Definition at line 1260 of file scx_signal_int.h.

◆ operator=() [8/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( int  new_val)
inline

Definition at line 1268 of file scx_signal_int.h.

◆ operator=() [9/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( long  new_val)
inline

Definition at line 1270 of file scx_signal_int.h.

◆ operator=() [10/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( sc_dt::int64  new_val)
inline

Definition at line 1266 of file scx_signal_int.h.

◆ operator=() [11/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( sc_dt::uint64  new_val)
inline

Definition at line 1264 of file scx_signal_int.h.

◆ operator=() [12/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( short  new_val)
inline

Definition at line 1272 of file scx_signal_int.h.

◆ operator=() [13/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( unsigned int  new_val)
inline

Definition at line 1274 of file scx_signal_int.h.

◆ operator=() [14/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( unsigned long  new_val)
inline

Definition at line 1276 of file scx_signal_int.h.

◆ operator=() [15/15]

void sc_core::sc_inout< sc_dt::sc_int< W > >::operator= ( unsigned short  new_val)
inline

Definition at line 1278 of file scx_signal_int.h.

◆ operator[]() [1/2]

sc_int_sigref& sc_core::sc_inout< sc_dt::sc_int< W > >::operator[] ( int  i)
inline

Definition at line 1113 of file scx_signal_int.h.

References gem5::ArmISA::i.

◆ operator[]() [2/2]

sc_dt::sc_int_bitref_r sc_core::sc_inout< sc_dt::sc_int< W > >::operator[] ( int  i) const
inline

Definition at line 1109 of file scx_signal_int.h.

References gem5::ArmISA::i.

◆ or_reduce()

bool sc_core::sc_inout< sc_dt::sc_int< W > >::or_reduce ( ) const
inline

Definition at line 1173 of file scx_signal_int.h.

◆ range() [1/2]

sc_int_sigref& sc_core::sc_inout< sc_dt::sc_int< W > >::range ( int  left,
int  right 
)
inline

Definition at line 1123 of file scx_signal_int.h.

◆ range() [2/2]

sc_dt::sc_int_subref_r sc_core::sc_inout< sc_dt::sc_int< W > >::range ( int  left,
int  right 
) const
inline

Definition at line 1119 of file scx_signal_int.h.

◆ read()

const sc_dt::sc_int<W>& sc_core::sc_inout< sc_dt::sc_int< W > >::read ( ) const
inline

Definition at line 1143 of file scx_signal_int.h.

◆ remove_traces()

void sc_core::sc_inout< sc_dt::sc_int< W > >::remove_traces ( ) const
inlineprotected

Definition at line 1302 of file scx_signal_int.h.

References gem5::ArmISA::i.

◆ value_changed()

sc_event_finder& sc_core::sc_inout< sc_dt::sc_int< W > >::value_changed ( ) const
inline

Definition at line 1157 of file scx_signal_int.h.

◆ value_changed_event()

const sc_event& sc_core::sc_inout< sc_dt::sc_int< W > >::value_changed_event ( ) const
inline

Definition at line 1137 of file scx_signal_int.h.

◆ vbind() [1/2]

virtual int sc_core::sc_inout< sc_dt::sc_int< W > >::vbind ( sc_interface interface_)
inlineprotectedvirtual

Implements sc_core::sc_port_base.

Definition at line 1048 of file scx_signal_int.h.

References sc_core::sc_port_b< IF >::vbind().

◆ vbind() [2/2]

virtual int sc_core::sc_inout< sc_dt::sc_int< W > >::vbind ( sc_port_base parent_)
inlineprotectedvirtual

Implements sc_core::sc_port_base.

Definition at line 1052 of file scx_signal_int.h.

References sc_core::sc_port_base::bind().

◆ write() [1/3]

void sc_core::sc_inout< sc_dt::sc_int< W > >::write ( const sc_dt::sc_int< W > &  new_val)
inline

Definition at line 1298 of file scx_signal_int.h.

◆ write() [2/3]

void sc_core::sc_inout< sc_dt::sc_int< W > >::write ( const sc_in< sc_dt::sc_int< W > > &  new_val)
inline

Definition at line 1292 of file scx_signal_int.h.

◆ write() [3/3]

void sc_core::sc_inout< sc_dt::sc_int< W > >::write ( const sc_inout< sc_dt::sc_int< W > > &  new_val)
inline

Definition at line 1295 of file scx_signal_int.h.

◆ xnor_reduce()

bool sc_core::sc_inout< sc_dt::sc_int< W > >::xnor_reduce ( ) const
inline

Definition at line 1175 of file scx_signal_int.h.

◆ xor_reduce()

bool sc_core::sc_inout< sc_dt::sc_int< W > >::xor_reduce ( ) const
inline

Definition at line 1177 of file scx_signal_int.h.

Member Data Documentation

◆ m_init_val_p

sc_dt::int64* sc_core::sc_inout< sc_dt::sc_int< W > >::m_init_val_p
protected

Definition at line 1313 of file scx_signal_int.h.

◆ m_traces

sc_trace_params_vec* sc_core::sc_inout< sc_dt::sc_int< W > >::m_traces
mutableprotected

Definition at line 1314 of file scx_signal_int.h.


The documentation for this class was generated from the following file:

Generated on Wed May 4 2022 12:16:38 for gem5 by doxygen 1.8.17