Deleted Added
sdiff udiff text old ( 12931:2dd5b061490b ) new ( 13065:eec7d19ac479 )
full compact
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 14 unchanged lines hidden (view full) ---

23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/ext/channel/sc_clock.hh"
32#include "systemc/ext/core/sc_module.hh" // for sc_gen_unique_name
33
34namespace sc_core
35{
36
37sc_clock::sc_clock() :
38 sc_interface(), sc_signal<bool>(sc_gen_unique_name("clock"))
39{
40 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
41}
42
43sc_clock::sc_clock(const char *name) : sc_interface(), sc_signal<bool>(name)
44{
45 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
46}
47
48sc_clock::sc_clock(const char *name, const sc_time &period,
49 double duty_cycle, const sc_time &start_time,
50 bool posedge_first)
51{
52 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
53}
54
55sc_clock::sc_clock(const char *name, double period_v, sc_time_unit period_tu,
56 double duty_cycle)
57{
58 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
59}
60
61sc_clock::sc_clock(const char *name, double period_v, sc_time_unit period_tu,
62 double duty_cycle, double start_time_v,
63 sc_time_unit start_time_tu, bool posedge_first)
64{
65 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
66}
67
68sc_clock::sc_clock(const char *name, double period, double duty_cycle,
69 double start_time, bool posedge_first)
70{
71 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
72}
73
74sc_clock::~sc_clock() {}
75
76void
77sc_clock::write(const bool &)
78{
79 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
80}
81
82const sc_time &
83sc_clock::period() const
84{
85 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
86 return *(const sc_time *)nullptr;
87}
88
89double
90sc_clock::duty_cycle() const
91{
92 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
93 return 0.0;
94}
95
96const sc_time &
97sc_clock::start_time() const
98{
99 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
100 return *(const sc_time *)nullptr;
101}
102
103bool
104sc_clock::posedge_first() const
105{
106 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
107 return false;
108}
109
110const sc_time &
111sc_clock::time_stamp()
112{
113 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
114 return *(const sc_time *)nullptr;
115}
116
117const char *sc_clock::kind() const { return "sc_clock"; }
118
119void sc_clock::before_end_of_elaboration() {}
120
121} // namespace sc_core