SConscript revision 6108
13931Ssaidi@eecs.umich.edu# -*- mode:python -*-
22632Sstever@eecs.umich.edu
32632Sstever@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
42632Sstever@eecs.umich.edu# All rights reserved.
52632Sstever@eecs.umich.edu#
62632Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
72632Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are
82632Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright
92632Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
102632Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
112632Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
122632Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution;
132632Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its
142632Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from
152632Sstever@eecs.umich.edu# this software without specific prior written permission.
162632Sstever@eecs.umich.edu#
172632Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182632Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192632Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202632Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212632Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222632Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232632Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242632Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252632Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262632Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272632Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282632Sstever@eecs.umich.edu#
292632Sstever@eecs.umich.edu# Authors: Nathan Binkert
302632Sstever@eecs.umich.edu
312030SN/Aimport sys
322030SN/A
332030SN/AImport('*')
342030SN/A
352030SN/Aif 'O3CPU' in env['CPU_MODELS'] or 'OzoneCPU' in env['CPU_MODELS']:
362030SN/A    Source('2bit_local_pred.cc')
372224SN/A    Source('btb.cc')
382482SN/A    Source('ras.cc')
392224SN/A    Source('tournament_pred.cc')
402482SN/A
412482SN/A    TraceFlag('CommitRate')
422482SN/A    TraceFlag('IEW')
432482SN/A    TraceFlag('IQ')
442482SN/A
452482SN/Aif 'O3CPU' in env['CPU_MODELS']:
462482SN/A    SimObject('FUPool.py')
472482SN/A    SimObject('FuncUnitConfig.py')
482458SN/A    SimObject('O3CPU.py')
492224SN/A
502482SN/A    Source('base_dyn_inst.cc')
512224SN/A    Source('bpred_unit.cc')
522224SN/A    Source('commit.cc')
532224SN/A    Source('cpu.cc')
542224SN/A    Source('cpu_builder.cc')
552224SN/A    Source('decode.cc')
562224SN/A    Source('dyn_inst.cc')
572224SN/A    Source('fetch.cc')
582224SN/A    Source('free_list.cc')
592224SN/A    Source('fu_pool.cc')
602224SN/A    Source('iew.cc')
612224SN/A    Source('inst_queue.cc')
622224SN/A    Source('lsq.cc')
632224SN/A    Source('lsq_unit.cc')
642224SN/A    Source('mem_dep_unit.cc')
652224SN/A    Source('rename.cc')
662224SN/A    Source('rename_map.cc')
672224SN/A    Source('rob.cc')
682458SN/A    Source('scoreboard.cc')
692224SN/A    Source('store_set.cc')
704004Sgblack@eecs.umich.edu    Source('thread_context.cc')
714004Sgblack@eecs.umich.edu
724004Sgblack@eecs.umich.edu    TraceFlag('FreeList')
734004Sgblack@eecs.umich.edu    TraceFlag('LSQ')
744004Sgblack@eecs.umich.edu    TraceFlag('LSQUnit')
754004Sgblack@eecs.umich.edu    TraceFlag('MemDepUnit')
764004Sgblack@eecs.umich.edu    TraceFlag('O3CPU')
774004Sgblack@eecs.umich.edu    TraceFlag('ROB')
784004Sgblack@eecs.umich.edu    TraceFlag('Rename')
794004Sgblack@eecs.umich.edu    TraceFlag('Scoreboard')
804004Sgblack@eecs.umich.edu    TraceFlag('StoreSet')
814004Sgblack@eecs.umich.edu    TraceFlag('Writeback')
824004Sgblack@eecs.umich.edu
834004Sgblack@eecs.umich.edu    CompoundFlag('O3CPUAll', [ 'Fetch', 'Decode', 'Rename', 'IEW', 'Commit',
844004Sgblack@eecs.umich.edu        'IQ', 'ROB', 'FreeList', 'LSQ', 'LSQUnit', 'StoreSet', 'MemDepUnit',
854004Sgblack@eecs.umich.edu        'DynInst', 'O3CPU', 'Activity', 'Scoreboard', 'Writeback' ])
864004Sgblack@eecs.umich.edu
874004Sgblack@eecs.umich.edu    if env['USE_CHECKER']:
884004Sgblack@eecs.umich.edu        SimObject('O3Checker.py')
894004Sgblack@eecs.umich.edu        Source('checker_builder.cc')
905202Sstever@gmail.com