File gpi_priv.h¶
Defines
-
GPI_ENTRY_POINT
(NAME, func)extern “C” { \
const void NAME##_entry_point() \
{ \
func(); \
} \
}
¶
Enums
Functions
-
template<class
To
>
Tosim_to_hdl
(gpi_sim_hdl input)¶
-
int
gpi_register_impl
(GpiImplInterface *func_tbl)
-
void
gpi_embed_init
(gpi_sim_info_t *info)
-
void
gpi_cleanup
()
-
void
gpi_embed_end
()
-
void
gpi_embed_event
(gpi_event_t level, const char *msg)
-
void
gpi_load_extra_libs
()
-
class
GpiHdl
Subclassed by GpiCbHdl, GpiIterator, GpiObjHdl
Public Functions
-
GpiHdl
(GpiImplInterface *impl)¶
-
GpiHdl
(GpiImplInterface *impl, void *hdl)¶
-
virtual
~GpiHdl
()¶
-
char *
gpi_copy_name
(const char *name)¶
-
bool
is_this_impl
(GpiImplInterface *impl)¶
Public Members
-
GpiImplInterface *
m_impl
¶
Protected Attributes
-
void *
m_obj_hdl
¶
Private Functions
-
GpiHdl
()¶
-
-
class
GpiObjHdl
: public GpiHdl Subclassed by FliObjHdl, GpiSignalObjHdl, VhpiArrayObjHdl, VhpiObjHdl, VpiArrayObjHdl, VpiObjHdl
Public Functions
-
GpiObjHdl
(GpiImplInterface *impl)¶
-
GpiObjHdl
(GpiImplInterface *impl, void *hdl, gpi_objtype_t objtype)¶
-
GpiObjHdl
(GpiImplInterface *impl, void *hdl, gpi_objtype_t objtype, bool is_const)¶
-
virtual
~GpiObjHdl
()¶
-
const char *
get_name_str
()¶
-
const char *
get_fullname_str
()¶
-
const char *
get_type_str
()¶
-
gpi_objtype_t
get_type
()¶
-
bool
get_const
()¶
-
int
get_num_elems
()¶
-
int
get_range_left
()¶
-
int
get_range_right
()¶
-
int
get_indexable
()¶
-
virtual const char *
get_definition_name
()¶
-
virtual const char *
get_definition_file
()¶
-
bool
is_native_impl
(GpiImplInterface *impl)¶
-
-
class
GpiSignalObjHdl
: public GpiObjHdl Subclassed by FliSignalObjHdl, VhpiSignalObjHdl, VpiSignalObjHdl
Public Functions
-
GpiSignalObjHdl
(GpiImplInterface *impl, void *hdl, gpi_objtype_t objtype, bool is_const)¶
-
virtual
~GpiSignalObjHdl
()¶
-
virtual const char *
get_signal_value_binstr
() = 0¶
-
virtual const char *
get_signal_value_str
() = 0¶
-
virtual double
get_signal_value_real
() = 0¶
-
virtual long
get_signal_value_long
() = 0¶
-
virtual int
set_signal_value
(const long value) = 0¶
-
virtual int
set_signal_value
(const double value) = 0¶
Public Members
-
int
m_length
¶
-
-
class
GpiCbHdl
: public GpiHdl Subclassed by FliProcessCbHdl, GpiValueCbHdl, VhpiCbHdl, VpiCbHdl
Public Functions
-
GpiCbHdl
(GpiImplInterface *impl)¶
-
int
arm_callback
() = 0¶
-
int
run_callback
()¶
-
int
cleanup_callback
() = 0¶
-
int
set_user_data
(int (*gpi_function)(const void *), const void *data, )¶
-
const void *
get_user_data
()¶
-
void
set_call_state
(gpi_cb_state_e new_state)¶
-
gpi_cb_state_e
get_call_state
()¶
-
~GpiCbHdl
()¶
Protected Attributes
-
int (*
gpi_function
)(const void *)¶
-
const void *
m_cb_data
¶
-
gpi_cb_state_e
m_state
¶
-
-
class
GpiValueCbHdl
: public virtual GpiCbHdl Subclassed by FliSignalCbHdl, VhpiValueCbHdl, VpiValueCbHdl
Public Functions
-
GpiValueCbHdl
(GpiImplInterface *impl, GpiSignalObjHdl *signal, int edge)¶
-
virtual
~GpiValueCbHdl
()¶
-
int
run_callback
()¶
-
virtual int
cleanup_callback
() = 0¶
-
-
class
GpiClockHdl
-
class
GpiIterator
: public GpiHdl Subclassed by FliIterator, VhpiIterator, VpiIterator, VpiSingleIterator
-
template<class
Ti
, classTm
>
classGpiIteratorMapping
Public Functions
-
GpiIteratorMapping
(void (*populate)(GpiIteratorMapping<Ti, Tm>&))¶
-
void
add_to_options
(Ti type, Tm *options)¶
-
-
class
GpiImplInterface
Subclassed by FliImpl, VhpiImpl, VpiImpl
Public Functions
-
const char *
get_name_c
()¶
-
const string &
get_name_s
()¶
-
virtual
~GpiImplInterface
()¶
-
virtual void
sim_end
() = 0¶
-
virtual void
get_sim_time
(uint32_t *high, uint32_t *low) = 0¶
-
virtual void
get_sim_precision
(int32_t *precision) = 0¶
-
virtual GpiIterator *
iterate_handle
(GpiObjHdl *obj_hdl, gpi_iterator_sel_t type) = 0¶
-
virtual const char *
reason_to_string
(int reason) = 0¶
-
const char *