ClockedObject.py (9157:e0bad9d7bbd6) ClockedObject.py (9281:9b6882b58a3f)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Andreas Hansson
37
38from m5.SimObject import SimObject
39from m5.params import *
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

32# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35#
36# Authors: Andreas Hansson
37
38from m5.SimObject import SimObject
39from m5.params import *
40from m5.proxy import *
40
41class ClockedObject(SimObject):
42 type = 'ClockedObject'
43 abstract = True
44
41
42class ClockedObject(SimObject):
43 type = 'ClockedObject'
44 abstract = True
45
45 clock = Param.Clock('1t', "Clock speed")
46 # Clock period of this object, with the default value being the
47 # clock period of the parent object, unproxied at instantiation
48 # time
49 clock = Param.Clock(Parent.clock, "Clock speed")