2000-04-01 21:31:57 +02:00
|
|
|
#ifndef __PEvent_H
|
|
|
|
|
#define __PEvent_H
|
|
|
|
|
/*
|
2004-02-19 07:57:10 +01:00
|
|
|
* Copyright (c) 2000-2004 Stephen Williams (steve@icarus.com)
|
2000-04-01 21:31:57 +02:00
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 of the License, or (at your option)
|
|
|
|
|
* any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-08-29 03:41:23 +02:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2000-04-01 21:31:57 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
# include "LineInfo.h"
|
2004-02-19 07:57:10 +01:00
|
|
|
# include "StringHeap.h"
|
2000-04-01 21:31:57 +02:00
|
|
|
# include <string>
|
2001-01-16 03:44:17 +01:00
|
|
|
|
2000-04-04 05:20:15 +02:00
|
|
|
class Design;
|
|
|
|
|
class NetScope;
|
2000-04-01 21:31:57 +02:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* The PEvent class represents event objects. These are things that
|
2001-12-03 05:47:14 +01:00
|
|
|
* are declared in Verilog as ``event foo;'' The name passed to the
|
2003-01-30 17:23:07 +01:00
|
|
|
* constructor is the "foo" part of the declaration.
|
2000-04-01 21:31:57 +02:00
|
|
|
*/
|
|
|
|
|
class PEvent : public LineInfo {
|
|
|
|
|
|
|
|
|
|
public:
|
2004-02-19 07:57:10 +01:00
|
|
|
// The name is a perm-allocated string. It is the simple name
|
|
|
|
|
// of the event, without any scope.
|
|
|
|
|
explicit PEvent(perm_string name);
|
2000-04-01 21:31:57 +02:00
|
|
|
~PEvent();
|
|
|
|
|
|
2004-02-19 07:57:10 +01:00
|
|
|
perm_string name() const;
|
2000-04-01 21:31:57 +02:00
|
|
|
|
2000-04-09 19:44:30 +02:00
|
|
|
void elaborate_scope(Design*des, NetScope*scope) const;
|
2000-04-04 05:20:15 +02:00
|
|
|
|
2000-04-01 21:31:57 +02:00
|
|
|
private:
|
2004-02-19 07:57:10 +01:00
|
|
|
perm_string name_;
|
2000-04-01 21:31:57 +02:00
|
|
|
|
|
|
|
|
private: // not implemented
|
|
|
|
|
PEvent(const PEvent&);
|
|
|
|
|
PEvent& operator= (const PEvent&);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|