SimpleLink.py revision 8258:7c377f5162f8
111308Santhony.gutierrez@amd.com# Copyright (c) 2011 Advanced Micro Devices, Inc.
211308Santhony.gutierrez@amd.com# All rights reserved.
311308Santhony.gutierrez@amd.com#
411308Santhony.gutierrez@amd.com# Redistribution and use in source and binary forms, with or without
511308Santhony.gutierrez@amd.com# modification, are permitted provided that the following conditions are
611308Santhony.gutierrez@amd.com# met: redistributions of source code must retain the above copyright
711308Santhony.gutierrez@amd.com# notice, this list of conditions and the following disclaimer;
811308Santhony.gutierrez@amd.com# redistributions in binary form must reproduce the above copyright
911308Santhony.gutierrez@amd.com# notice, this list of conditions and the following disclaimer in the
1011308Santhony.gutierrez@amd.com# documentation and/or other materials provided with the distribution;
1111308Santhony.gutierrez@amd.com# neither the name of the copyright holders nor the names of its
1211308Santhony.gutierrez@amd.com# contributors may be used to endorse or promote products derived from
1311308Santhony.gutierrez@amd.com# this software without specific prior written permission.
1411308Santhony.gutierrez@amd.com#
1511308Santhony.gutierrez@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1611308Santhony.gutierrez@amd.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1711308Santhony.gutierrez@amd.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1811308Santhony.gutierrez@amd.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1911308Santhony.gutierrez@amd.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2011308Santhony.gutierrez@amd.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2111308Santhony.gutierrez@amd.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2211308Santhony.gutierrez@amd.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2311308Santhony.gutierrez@amd.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2411308Santhony.gutierrez@amd.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2511308Santhony.gutierrez@amd.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2611308Santhony.gutierrez@amd.com#
2711308Santhony.gutierrez@amd.com# Authors: Steve Reinhardt
2811308Santhony.gutierrez@amd.com#          Brad Beckmann
2911308Santhony.gutierrez@amd.com
3011308Santhony.gutierrez@amd.comfrom m5.params import *
3111308Santhony.gutierrez@amd.comfrom m5.proxy import *
3211308Santhony.gutierrez@amd.comfrom m5.SimObject import SimObject
3311308Santhony.gutierrez@amd.comfrom BasicLink import BasicIntLink, BasicExtLink
3411308Santhony.gutierrez@amd.com
3511308Santhony.gutierrez@amd.comclass SimpleExtLink(BasicExtLink):
3611308Santhony.gutierrez@amd.com    type = 'SimpleExtLink'
3711308Santhony.gutierrez@amd.com
3811308Santhony.gutierrez@amd.comclass SimpleIntLink(BasicIntLink):
3911308Santhony.gutierrez@amd.com    type = 'SimpleIntLink'
4011308Santhony.gutierrez@amd.com