File gpi_priv.h¶
Defines
-
GPI_ENTRY_POINT
(NAME, func)extern “C” { \
void NAME##_entry_point() \
{ \
func(); \
} \
}
¶
Enums
Functions
-
int
gpi_register_impl
(GpiImplInterface *func_tbl)
-
void
gpi_embed_init
(int argc, char const *const *argv)
-
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, void *hdl = NULL)¶
-
~GpiHdl
() = default¶
-
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, void *hdl = nullptr, gpi_objtype_t objtype = GPI_UNKNOWN, bool is_const = false)¶
-
~GpiObjHdl
() = default¶
-
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
()¶
-
const char *
get_definition_name
()¶
-
const char *
get_definition_file
()¶
-
bool
is_native_impl
(GpiImplInterface *impl)¶
-
-
class
GpiSignalObjHdl
: public GpiObjHdl Subclassed by FliSignalObjHdl, VhpiSignalObjHdl, VpiSignalObjHdl
Public Functions
-
~GpiSignalObjHdl
() = default¶
-
const char *
get_signal_value_binstr
() = 0¶
-
const char *
get_signal_value_str
() = 0¶
-
double
get_signal_value_real
() = 0¶
-
long
get_signal_value_long
() = 0¶
-
int
set_signal_value
(const long value, gpi_set_action_t action) = 0¶
-
int
set_signal_value
(const double value, gpi_set_action_t action) = 0¶
-
int
set_signal_value_str
(std::string &value, gpi_set_action_t action) = 0¶
-
int
set_signal_value_binstr
(std::string &value, gpi_set_action_t action) = 0¶
Public Members
-
int
m_length
= 0¶
-
-
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 *) = nullptr
-
const void *
m_cb_data
= nullptr¶
-
gpi_cb_state_e
m_state
= GPI_FREE¶
-
-
class
GpiValueCbHdl
: public virtual GpiCbHdl Subclassed by FliSignalCbHdl, VhpiValueCbHdl, VpiValueCbHdl
Public Functions
-
GpiValueCbHdl
(GpiImplInterface *impl, GpiSignalObjHdl *signal, int edge)¶
-
int
run_callback
() override¶
-
-
class
GpiIterator
: public GpiHdl Subclassed by FliIterator, VhpiIterator, VpiIterator, VpiSingleIterator
Public Types
-
template<class
Ti
, classTm
>
classGpiIteratorMapping
Public Functions
-
GpiIteratorMapping
(void (*populate)(GpiIteratorMapping<Ti, Tm>&))¶
-
-
class
GpiImplInterface
Subclassed by FliImpl, VhpiImpl, VpiImpl
Public Functions
-
const char *
get_name_c
()¶
-
~GpiImplInterface
() = default¶
-
void
sim_end
() = 0¶
-
void
get_sim_time
(uint32_t *high, uint32_t *low) = 0¶
-
void
get_sim_precision
(int32_t *precision) = 0¶
-
const char *
get_simulator_product
() = 0¶
-
const char *
get_simulator_version
() = 0¶
-
GpiIterator *
iterate_handle
(GpiObjHdl *obj_hdl, gpi_iterator_sel_t type) = 0¶
-
const char *
reason_to_string
(int reason) = 0¶
-
const char *