SConscript revision 12919
112326Sar4jc@virginia.edu# -*- mode:python -*-
212326Sar4jc@virginia.edu
312326Sar4jc@virginia.edu# Copyright (c) 2012, 2017-2018 ARM Limited
412326Sar4jc@virginia.edu# All rights reserved.
512326Sar4jc@virginia.edu#
612326Sar4jc@virginia.edu# The license below extends only to copyright in the software and shall
712326Sar4jc@virginia.edu# not be construed as granting a license to any other intellectual
812326Sar4jc@virginia.edu# property including but not limited to intellectual property relating
912326Sar4jc@virginia.edu# to a hardware implementation of the functionality of the software
1012326Sar4jc@virginia.edu# licensed hereunder.  You may use the software subject to the license
1112326Sar4jc@virginia.edu# terms below provided that you ensure that this notice is replicated
1212326Sar4jc@virginia.edu# unmodified and in its entirety in all distributions of the software,
1312326Sar4jc@virginia.edu# modified or unmodified, in source code or in binary form.
1412326Sar4jc@virginia.edu#
1512326Sar4jc@virginia.edu# Redistribution and use in source and binary forms, with or without
1612326Sar4jc@virginia.edu# modification, are permitted provided that the following conditions are
1712326Sar4jc@virginia.edu# met: redistributions of source code must retain the above copyright
1812326Sar4jc@virginia.edu# notice, this list of conditions and the following disclaimer;
1912326Sar4jc@virginia.edu# redistributions in binary form must reproduce the above copyright
2012326Sar4jc@virginia.edu# notice, this list of conditions and the following disclaimer in the
2112326Sar4jc@virginia.edu# documentation and/or other materials provided with the distribution;
2212326Sar4jc@virginia.edu# neither the name of the copyright holders nor the names of its
2312326Sar4jc@virginia.edu# contributors may be used to endorse or promote products derived from
2412326Sar4jc@virginia.edu# this software without specific prior written permission.
2512326Sar4jc@virginia.edu#
2612326Sar4jc@virginia.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2712326Sar4jc@virginia.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
2812326Sar4jc@virginia.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
2912326Sar4jc@virginia.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3012309Sar4jc@virginia.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3112309Sar4jc@virginia.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3212309Sar4jc@virginia.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3312323Sar4jc@virginia.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3412369Sar4jc@virginia.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3512322Sar4jc@virginia.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3612320Sar4jc@virginia.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3712309Sar4jc@virginia.edu#
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