SConscript revision 12919
12023SN/A# -*- mode:python -*-
22023SN/A
32023SN/A# Copyright (c) 2012, 2017-2018 ARM Limited
42023SN/A# All rights reserved.
52023SN/A#
62023SN/A# The license below extends only to copyright in the software and shall
72023SN/A# not be construed as granting a license to any other intellectual
82023SN/A# property including but not limited to intellectual property relating
92023SN/A# to a hardware implementation of the functionality of the software
102023SN/A# licensed hereunder.  You may use the software subject to the license
112023SN/A# terms below provided that you ensure that this notice is replicated
122023SN/A# unmodified and in its entirety in all distributions of the software,
132023SN/A# modified or unmodified, in source code or in binary form.
142023SN/A#
152023SN/A# Redistribution and use in source and binary forms, with or without
162023SN/A# modification, are permitted provided that the following conditions are
172023SN/A# met: redistributions of source code must retain the above copyright
182023SN/A# notice, this list of conditions and the following disclaimer;
192023SN/A# redistributions in binary form must reproduce the above copyright
202023SN/A# notice, this list of conditions and the following disclaimer in the
212023SN/A# documentation and/or other materials provided with the distribution;
222023SN/A# neither the name of the copyright holders nor the names of its
232023SN/A# contributors may be used to endorse or promote products derived from
242023SN/A# this software without specific prior written permission.
252023SN/A#
262023SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
272023SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
282665Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
292665Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
302665Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
312023SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
324202Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
332023SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
344202Sbinkertn@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
359022Sgblack@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
364997Sgblack@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
374202Sbinkertn@umich.edu#
388780Sgblack@eecs.umich.edu# Authors: Andreas Hansson
398780Sgblack@eecs.umich.edu
408745Sgblack@eecs.umich.eduImport('*')
414997Sgblack@eecs.umich.edu
426313Sgblack@eecs.umich.edu
438777Sgblack@eecs.umich.eduSource('base.cc')
448780Sgblack@eecs.umich.eduSource('base_gen.cc')
458780Sgblack@eecs.umich.eduSource('dram_gen.cc')
468780Sgblack@eecs.umich.eduSource('dram_rot_gen.cc')
478777Sgblack@eecs.umich.eduSource('exit_gen.cc')
484997Sgblack@eecs.umich.eduSource('idle_gen.cc')
498780Sgblack@eecs.umich.eduSource('linear_gen.cc')
506327Sgblack@eecs.umich.eduSource('random_gen.cc')
514202Sbinkertn@umich.eduSource('stream_gen.cc')
528777Sgblack@eecs.umich.edu
538780Sgblack@eecs.umich.eduDebugFlag('TrafficGen')
544997Sgblack@eecs.umich.eduSimObject('BaseTrafficGen.py')
554826Ssaidi@eecs.umich.edu
568755Sgblack@eecs.umich.eduif env['USE_PYTHON']:
572023SN/A    Source('pygen.cc', add_tags='python')
588745Sgblack@eecs.umich.edu    SimObject('PyTrafficGen.py')
599384SAndreas.Sandberg@arm.com
608780Sgblack@eecs.umich.edu# Only build the traffic generator if we have support for protobuf as the
614997Sgblack@eecs.umich.edu# tracing relies on it
624997Sgblack@eecs.umich.eduif env['HAVE_PROTOBUF']:
634202Sbinkertn@umich.edu    SimObject('TrafficGen.py')
6412222Sgabeblack@google.com    Source('trace_gen.cc')
65    Source('traffic_gen.cc')
66
67