TimingSimpleCPU.py revision 5236:0050ad4fb3ef
17760SGiacomo.Gabrielli@arm.com# Copyright (c) 2007 The Regents of The University of Michigan
27760SGiacomo.Gabrielli@arm.com# All rights reserved.
37760SGiacomo.Gabrielli@arm.com#
47760SGiacomo.Gabrielli@arm.com# Redistribution and use in source and binary forms, with or without
57760SGiacomo.Gabrielli@arm.com# modification, are permitted provided that the following conditions are
67760SGiacomo.Gabrielli@arm.com# met: redistributions of source code must retain the above copyright
77760SGiacomo.Gabrielli@arm.com# notice, this list of conditions and the following disclaimer;
87760SGiacomo.Gabrielli@arm.com# redistributions in binary form must reproduce the above copyright
97760SGiacomo.Gabrielli@arm.com# notice, this list of conditions and the following disclaimer in the
107760SGiacomo.Gabrielli@arm.com# documentation and/or other materials provided with the distribution;
117760SGiacomo.Gabrielli@arm.com# neither the name of the copyright holders nor the names of its
127760SGiacomo.Gabrielli@arm.com# contributors may be used to endorse or promote products derived from
134486Sbinkertn@umich.edu# this software without specific prior written permission.
144486Sbinkertn@umich.edu#
154486Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
164486Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
174486Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
184486Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
194486Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
204486Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
214486Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
224486Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
234486Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
244486Sbinkertn@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
254486Sbinkertn@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
264486Sbinkertn@umich.edu#
274486Sbinkertn@umich.edu# Authors: Nathan Binkert
284486Sbinkertn@umich.edu
294486Sbinkertn@umich.edufrom m5.params import *
304486Sbinkertn@umich.edufrom m5 import build_env
314486Sbinkertn@umich.edufrom BaseCPU import BaseCPU
324486Sbinkertn@umich.edu
334486Sbinkertn@umich.educlass TimingSimpleCPU(BaseCPU):
344486Sbinkertn@umich.edu    type = 'TimingSimpleCPU'
354486Sbinkertn@umich.edu    function_trace = Param.Bool(False, "Enable function trace")
364486Sbinkertn@umich.edu    function_trace_start = Param.Tick(0, "Cycle to start function trace")
374486Sbinkertn@umich.edu    if build_env['FULL_SYSTEM']:
384486Sbinkertn@umich.edu        profile = Param.Latency('0ns', "trace the kernel stack")
394486Sbinkertn@umich.edu    icache_port = Port("Instruction Port")
404486Sbinkertn@umich.edu    dcache_port = Port("Data Port")
413102SN/A    _mem_ports = BaseCPU._mem_ports + ['icache_port', 'dcache_port']
423102SN/A