MemDelay.py revision 13892:0182a0601f66
16691Stjones1@inf.ed.ac.uk# Copyright (c) 2018 ARM Limited 26691Stjones1@inf.ed.ac.uk# All rights reserved. 36691Stjones1@inf.ed.ac.uk# 46691Stjones1@inf.ed.ac.uk# The license below extends only to copyright in the software and shall 56691Stjones1@inf.ed.ac.uk# not be construed as granting a license to any other intellectual 66691Stjones1@inf.ed.ac.uk# property including but not limited to intellectual property relating 76691Stjones1@inf.ed.ac.uk# to a hardware implementation of the functionality of the software 86691Stjones1@inf.ed.ac.uk# licensed hereunder. You may use the software subject to the license 96691Stjones1@inf.ed.ac.uk# terms below provided that you ensure that this notice is replicated 106691Stjones1@inf.ed.ac.uk# unmodified and in its entirety in all distributions of the software, 116691Stjones1@inf.ed.ac.uk# modified or unmodified, in source code or in binary form. 126691Stjones1@inf.ed.ac.uk# 136691Stjones1@inf.ed.ac.uk# Redistribution and use in source and binary forms, with or without 146691Stjones1@inf.ed.ac.uk# modification, are permitted provided that the following conditions are 156691Stjones1@inf.ed.ac.uk# met: redistributions of source code must retain the above copyright 166691Stjones1@inf.ed.ac.uk# notice, this list of conditions and the following disclaimer; 176691Stjones1@inf.ed.ac.uk# redistributions in binary form must reproduce the above copyright 186691Stjones1@inf.ed.ac.uk# notice, this list of conditions and the following disclaimer in the 196691Stjones1@inf.ed.ac.uk# documentation and/or other materials provided with the distribution; 206691Stjones1@inf.ed.ac.uk# neither the name of the copyright holders nor the names of its 216691Stjones1@inf.ed.ac.uk# contributors may be used to endorse or promote products derived from 226691Stjones1@inf.ed.ac.uk# this software without specific prior written permission. 236691Stjones1@inf.ed.ac.uk# 246691Stjones1@inf.ed.ac.uk# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 256691Stjones1@inf.ed.ac.uk# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 266691Stjones1@inf.ed.ac.uk# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 276691Stjones1@inf.ed.ac.uk# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 286691Stjones1@inf.ed.ac.uk# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 296691Stjones1@inf.ed.ac.uk# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 306691Stjones1@inf.ed.ac.uk# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 316691Stjones1@inf.ed.ac.uk# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 326691Stjones1@inf.ed.ac.uk# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 336691Stjones1@inf.ed.ac.uk# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 346691Stjones1@inf.ed.ac.uk# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 356691Stjones1@inf.ed.ac.uk# 366691Stjones1@inf.ed.ac.uk# Authors: Andreas Sandberg 376691Stjones1@inf.ed.ac.uk 386691Stjones1@inf.ed.ac.ukfrom m5.params import * 3912106SRekai.GonzalezAlberquilla@arm.comfrom m5.objects.ClockedObject import ClockedObject 409384SAndreas.Sandberg@arm.com 416691Stjones1@inf.ed.ac.ukclass MemDelay(ClockedObject): 429384SAndreas.Sandberg@arm.com type = 'MemDelay' 436691Stjones1@inf.ed.ac.uk cxx_header = 'mem/mem_delay.hh' 446691Stjones1@inf.ed.ac.uk abstract = True 456691Stjones1@inf.ed.ac.uk 466691Stjones1@inf.ed.ac.uk master = MasterPort("Master port") 476691Stjones1@inf.ed.ac.uk slave = SlavePort("Slave port") 486691Stjones1@inf.ed.ac.uk 496691Stjones1@inf.ed.ac.ukclass SimpleMemDelay(MemDelay): 509384SAndreas.Sandberg@arm.com type = 'SimpleMemDelay' 516691Stjones1@inf.ed.ac.uk cxx_header = 'mem/mem_delay.hh' 526691Stjones1@inf.ed.ac.uk 536691Stjones1@inf.ed.ac.uk read_req = Param.Latency("0t", "Read request delay") 546691Stjones1@inf.ed.ac.uk read_resp = Param.Latency("0t", "Read response delay") 556691Stjones1@inf.ed.ac.uk 566691Stjones1@inf.ed.ac.uk write_req = Param.Latency("0t", "Write request delay") 579384SAndreas.Sandberg@arm.com write_resp = Param.Latency("0t", "Write response delay") 589384SAndreas.Sandberg@arm.com