vhdlpp: Workaround to avoid translation of variables to wires in functions.

This commit is contained in:
Maciej Suminski 2014-09-29 16:05:26 +02:00
parent 675b7d8efa
commit 9e856810b9
2 changed files with 3 additions and 2 deletions

View File

@ -62,7 +62,8 @@ int Subprogram::emit_package(ostream&fd) const
for (map<perm_string,Variable*>::const_iterator cur = new_variables_.begin()
; cur != new_variables_.end() ; ++cur) {
// Workaround to enable reg_flag for variables
cur->second->count_ref_sequ();
errors += cur->second->emit(fd, NULL, NULL);
}

View File

@ -86,7 +86,7 @@ class VType {
virtual bool can_be_packed() const { return false; }
private:
friend class decl_t;
friend struct decl_t;
// This virtual method is called to emit the declaration. This
// is used by the decl_t object to emit variable/wire/port declarations.
virtual int emit_decl(std::ostream&out, perm_string name, bool reg_flag) const;