vhdlpp: Subprogram class inherits from ScopeBase.
This commit is contained in:
parent
985a3eb206
commit
7b5470c8a7
|
|
@ -21,6 +21,7 @@
|
||||||
# include "entity.h"
|
# include "entity.h"
|
||||||
# include "expression.h"
|
# include "expression.h"
|
||||||
# include "sequential.h"
|
# include "sequential.h"
|
||||||
|
# include "subprogram.h"
|
||||||
# include "vsignal.h"
|
# include "vsignal.h"
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
# include <typeinfo>
|
# include <typeinfo>
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@
|
||||||
# include "architec.h"
|
# include "architec.h"
|
||||||
# include "expression.h"
|
# include "expression.h"
|
||||||
# include "parse_types.h"
|
# include "parse_types.h"
|
||||||
|
# include "subprogram.h"
|
||||||
# include "sequential.h"
|
# include "sequential.h"
|
||||||
# include "vsignal.h"
|
# include "vsignal.h"
|
||||||
# include "vtype.h"
|
# include "vtype.h"
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
# include "vtype.h"
|
# include "vtype.h"
|
||||||
# include "architec.h"
|
# include "architec.h"
|
||||||
# include "package.h"
|
# include "package.h"
|
||||||
|
# include "subprogram.h"
|
||||||
# include "parse_types.h"
|
# include "parse_types.h"
|
||||||
# include <typeinfo>
|
# include <typeinfo>
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
# include "package.h"
|
# include "package.h"
|
||||||
# include "entity.h"
|
# include "entity.h"
|
||||||
|
# include "subprogram.h"
|
||||||
# include "parse_misc.h"
|
# include "parse_misc.h"
|
||||||
# include "ivl_assert.h"
|
# include "ivl_assert.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# include "package.h"
|
# include "package.h"
|
||||||
|
# include "subprogram.h"
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
# include "ivl_assert.h"
|
# include "ivl_assert.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
# include "scope.h"
|
# include "scope.h"
|
||||||
# include "package.h"
|
# include "package.h"
|
||||||
|
# include "subprogram.h"
|
||||||
# include <algorithm>
|
# include <algorithm>
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
# include <iterator>
|
# include <iterator>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
# include "StringHeap.h"
|
# include "StringHeap.h"
|
||||||
# include "entity.h"
|
# include "entity.h"
|
||||||
# include "expression.h"
|
# include "expression.h"
|
||||||
# include "subprogram.h"
|
|
||||||
# include "vsignal.h"
|
# include "vsignal.h"
|
||||||
|
|
||||||
class ActiveScope;
|
class ActiveScope;
|
||||||
|
|
|
||||||
|
|
@ -22,15 +22,15 @@
|
||||||
|
|
||||||
# include "StringHeap.h"
|
# include "StringHeap.h"
|
||||||
# include "LineInfo.h"
|
# include "LineInfo.h"
|
||||||
|
# include "scope.h"
|
||||||
# include <iostream>
|
# include <iostream>
|
||||||
# include <list>
|
# include <list>
|
||||||
|
|
||||||
class InterfacePort;
|
class InterfacePort;
|
||||||
class ScopeBase;
|
|
||||||
class SequentialStmt;
|
class SequentialStmt;
|
||||||
class VType;
|
class VType;
|
||||||
|
|
||||||
class Subprogram : public LineInfo {
|
class Subprogram : public LineInfo, public ScopeBase {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Subprogram(perm_string name, std::list<InterfacePort*>*ports,
|
Subprogram(perm_string name, std::list<InterfacePort*>*ports,
|
||||||
|
|
@ -48,6 +48,8 @@ class Subprogram : public LineInfo {
|
||||||
// matches this subprogram and that subprogram.
|
// matches this subprogram and that subprogram.
|
||||||
bool compare_specification(Subprogram*that) const;
|
bool compare_specification(Subprogram*that) const;
|
||||||
|
|
||||||
|
int emit(ostream&out, Entity*ent, Architecture*arc);
|
||||||
|
|
||||||
// Emit a definition as it would show up in a package.
|
// Emit a definition as it would show up in a package.
|
||||||
int emit_package(std::ostream&fd) const;
|
int emit_package(std::ostream&fd) const;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue