systemc: Define the nonstandard sc_event_queue_port typedef.
authorGabe Black <gabeblack@google.com>
Sat, 16 Jun 2018 00:01:57 +0000 (17:01 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 22 Aug 2018 01:03:23 +0000 (01:03 +0000)
Used in the tests.

Change-Id: Ic4b4a313b2bd02e5cb3ec07c4f7ee79219728881
Reviewed-on: https://gem5-review.googlesource.com/11262
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>

src/systemc/ext/channel/_using.hh
src/systemc/ext/channel/sc_event_queue.hh

index 307e89f21c48f1c2f702e15ceb6e458f62ef7c18..e582ea2828a4d3e02d017533c0d697973b8c4d81 100644 (file)
@@ -39,7 +39,9 @@ using sc_core::sc_in_clk;
 using sc_core::sc_inout_clk;
 using sc_core::sc_out_clk;
 
+using sc_core::sc_event_queue_if;
 using sc_core::sc_event_queue;
+using sc_core::sc_event_queue_port;
 
 using sc_core::sc_fifo;
 
index aa2f72e77194815f47df2bcbc5d6a4f7751fdb11..1cd3c01ababec36dc483d19062eaa53bd661ee24 100644 (file)
@@ -33,6 +33,7 @@
 #include "../core/sc_interface.hh"
 #include "../core/sc_module.hh" // for sc_gen_unique_name
 #include "../core/sc_module_name.hh"
+#include "../core/sc_port.hh"
 #include "../core/sc_time.hh"
 #include "warn_unimpl.hh"
 
@@ -65,6 +66,10 @@ class sc_event_queue : public sc_event_queue_if, public sc_module
     virtual const sc_event &default_event() const;
 };
 
+// Nonstandard
+typedef sc_port<sc_event_queue_if, 1, SC_ONE_OR_MORE_BOUND>
+        sc_event_queue_port;
+
 } // namespace sc_core
 
 #endif  //__SYSTEMC_EXT_CHANNEL_SC_EVENT_QUEUE_HH__