SConscript revision 12919
14202Sbinkertn@umich.edu# -*- mode:python -*- 24202Sbinkertn@umich.edu 34202Sbinkertn@umich.edu# Copyright (c) 2012, 2017-2018 ARM Limited 44202Sbinkertn@umich.edu# All rights reserved. 54202Sbinkertn@umich.edu# 65864Snate@binkert.org# The license below extends only to copyright in the software and shall 75864Snate@binkert.org# not be construed as granting a license to any other intellectual 85864Snate@binkert.org# property including but not limited to intellectual property relating 95864Snate@binkert.org# to a hardware implementation of the functionality of the software 105864Snate@binkert.org# licensed hereunder. You may use the software subject to the license 115864Snate@binkert.org# terms below provided that you ensure that this notice is replicated 125864Snate@binkert.org# unmodified and in its entirety in all distributions of the software, 135864Snate@binkert.org# modified or unmodified, in source code or in binary form. 144202Sbinkertn@umich.edu# 155864Snate@binkert.org# Redistribution and use in source and binary forms, with or without 164202Sbinkertn@umich.edu# modification, are permitted provided that the following conditions are 174202Sbinkertn@umich.edu# met: redistributions of source code must retain the above copyright 184202Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer; 194202Sbinkertn@umich.edu# redistributions in binary form must reproduce the above copyright 204202Sbinkertn@umich.edu# notice, this list of conditions and the following disclaimer in the 214202Sbinkertn@umich.edu# documentation and/or other materials provided with the distribution; 224202Sbinkertn@umich.edu# neither the name of the copyright holders nor the names of its 234202Sbinkertn@umich.edu# contributors may be used to endorse or promote products derived from 244202Sbinkertn@umich.edu# this software without specific prior written permission. 254202Sbinkertn@umich.edu# 264202Sbinkertn@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 274202Sbinkertn@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 284202Sbinkertn@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 294202Sbinkertn@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 304202Sbinkertn@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 314202Sbinkertn@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 324202Sbinkertn@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 334202Sbinkertn@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37# 38# Authors: Andreas Hansson 39 40Import('*') 41 42 43Source('base.cc') 44Source('base_gen.cc') 45Source('dram_gen.cc') 46Source('dram_rot_gen.cc') 47Source('exit_gen.cc') 48Source('idle_gen.cc') 49Source('linear_gen.cc') 50Source('random_gen.cc') 51Source('stream_gen.cc') 52 53DebugFlag('TrafficGen') 54SimObject('BaseTrafficGen.py') 55 56if env['USE_PYTHON']: 57 Source('pygen.cc', add_tags='python') 58 SimObject('PyTrafficGen.py') 59 60# Only build the traffic generator if we have support for protobuf as the 61# tracing relies on it 62if env['HAVE_PROTOBUF']: 63 SimObject('TrafficGen.py') 64 Source('trace_gen.cc') 65 Source('traffic_gen.cc') 66 67