systemc: Add a python config class for sc_modules.
authorGabe Black <gabeblack@google.com>
Wed, 10 Oct 2018 04:07:57 +0000 (21:07 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 01:16:44 +0000 (01:16 +0000)
This class doesn't really add anything, but it provides a consistent
base class for sc_modules vs. generic sc_objects.

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

src/systemc/core/SystemC.py

index 49b569b0c77ac7f86a84077d317c6b92c1b79341..7ab33ea71e2853269db0c3abc48d1994f2a29cdb 100644 (file)
@@ -73,6 +73,12 @@ class SystemC_ScObject(SimObject):
         method.name: (lambda *a, **k: None) for method in SimObject.cxx_exports
     })
 
+class SystemC_ScModule(SystemC_ScObject):
+    type = 'SystemC_ScModule'
+    abstract = True
+    cxx_class = 'sc_core::sc_module'
+    cxx_header = 'systemc/ext/core/sc_module.hh'
+
 try:
     import _m5
 except: