SConscript revision 10259
15131Sgblack@eecs.umich.edu# -*- mode:python -*-
25131Sgblack@eecs.umich.edu
35131Sgblack@eecs.umich.edu# Copyright (c) 2013-2014 ARM Limited
45131Sgblack@eecs.umich.edu# All rights reserved
55131Sgblack@eecs.umich.edu#
65131Sgblack@eecs.umich.edu# The license below extends only to copyright in the software and shall
75131Sgblack@eecs.umich.edu# not be construed as granting a license to any other intellectual
85131Sgblack@eecs.umich.edu# property including but not limited to intellectual property relating
95131Sgblack@eecs.umich.edu# to a hardware implementation of the functionality of the software
105131Sgblack@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
115131Sgblack@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
125131Sgblack@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
135131Sgblack@eecs.umich.edu# modified or unmodified, in source code or in binary form.
145131Sgblack@eecs.umich.edu#
155131Sgblack@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
165131Sgblack@eecs.umich.edu# All rights reserved.
175131Sgblack@eecs.umich.edu#
185131Sgblack@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
195131Sgblack@eecs.umich.edu# modification, are permitted provided that the following conditions are
205131Sgblack@eecs.umich.edu# met: redistributions of source code must retain the above copyright
215131Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
225131Sgblack@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
235131Sgblack@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
245131Sgblack@eecs.umich.edu# documentation and/or other materials provided with the distribution;
255131Sgblack@eecs.umich.edu# neither the name of the copyright holders nor the names of its
265131Sgblack@eecs.umich.edu# contributors may be used to endorse or promote products derived from
275131Sgblack@eecs.umich.edu# this software without specific prior written permission.
285131Sgblack@eecs.umich.edu#
295390Sgblack@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
305131Sgblack@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
315131Sgblack@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
325131Sgblack@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
335131Sgblack@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
345389Sgblack@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
355629Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
365131Sgblack@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
375629Sgblack@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
385629Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
395629Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
405630Sgblack@eecs.umich.edu#
415630Sgblack@eecs.umich.edu# Authors: Nathan Binkert
425630Sgblack@eecs.umich.edu#          Andrew Bardsley
435630Sgblack@eecs.umich.edu
445633Sgblack@eecs.umich.eduImport('*')
455636Sgblack@eecs.umich.edu
465636Sgblack@eecs.umich.eduif 'MinorCPU' in env['CPU_MODELS']:
475636Sgblack@eecs.umich.edu    SimObject('MinorCPU.py')
485636Sgblack@eecs.umich.edu
495636Sgblack@eecs.umich.edu    Source('activity.cc')
505636Sgblack@eecs.umich.edu    Source('cpu.cc')
515636Sgblack@eecs.umich.edu    Source('decode.cc')
525633Sgblack@eecs.umich.edu    Source('dyn_inst.cc')
535633Sgblack@eecs.umich.edu    Source('execute.cc')
54    Source('fetch1.cc')
55    Source('fetch2.cc')
56    Source('func_unit.cc')
57    Source('lsq.cc')
58    Source('pipe_data.cc')
59    Source('pipeline.cc')
60    Source('scoreboard.cc')
61    Source('stats.cc')
62
63    DebugFlag('MinorCPU', 'Minor CPU-level events')
64    DebugFlag('MinorExecute', 'Minor Execute stage')
65    DebugFlag('MinorInterrupt', 'Minor interrupt handling')
66    DebugFlag('MinorMem', 'Minor memory accesses')
67    DebugFlag('MinorScoreboard', 'Minor Execute register scoreboard')
68    DebugFlag('MinorTrace', 'MinorTrace cycle-by-cycle state trace')
69    DebugFlag('MinorTiming', 'Extra timing for instructions')
70
71    CompoundFlag('Minor', [
72        'MinorCPU', 'MinorExecute', 'MinorInterrupt', 'MinorMem',
73        'MinorScoreboard'])
74