SConscript revision 10810
16019Shines@cs.fsu.edu# -*- mode:python -*- 26019Shines@cs.fsu.edu 36019Shines@cs.fsu.edu# Copyright (c) 2006 The Regents of The University of Michigan 46019Shines@cs.fsu.edu# All rights reserved. 56019Shines@cs.fsu.edu# 66019Shines@cs.fsu.edu# Redistribution and use in source and binary forms, with or without 76019Shines@cs.fsu.edu# modification, are permitted provided that the following conditions are 86019Shines@cs.fsu.edu# met: redistributions of source code must retain the above copyright 96019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer; 106019Shines@cs.fsu.edu# redistributions in binary form must reproduce the above copyright 116019Shines@cs.fsu.edu# notice, this list of conditions and the following disclaimer in the 126019Shines@cs.fsu.edu# documentation and/or other materials provided with the distribution; 136019Shines@cs.fsu.edu# neither the name of the copyright holders nor the names of its 146019Shines@cs.fsu.edu# contributors may be used to endorse or promote products derived from 156019Shines@cs.fsu.edu# this software without specific prior written permission. 166019Shines@cs.fsu.edu# 176019Shines@cs.fsu.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 186019Shines@cs.fsu.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 196019Shines@cs.fsu.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 206019Shines@cs.fsu.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 216019Shines@cs.fsu.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 226019Shines@cs.fsu.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 236019Shines@cs.fsu.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 246019Shines@cs.fsu.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 256019Shines@cs.fsu.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 266019Shines@cs.fsu.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 276019Shines@cs.fsu.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 286019Shines@cs.fsu.edu# 296019Shines@cs.fsu.edu# Authors: Nathan Binkert 306019Shines@cs.fsu.edu 316019Shines@cs.fsu.eduImport('*') 326019Shines@cs.fsu.edu 336019Shines@cs.fsu.edu# Only build the communication if we have support for protobuf as the 346019Shines@cs.fsu.edu# tracing relies on it 356019Shines@cs.fsu.eduif env['HAVE_PROTOBUF']: 366019Shines@cs.fsu.edu SimObject('CommMonitor.py') 376019Shines@cs.fsu.edu Source('comm_monitor.cc') 386019Shines@cs.fsu.edu 396019Shines@cs.fsu.eduSimObject('AbstractMemory.py') 406019Shines@cs.fsu.eduSimObject('AddrMapper.py') 416019Shines@cs.fsu.eduSimObject('Bridge.py') 426019Shines@cs.fsu.eduSimObject('DRAMCtrl.py') 436019Shines@cs.fsu.eduSimObject('ExternalMaster.py') 446019Shines@cs.fsu.eduSimObject('ExternalSlave.py') 456019Shines@cs.fsu.eduSimObject('MemObject.py') 466019Shines@cs.fsu.eduSimObject('SimpleMemory.py') 476019Shines@cs.fsu.eduSimObject('StackDistCalc.py') 486019Shines@cs.fsu.eduSimObject('XBar.py') 496019Shines@cs.fsu.edu 506019Shines@cs.fsu.eduSource('abstract_mem.cc') 516019Shines@cs.fsu.eduSource('addr_mapper.cc') 526019Shines@cs.fsu.eduSource('bridge.cc') 536019Shines@cs.fsu.eduSource('coherent_xbar.cc') 546019Shines@cs.fsu.eduSource('drampower.cc') 556019Shines@cs.fsu.eduSource('dram_ctrl.cc') 566019Shines@cs.fsu.eduSource('external_master.cc') 576019Shines@cs.fsu.eduSource('external_slave.cc') 586019Shines@cs.fsu.eduSource('mem_object.cc') 596019Shines@cs.fsu.eduSource('mport.cc') 606019Shines@cs.fsu.eduSource('noncoherent_xbar.cc') 616019Shines@cs.fsu.eduSource('packet.cc') 62Source('port.cc') 63Source('packet_queue.cc') 64Source('port_proxy.cc') 65Source('physical.cc') 66Source('simple_mem.cc') 67Source('snoop_filter.cc') 68Source('stack_dist_calc.cc') 69Source('tport.cc') 70Source('xbar.cc') 71 72if env['TARGET_ISA'] != 'null': 73 Source('fs_translating_port_proxy.cc') 74 Source('se_translating_port_proxy.cc') 75 Source('page_table.cc') 76if env['TARGET_ISA'] == 'x86': 77 Source('multi_level_page_table.cc') 78 79if env['HAVE_DRAMSIM']: 80 SimObject('DRAMSim2.py') 81 Source('dramsim2_wrapper.cc') 82 Source('dramsim2.cc') 83 84SimObject('MemChecker.py') 85Source('mem_checker.cc') 86Source('mem_checker_monitor.cc') 87 88DebugFlag('AddrRanges') 89DebugFlag('BaseXBar') 90DebugFlag('CoherentXBar') 91DebugFlag('NoncoherentXBar') 92DebugFlag('SnoopFilter') 93CompoundFlag('XBar', ['BaseXBar', 'CoherentXBar', 'NoncoherentXBar', 94 'SnoopFilter']) 95 96DebugFlag('Bridge') 97DebugFlag('CommMonitor') 98DebugFlag('DRAM') 99DebugFlag('DRAMPower') 100DebugFlag('DRAMState') 101DebugFlag('ExternalPort') 102DebugFlag('LLSC') 103DebugFlag('MMU') 104DebugFlag('MemoryAccess') 105DebugFlag('PacketQueue') 106DebugFlag('StackDist') 107DebugFlag("DRAMSim2") 108 109DebugFlag("MemChecker") 110DebugFlag("MemCheckerMonitor") 111