Event.py revision 6657:ef5fae93a3b2
14977Ssaidi@eecs.umich.edu# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 22997Sstever@eecs.umich.edu# Copyright (c) 2009 The Hewlett-Packard Development Company 32997Sstever@eecs.umich.edu# All rights reserved. 42997Sstever@eecs.umich.edu# 52997Sstever@eecs.umich.edu# Redistribution and use in source and binary forms, with or without 62997Sstever@eecs.umich.edu# modification, are permitted provided that the following conditions are 72997Sstever@eecs.umich.edu# met: redistributions of source code must retain the above copyright 82997Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer; 92997Sstever@eecs.umich.edu# redistributions in binary form must reproduce the above copyright 102997Sstever@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the 112997Sstever@eecs.umich.edu# documentation and/or other materials provided with the distribution; 122997Sstever@eecs.umich.edu# neither the name of the copyright holders nor the names of its 132997Sstever@eecs.umich.edu# contributors may be used to endorse or promote products derived from 142997Sstever@eecs.umich.edu# this software without specific prior written permission. 152997Sstever@eecs.umich.edu# 162997Sstever@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 172997Sstever@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 182997Sstever@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 192997Sstever@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 202997Sstever@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 212997Sstever@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 222997Sstever@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 232997Sstever@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 242997Sstever@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 252997Sstever@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 262997Sstever@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 272997Sstever@eecs.umich.edu 282997Sstever@eecs.umich.edufrom slicc.symbols.Symbol import Symbol 295523Snate@binkert.org 305523Snate@binkert.orgclass Event(Symbol): 315523Snate@binkert.org def __repr__(self): 325523Snate@binkert.org return "[Event: %s]" % self.ident 335523Snate@binkert.org 345523Snate@binkert.org__all__ = [ "Event" ] 352997Sstever@eecs.umich.edu