1# Copyright 2018 Google, Inc. 2# 3# Redistribution and use in source and binary forms, with or without 4# modification, are permitted provided that the following conditions are 5# met: redistributions of source code must retain the above copyright 6# notice, this list of conditions and the following disclaimer; 7# redistributions in binary form must reproduce the above copyright 8# notice, this list of conditions and the following disclaimer in the --- 59 unchanged lines hidden (view full) --- 68 69 # Hide the cxx_exports from SimObject since we don't inherit from 70 # SimObject on the c++ side and so don't have those methods to call down 71 # into. 72 locals().update({ 73 method.name: (lambda *a, **k: None) for method in SimObject.cxx_exports 74 }) 75 |
76class SystemC_ScModule(SystemC_ScObject): 77 type = 'SystemC_ScModule' 78 abstract = True 79 cxx_class = 'sc_core::sc_module' 80 cxx_header = 'systemc/ext/core/sc_module.hh' 81 |
82try: 83 import _m5 84except: 85 pass 86else: 87 import _m5.systemc 88 _m5.systemc.python_ready() |