SConscript revision 12919:ddba3d442656
14826Ssaidi@eecs.umich.edu# -*- mode:python -*-
24826Ssaidi@eecs.umich.edu
34826Ssaidi@eecs.umich.edu# Copyright (c) 2012, 2017-2018 ARM Limited
44826Ssaidi@eecs.umich.edu# All rights reserved.
54826Ssaidi@eecs.umich.edu#
64826Ssaidi@eecs.umich.edu# The license below extends only to copyright in the software and shall
74826Ssaidi@eecs.umich.edu# not be construed as granting a license to any other intellectual
84826Ssaidi@eecs.umich.edu# property including but not limited to intellectual property relating
94826Ssaidi@eecs.umich.edu# to a hardware implementation of the functionality of the software
104826Ssaidi@eecs.umich.edu# licensed hereunder.  You may use the software subject to the license
114826Ssaidi@eecs.umich.edu# terms below provided that you ensure that this notice is replicated
124826Ssaidi@eecs.umich.edu# unmodified and in its entirety in all distributions of the software,
134826Ssaidi@eecs.umich.edu# modified or unmodified, in source code or in binary form.
144826Ssaidi@eecs.umich.edu#
154826Ssaidi@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
164826Ssaidi@eecs.umich.edu# modification, are permitted provided that the following conditions are
174826Ssaidi@eecs.umich.edu# met: redistributions of source code must retain the above copyright
184826Ssaidi@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
194826Ssaidi@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
204826Ssaidi@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
214826Ssaidi@eecs.umich.edu# documentation and/or other materials provided with the distribution;
224826Ssaidi@eecs.umich.edu# neither the name of the copyright holders nor the names of its
234826Ssaidi@eecs.umich.edu# contributors may be used to endorse or promote products derived from
244826Ssaidi@eecs.umich.edu# this software without specific prior written permission.
254826Ssaidi@eecs.umich.edu#
264826Ssaidi@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
274826Ssaidi@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
284826Ssaidi@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
294826Ssaidi@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
304826Ssaidi@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
314826Ssaidi@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
326330Sgblack@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
334826Ssaidi@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
344826Ssaidi@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
354826Ssaidi@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
364826Ssaidi@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
374826Ssaidi@eecs.umich.edu#
384826Ssaidi@eecs.umich.edu# Authors: Andreas Hansson
394826Ssaidi@eecs.umich.edu
405569Snate@binkert.orgImport('*')
414826Ssaidi@eecs.umich.edu
425569Snate@binkert.org
435569Snate@binkert.orgSource('base.cc')
444826Ssaidi@eecs.umich.eduSource('base_gen.cc')
454826Ssaidi@eecs.umich.eduSource('dram_gen.cc')
465958Sgblack@eecs.umich.eduSource('dram_rot_gen.cc')
474826Ssaidi@eecs.umich.eduSource('exit_gen.cc')
484826Ssaidi@eecs.umich.eduSource('idle_gen.cc')
495958Sgblack@eecs.umich.eduSource('linear_gen.cc')
504826Ssaidi@eecs.umich.eduSource('random_gen.cc')
515958Sgblack@eecs.umich.eduSource('stream_gen.cc')
524826Ssaidi@eecs.umich.edu
534826Ssaidi@eecs.umich.eduDebugFlag('TrafficGen')
545498Ssaidi@eecs.umich.eduSimObject('BaseTrafficGen.py')
554826Ssaidi@eecs.umich.edu
564826Ssaidi@eecs.umich.eduif env['USE_PYTHON']:
574826Ssaidi@eecs.umich.edu    Source('pygen.cc', add_tags='python')
584826Ssaidi@eecs.umich.edu    SimObject('PyTrafficGen.py')
594826Ssaidi@eecs.umich.edu
604826Ssaidi@eecs.umich.edu# Only build the traffic generator if we have support for protobuf as the
615569Snate@binkert.org# tracing relies on it
624826Ssaidi@eecs.umich.eduif env['HAVE_PROTOBUF']:
634826Ssaidi@eecs.umich.edu    SimObject('TrafficGen.py')
644826Ssaidi@eecs.umich.edu    Source('trace_gen.cc')
656329Sgblack@eecs.umich.edu    Source('traffic_gen.cc')
666329Sgblack@eecs.umich.edu
676329Sgblack@eecs.umich.edu