SConscript revision 12919:ddba3d442656
16498Snate@binkert.org# -*- mode:python -*- 26498Snate@binkert.org 36498Snate@binkert.org# Copyright (c) 2012, 2017-2018 ARM Limited 46498Snate@binkert.org# All rights reserved. 56498Snate@binkert.org# 66498Snate@binkert.org# The license below extends only to copyright in the software and shall 76498Snate@binkert.org# not be construed as granting a license to any other intellectual 86498Snate@binkert.org# property including but not limited to intellectual property relating 96498Snate@binkert.org# to a hardware implementation of the functionality of the software 106498Snate@binkert.org# licensed hereunder. You may use the software subject to the license 116498Snate@binkert.org# terms below provided that you ensure that this notice is replicated 126498Snate@binkert.org# unmodified and in its entirety in all distributions of the software, 136498Snate@binkert.org# modified or unmodified, in source code or in binary form. 146498Snate@binkert.org# 156498Snate@binkert.org# Redistribution and use in source and binary forms, with or without 166498Snate@binkert.org# modification, are permitted provided that the following conditions are 176498Snate@binkert.org# met: redistributions of source code must retain the above copyright 186498Snate@binkert.org# notice, this list of conditions and the following disclaimer; 196498Snate@binkert.org# redistributions in binary form must reproduce the above copyright 206498Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 216498Snate@binkert.org# documentation and/or other materials provided with the distribution; 226498Snate@binkert.org# neither the name of the copyright holders nor the names of its 236498Snate@binkert.org# contributors may be used to endorse or promote products derived from 246498Snate@binkert.org# this software without specific prior written permission. 256498Snate@binkert.org# 266498Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 276498Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 286498Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 296498Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 306498Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 316498Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 326498Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 336498Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 346498Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 356498Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 366498Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 376498Snate@binkert.org# 386498Snate@binkert.org# Authors: Andreas Hansson 396498Snate@binkert.org 406498Snate@binkert.orgImport('*') 416498Snate@binkert.org 426498Snate@binkert.org 436498Snate@binkert.orgSource('base.cc') 446498Snate@binkert.orgSource('base_gen.cc') 456498Snate@binkert.orgSource('dram_gen.cc') 466498Snate@binkert.orgSource('dram_rot_gen.cc') 476498Snate@binkert.orgSource('exit_gen.cc') 486498Snate@binkert.orgSource('idle_gen.cc') 496498Snate@binkert.orgSource('linear_gen.cc') 506498Snate@binkert.orgSource('random_gen.cc') 516498Snate@binkert.orgSource('stream_gen.cc') 526498Snate@binkert.org 536498Snate@binkert.orgDebugFlag('TrafficGen') 546498Snate@binkert.orgSimObject('BaseTrafficGen.py') 556498Snate@binkert.org 566498Snate@binkert.orgif env['USE_PYTHON']: 576498Snate@binkert.org Source('pygen.cc', add_tags='python') 586498Snate@binkert.org SimObject('PyTrafficGen.py') 596498Snate@binkert.org 606498Snate@binkert.org# Only build the traffic generator if we have support for protobuf as the 616498Snate@binkert.org# tracing relies on it 626498Snate@binkert.orgif env['HAVE_PROTOBUF']: 636498Snate@binkert.org SimObject('TrafficGen.py') 646498Snate@binkert.org Source('trace_gen.cc') 656498Snate@binkert.org Source('traffic_gen.cc') 666498Snate@binkert.org 676498Snate@binkert.org