SConscript revision 12396
11897Sstever@eecs.umich.edu# -*- mode:python -*- 23077Sstever@eecs.umich.edu 31897Sstever@eecs.umich.edu# Copyright (c) 2012, 2017 ARM Limited 41897Sstever@eecs.umich.edu# All rights reserved. 51897Sstever@eecs.umich.edu# 61897Sstever@eecs.umich.edu# The license below extends only to copyright in the software and shall 71897Sstever@eecs.umich.edu# not be construed as granting a license to any other intellectual 81897Sstever@eecs.umich.edu# property including but not limited to intellectual property relating 91897Sstever@eecs.umich.edu# to a hardware implementation of the functionality of the software 101897Sstever@eecs.umich.edu# licensed hereunder. You may use the software subject to the license 111897Sstever@eecs.umich.edu# terms below provided that you ensure that this notice is replicated 121897Sstever@eecs.umich.edu# unmodified and in its entirety in all distributions of the software, 131897Sstever@eecs.umich.edu# modified or unmodified, in source code or in binary form. 141897Sstever@eecs.umich.edu# 151897Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 161897Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are 171897Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright 181897Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 191897Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 201897Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 211897Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution; 221897Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its 231897Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from 241897Sstever@eecs.umich.edu# this software without specific prior written permission. 251897Sstever@eecs.umich.edu# 261897Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 271897Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 281897Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 291897Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 301897Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 311897Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 321897Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 331897Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 341897Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 351897Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 361897Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 371897Sstever@eecs.umich.edu# 381897Sstever@eecs.umich.edu# Authors: Andreas Hansson 391897Sstever@eecs.umich.edu 401897Sstever@eecs.umich.eduImport('*') 411897Sstever@eecs.umich.edu 423077Sstever@eecs.umich.edu# Only build the traffic generator if we have support for protobuf as the 433099Sstever@eecs.umich.edu# tracing relies on it 443099Sstever@eecs.umich.eduif env['HAVE_PROTOBUF']: 451897Sstever@eecs.umich.edu SimObject('TrafficGen.py') 463709Sstever@eecs.umich.edu 473099Sstever@eecs.umich.edu Source('base_gen.cc') 483099Sstever@eecs.umich.edu Source('dram_gen.cc') 491897Sstever@eecs.umich.edu Source('dram_rot_gen.cc') 503099Sstever@eecs.umich.edu Source('idle_gen.cc') 511897Sstever@eecs.umich.edu Source('linear_gen.cc') 521897Sstever@eecs.umich.edu Source('random_gen.cc') 531897Sstever@eecs.umich.edu Source('trace_gen.cc') 541897Sstever@eecs.umich.edu Source('traffic_gen.cc') 551897Sstever@eecs.umich.edu 561897Sstever@eecs.umich.edu DebugFlag('TrafficGen') 571897Sstever@eecs.umich.edu