SConscript revision 10201
12155SN/A# -*- mode:python -*-
22155SN/A
32155SN/A# Copyright (c) 2006 The Regents of The University of Michigan
42155SN/A# All rights reserved.
52155SN/A#
62155SN/A# Redistribution and use in source and binary forms, with or without
72155SN/A# modification, are permitted provided that the following conditions are
82155SN/A# met: redistributions of source code must retain the above copyright
92155SN/A# notice, this list of conditions and the following disclaimer;
102155SN/A# redistributions in binary form must reproduce the above copyright
112155SN/A# notice, this list of conditions and the following disclaimer in the
122155SN/A# documentation and/or other materials provided with the distribution;
132155SN/A# neither the name of the copyright holders nor the names of its
142155SN/A# contributors may be used to endorse or promote products derived from
152155SN/A# this software without specific prior written permission.
162155SN/A#
172155SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
182155SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
192155SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
202155SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
212155SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
222155SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
232155SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
242155SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
252155SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
262155SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
272155SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
282665Ssaidi@eecs.umich.edu#
292665Ssaidi@eecs.umich.edu# Authors: Nathan Binkert
302155SN/A
314202Sbinkertn@umich.eduImport('*')
322155SN/A
339850Sandreas.hansson@arm.com# Only build the communication if we have support for protobuf as the
349850Sandreas.hansson@arm.com# tracing relies on it
359850Sandreas.hansson@arm.comif env['HAVE_PROTOBUF']:
367768SAli.Saidi@ARM.com    SimObject('CommMonitor.py')
377768SAli.Saidi@ARM.com    Source('comm_monitor.cc')
382178SN/A
392178SN/ASimObject('AbstractMemory.py')
402178SN/ASimObject('AddrMapper.py')
412178SN/ASimObject('Bridge.py')
422178SN/ASimObject('Bus.py')
432178SN/ASimObject('DRAMCtrl.py')
442178SN/ASimObject('MemObject.py')
452178SN/ASimObject('SimpleMemory.py')
462178SN/A
472178SN/ASource('abstract_mem.cc')
482178SN/ASource('addr_mapper.cc')
492155SN/ASource('bridge.cc')
505865Sksewell@umich.eduSource('bus.cc')
516181Sksewell@umich.eduSource('coherent_bus.cc')
526181Sksewell@umich.eduSource('dram_ctrl.cc')
535865Sksewell@umich.eduSource('mem_object.cc')
543918Ssaidi@eecs.umich.eduSource('mport.cc')
555865Sksewell@umich.eduSource('noncoherent_bus.cc')
562623SN/ASource('packet.cc')
573918Ssaidi@eecs.umich.eduSource('port.cc')
582155SN/ASource('packet_queue.cc')
592155SN/ASource('tport.cc')
602292SN/ASource('port_proxy.cc')
616181Sksewell@umich.eduSource('simple_mem.cc')
626181Sksewell@umich.eduSource('physical.cc')
633918Ssaidi@eecs.umich.edu
642292SN/Aif env['TARGET_ISA'] != 'null':
652292SN/A    Source('fs_translating_port_proxy.cc')
662292SN/A    Source('se_translating_port_proxy.cc')
673918Ssaidi@eecs.umich.edu    Source('page_table.cc')
682292SN/A
692292SN/Aif env['HAVE_DRAMSIM']:
702766Sktlim@umich.edu    SimObject('DRAMSim2.py')
712766Sktlim@umich.edu    Source('dramsim2_wrapper.cc')
722766Sktlim@umich.edu    Source('dramsim2.cc')
732921Sktlim@umich.edu
748887Sgeoffrey.blake@arm.comDebugFlag('BaseBus')
758887Sgeoffrey.blake@arm.comDebugFlag('BusAddrRanges')
762766Sktlim@umich.eduDebugFlag('CoherentBus')
774762Snate@binkert.orgDebugFlag('NoncoherentBus')
782155SN/ACompoundFlag('Bus', ['BaseBus', 'BusAddrRanges', 'CoherentBus',
792155SN/A                     'NoncoherentBus'])
802155SN/A
812155SN/ADebugFlag('Bridge')
822155SN/ADebugFlag('CommMonitor')
832155SN/ADebugFlag('DRAM')
842766Sktlim@umich.eduDebugFlag('LLSC')
852155SN/ADebugFlag('MMU')
865865Sksewell@umich.eduDebugFlag('MemoryAccess')
872155SN/ADebugFlag('PacketQueue')
882155SN/A
892155SN/ADebugFlag("DRAMSim2")
902155SN/A