112047Schristian.menard@tu-dresden.de#!python 212047Schristian.menard@tu-dresden.de 312047Schristian.menard@tu-dresden.de# Copyright (c) 2016, Dresden University of Technology (TU Dresden) 412047Schristian.menard@tu-dresden.de# All rights reserved. 512047Schristian.menard@tu-dresden.de# 612047Schristian.menard@tu-dresden.de# Redistribution and use in source and binary forms, with or without 712047Schristian.menard@tu-dresden.de# modification, are permitted provided that the following conditions are 812047Schristian.menard@tu-dresden.de# met: 912047Schristian.menard@tu-dresden.de# 1012047Schristian.menard@tu-dresden.de# 1. Redistributions of source code must retain the above copyright notice, 1112047Schristian.menard@tu-dresden.de# this list of conditions and the following disclaimer. 1212047Schristian.menard@tu-dresden.de# 1312047Schristian.menard@tu-dresden.de# 2. Redistributions in binary form must reproduce the above copyright 1412047Schristian.menard@tu-dresden.de# notice, this list of conditions and the following disclaimer in the 1512047Schristian.menard@tu-dresden.de# documentation and/or other materials provided with the distribution. 1612047Schristian.menard@tu-dresden.de# 1712047Schristian.menard@tu-dresden.de# 3. Neither the name of the copyright holder nor the names of its 1812047Schristian.menard@tu-dresden.de# contributors may be used to endorse or promote products derived from 1912047Schristian.menard@tu-dresden.de# this software without specific prior written permission. 2012047Schristian.menard@tu-dresden.de# 2112047Schristian.menard@tu-dresden.de# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2212047Schristian.menard@tu-dresden.de# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 2312047Schristian.menard@tu-dresden.de# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 2412047Schristian.menard@tu-dresden.de# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER 2512047Schristian.menard@tu-dresden.de# OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 2612047Schristian.menard@tu-dresden.de# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 2712047Schristian.menard@tu-dresden.de# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 2812047Schristian.menard@tu-dresden.de# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 2912047Schristian.menard@tu-dresden.de# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 3012047Schristian.menard@tu-dresden.de# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 3112047Schristian.menard@tu-dresden.de# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3212047Schristian.menard@tu-dresden.de# 3312047Schristian.menard@tu-dresden.de# Authors: Christian Menard 3412047Schristian.menard@tu-dresden.de 3512047Schristian.menard@tu-dresden.deImport('env') 3612047Schristian.menard@tu-dresden.de 3712047Schristian.menard@tu-dresden.deenv = env.Clone() 3812047Schristian.menard@tu-dresden.de 3912047Schristian.menard@tu-dresden.degem5_root = env['GEM5_ROOT'] 4012047Schristian.menard@tu-dresden.de 4113391Sgabeblack@google.comsystemc_util_dir = gem5_root + '/util/systemc/gem5_within_systemc' 4213391Sgabeblack@google.com 4312047Schristian.menard@tu-dresden.desystemc_src = [] 4413391Sgabeblack@google.comsystemc_src += Install('.', systemc_util_dir + '/sc_gem5_control.cc'), 4513391Sgabeblack@google.comsystemc_src += Install('.', systemc_util_dir + '/sc_logger.cc'), 4613391Sgabeblack@google.comsystemc_src += Install('.', systemc_util_dir + '/sc_module.cc'), 4713391Sgabeblack@google.comsystemc_src += Install('.', systemc_util_dir + '/stats.cc'), 4812047Schristian.menard@tu-dresden.de 4912047Schristian.menard@tu-dresden.detlm_src = [] 5012047Schristian.menard@tu-dresden.detlm_src += [File('master_transactor.cc')] 5112047Schristian.menard@tu-dresden.detlm_src += [File('sc_ext.cc')] 5212047Schristian.menard@tu-dresden.detlm_src += [File('sc_master_port.cc')] 5312047Schristian.menard@tu-dresden.detlm_src += [File('sc_mm.cc')] 5412047Schristian.menard@tu-dresden.detlm_src += [File('sc_slave_port.cc')] 5512047Schristian.menard@tu-dresden.detlm_src += [File('sim_control.cc')] 5612047Schristian.menard@tu-dresden.detlm_src += [File('slave_transactor.cc')] 5712047Schristian.menard@tu-dresden.de 5812047Schristian.menard@tu-dresden.detlm = env.Library('gem5_tlm', tlm_src + systemc_src) 5912047Schristian.menard@tu-dresden.de 6012047Schristian.menard@tu-dresden.deReturn('tlm') 61