SConscript revision 10247
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#
292665Ssaidi@eecs.umich.edu# Authors: Nathan Binkert
30955SN/A
31955SN/AImport('*')
32955SN/A
333583Sbinkertn@umich.edu# Only build the communication if we have support for protobuf as the
34955SN/A# tracing relies on it
35955SN/Aif env['HAVE_PROTOBUF']:
36955SN/A    SimObject('CommMonitor.py')
37955SN/A    Source('comm_monitor.cc')
38955SN/A
39955SN/ASimObject('AbstractMemory.py')
40955SN/ASimObject('AddrMapper.py')
41955SN/ASimObject('Bridge.py')
42955SN/ASimObject('Bus.py')
43955SN/ASimObject('DRAMCtrl.py')
44955SN/ASimObject('MemObject.py')
45955SN/ASimObject('SimpleMemory.py')
46955SN/A
47955SN/ASource('abstract_mem.cc')
482023SN/ASource('addr_mapper.cc')
49955SN/ASource('bridge.cc')
503089Ssaidi@eecs.umich.eduSource('bus.cc')
51955SN/ASource('coherent_bus.cc')
52955SN/ASource('dram_ctrl.cc')
53955SN/ASource('mem_object.cc')
54955SN/ASource('mport.cc')
55955SN/ASource('noncoherent_bus.cc')
56955SN/ASource('packet.cc')
57955SN/ASource('port.cc')
58955SN/ASource('packet_queue.cc')
591031SN/ASource('tport.cc')
60955SN/ASource('port_proxy.cc')
611388SN/ASource('simple_mem.cc')
62955SN/ASource('physical.cc')
63955SN/A
641296SN/Aif env['TARGET_ISA'] != 'null':
65955SN/A    Source('fs_translating_port_proxy.cc')
66955SN/A    Source('se_translating_port_proxy.cc')
67955SN/A    Source('page_table.cc')
68955SN/A
69955SN/Aif env['HAVE_DRAMSIM']:
70955SN/A    SimObject('DRAMSim2.py')
71955SN/A    Source('dramsim2_wrapper.cc')
72955SN/A    Source('dramsim2.cc')
73955SN/A
74955SN/ADebugFlag('BaseBus')
75955SN/ADebugFlag('BusAddrRanges')
76955SN/ADebugFlag('CoherentBus')
773584Ssaidi@eecs.umich.eduDebugFlag('NoncoherentBus')
78955SN/ACompoundFlag('Bus', ['BaseBus', 'BusAddrRanges', 'CoherentBus',
79955SN/A                     'NoncoherentBus'])
80955SN/A
81955SN/ADebugFlag('Bridge')
82955SN/ADebugFlag('CommMonitor')
83955SN/ADebugFlag('DRAM')
84955SN/ADebugFlag('DRAMPower')
852325SN/ADebugFlag('DRAMState')
861717SN/ADebugFlag('LLSC')
872652Ssaidi@eecs.umich.eduDebugFlag('MMU')
88955SN/ADebugFlag('MemoryAccess')
892736Sktlim@umich.eduDebugFlag('PacketQueue')
902410SN/A
91955SN/ADebugFlag("DRAMSim2")
922290SN/A