SConscript revision 10208
1955SN/A# -*- mode:python -*- 2955SN/A 31762SN/A# Copyright (c) 2006 The Regents of The University of Michigan 4955SN/A# All rights reserved. 5955SN/A# 6955SN/A# Redistribution and use in source and binary forms, with or without 7955SN/A# modification, are permitted provided that the following conditions are 8955SN/A# met: redistributions of source code must retain the above copyright 9955SN/A# notice, this list of conditions and the following disclaimer; 10955SN/A# redistributions in binary form must reproduce the above copyright 11955SN/A# notice, this list of conditions and the following disclaimer in the 12955SN/A# documentation and/or other materials provided with the distribution; 13955SN/A# neither the name of the copyright holders nor the names of its 14955SN/A# contributors may be used to endorse or promote products derived from 15955SN/A# this software without specific prior written permission. 16955SN/A# 17955SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18955SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19955SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282665Ssaidi@eecs.umich.edu# 294762Snate@binkert.org# Authors: Nathan Binkert 30955SN/A 315522Snate@binkert.orgImport('*') 326143Snate@binkert.org 334762Snate@binkert.org# Only build the communication if we have support for protobuf as the 345522Snate@binkert.org# tracing relies on it 35955SN/Aif env['HAVE_PROTOBUF']: 365522Snate@binkert.org SimObject('CommMonitor.py') 37955SN/A Source('comm_monitor.cc') 385522Snate@binkert.org 394202Sbinkertn@umich.eduSimObject('AbstractMemory.py') 405742Snate@binkert.orgSimObject('AddrMapper.py') 41955SN/ASimObject('Bridge.py') 424381Sbinkertn@umich.eduSimObject('Bus.py') 434381Sbinkertn@umich.eduSimObject('DRAMCtrl.py') 448334Snate@binkert.orgSimObject('MemObject.py') 45955SN/ASimObject('SimpleMemory.py') 46955SN/A 474202Sbinkertn@umich.eduSource('abstract_mem.cc') 48955SN/ASource('addr_mapper.cc') 494382Sbinkertn@umich.eduSource('bridge.cc') 504382Sbinkertn@umich.eduSource('bus.cc') 514382Sbinkertn@umich.eduSource('coherent_bus.cc') 526654Snate@binkert.orgSource('dram_ctrl.cc') 535517Snate@binkert.orgSource('mem_object.cc') 548614Sgblack@eecs.umich.eduSource('mport.cc') 557674Snate@binkert.orgSource('noncoherent_bus.cc') 566143Snate@binkert.orgSource('packet.cc') 576143Snate@binkert.orgSource('port.cc') 586143Snate@binkert.orgSource('packet_queue.cc') 598233Snate@binkert.orgSource('tport.cc') 608233Snate@binkert.orgSource('port_proxy.cc') 618233Snate@binkert.orgSource('simple_mem.cc') 628233Snate@binkert.orgSource('physical.cc') 638233Snate@binkert.org 648334Snate@binkert.orgif env['TARGET_ISA'] != 'null': 658334Snate@binkert.org Source('fs_translating_port_proxy.cc') 668233Snate@binkert.org Source('se_translating_port_proxy.cc') 678233Snate@binkert.org Source('page_table.cc') 688233Snate@binkert.org 698233Snate@binkert.orgif env['HAVE_DRAMSIM']: 708233Snate@binkert.org SimObject('DRAMSim2.py') 718233Snate@binkert.org Source('dramsim2_wrapper.cc') 726143Snate@binkert.org Source('dramsim2.cc') 738233Snate@binkert.org 748233Snate@binkert.orgDebugFlag('BaseBus') 758233Snate@binkert.orgDebugFlag('BusAddrRanges') 766143Snate@binkert.orgDebugFlag('CoherentBus') 776143Snate@binkert.orgDebugFlag('NoncoherentBus') 786143Snate@binkert.orgCompoundFlag('Bus', ['BaseBus', 'BusAddrRanges', 'CoherentBus', 796143Snate@binkert.org 'NoncoherentBus']) 808233Snate@binkert.org 818233Snate@binkert.orgDebugFlag('Bridge') 828233Snate@binkert.orgDebugFlag('CommMonitor') 836143Snate@binkert.orgDebugFlag('DRAM') 848233Snate@binkert.orgDebugFlag('DRAMState') 858233Snate@binkert.orgDebugFlag('LLSC') 868233Snate@binkert.orgDebugFlag('MMU') 878233Snate@binkert.orgDebugFlag('MemoryAccess') 886143Snate@binkert.orgDebugFlag('PacketQueue') 896143Snate@binkert.org 906143Snate@binkert.orgDebugFlag("DRAMSim2") 914762Snate@binkert.org