1 #ifndef IVL_PPackage_H
2 #define IVL_PPackage_H
3 /*
4  * Copyright (c) 2012-2014 Stephen Williams (steve@icarus.com)
5  * Copyright CERN 2013 / Stephen Williams (steve@icarus.com)
6  *
7  *    This source code is free software; you can redistribute it
8  *    and/or modify it in source code form under the terms of the GNU
9  *    General Public License as published by the Free Software
10  *    Foundation; either version 2 of the License, or (at your option)
11  *    any later version.
12  *
13  *    This program is distributed in the hope that it will be useful,
14  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *    GNU General Public License for more details.
17  *
18  *    You should have received a copy of the GNU General Public License
19  *    along with this program; if not, write to the Free Software
20  *    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  */
22 
23 # include  "PScope.h"
24 # include  "LineInfo.h"
25 # include  "StringHeap.h"
26 # include  <iostream>
27 
28 /*
29  * SystemVerilog supports class declarations with their own lexical
30  * scope, etc. The parser arranges for these to be created and
31  * collected.
32  */
33 
34 class PPackage : public PScopeExtra, public LineInfo {
35 
36     public:
37       explicit PPackage (perm_string name, LexicalScope*parent);
38       ~PPackage();
39 
40       bool elaborate_scope(Design*des, NetScope*scope);
41       bool elaborate_sig(Design*des, NetScope*scope) const;
42       bool elaborate(Design*des, NetScope*scope) const;
43 
44       void pform_dump(std::ostream&out) const;
45 };
46 
47 #endif /* IVL_PPackage_H */
48