SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
sim_context_proxy.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2014 Intel Corporation
5
6 This software and the related documents are Intel copyrighted materials, and
7 your use of them is governed by the express license under which they were
8 provided to you ("License"). Unless the License provides otherwise, you may
9 not use, modify, copy, publish, distribute, disclose or transmit this software
10 or the related documents without Intel's prior written permission.
11
12 This software and the related documents are provided as is, with no express or
13 implied warranties, other than those that are expressly stated in the License.
14*/
15
16#ifndef SIMICS_SYSTEMC_SIM_CONTEXT_PROXY_H
17#define SIMICS_SYSTEMC_SIM_CONTEXT_PROXY_H
18
19
20
22#include <tlm>
23#include <algorithm> // std::sort
24#include <string>
25#include <vector>
26
27// Helper class to access private methods and general useful event data of
28// sc_simcontext. This relies on a patched SystemC kernel with the
29// simContextProxy marked as a "friend" to get access to some of the internals.
30namespace sc_core {
31
34 public:
38 return (i.when() < j.when());
39 }
40
41 static EventVector get_timed_event_list(sc_core::sc_object* filter);
42
44 static const char *get_typename(sc_export_base *object);
45 static const char *get_typename(sc_port_base *object);
46 static sc_bind_info *get_bind_info(sc_port_base *object);
47 static void trigger_static(sc_process_b *object);
48 static void set_simulation_status(sc_status status);
50 static bool get_paused();
51 static bool get_pause_pending();
52 static void set_pause_pending(bool pause);
53
54 private:
55 static void add_events(sc_event_timed *timed_event,
56 sc_object* filter,
57 EventVector *evs);
58
59 static void add_process_events(const sc_time &t,
60 const char *kind,
61 sc_object* filter,
62 sc_object* object,
63 EventVector *evs);
64};
65
66} // namespace sc_core
67
68#endif
Definition: sim_context_proxy.h:33
static bool get_paused()
static sc_bind_info * get_bind_info(sc_port_base *object)
static void set_pause_pending(bool pause)
simics::systemc::EventVector EventVector
Definition: sim_context_proxy.h:35
static sc_time sc_time_to_pending_activity_ignore_async()
static bool is_time_less(simics::systemc::Event i, simics::systemc::Event j)
Definition: sim_context_proxy.h:36
static bool get_pause_pending()
static void set_simulation_status(sc_status status)
static EventVector get_timed_event_list(sc_core::sc_object *filter)
static const char * get_typename(sc_export_base *object)
static const char * get_typename(sc_port_base *object)
static int get_timed_event_list_size()
static void trigger_static(sc_process_b *object)
Definition: event.h:29
sc_core::sc_time when() const
Definition: argument_registry.h:26
std::vector< Event > EventVector
Definition: event.h:61