diff options
author | Gabe Black <gabeblack@google.com> | 2018-06-13 18:52:02 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-08-15 01:37:10 +0000 |
commit | a18e901b1640ac53e79e27a4eb2979ade60401b4 (patch) | |
tree | 07eccae84f098c2cff05e00d0c44e837ac15fe3d /src/systemc/ext | |
parent | a7c7b939713b62043646c6b9b9254faa8e8b98ce (diff) | |
download | gem5-a18e901b1640ac53e79e27a4eb2979ade60401b4.tar.xz |
systemc: Add some deprecated features to sc_clock.*.
Add in two deprecated typedefs, and a deprecated constructor. These
are necessary to get the regressions to build.
Change-Id: Id8320a67c680acbca0abaee9898158ffd2678d67
Reviewed-on: https://gem5-review.googlesource.com/11183
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/ext')
-rw-r--r-- | src/systemc/ext/channel/_using.hh | 4 | ||||
-rw-r--r-- | src/systemc/ext/channel/sc_clock.hh | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/systemc/ext/channel/_using.hh b/src/systemc/ext/channel/_using.hh index 089991faa..307e89f21 100644 --- a/src/systemc/ext/channel/_using.hh +++ b/src/systemc/ext/channel/_using.hh @@ -34,8 +34,10 @@ using sc_core::sc_buffer; -using sc_core::sc_in_clk; using sc_core::sc_clock; +using sc_core::sc_in_clk; +using sc_core::sc_inout_clk; +using sc_core::sc_out_clk; using sc_core::sc_event_queue; diff --git a/src/systemc/ext/channel/sc_clock.hh b/src/systemc/ext/channel/sc_clock.hh index 9ca160c3a..ae1f6c973 100644 --- a/src/systemc/ext/channel/sc_clock.hh +++ b/src/systemc/ext/channel/sc_clock.hh @@ -58,6 +58,10 @@ class sc_clock : public sc_signal<bool> double duty_cycle, double start_time_v, sc_time_unit start_time_tu, bool posedge_first=true); + // Deprecated. + sc_clock(const char *name, double period, double duty_cycle=0.5, + double start_time=0.0, bool posedge_first=true); + virtual ~sc_clock(); virtual void write(const bool &); @@ -80,6 +84,10 @@ class sc_clock : public sc_signal<bool> typedef sc_in<bool> sc_in_clk; +// Deprecated +typedef sc_inout<bool> sc_inout_clk; +typedef sc_out<bool> sc_out_clk; + } // namespace sc_core #endif //__SYSTEMC_EXT_CHANNEL_SC_CLOCK_HH__ |