vhdlpp: Do not emit constants from packages.
They are elaborated and emitted by architectures that make use of packages.
This commit is contained in:
parent
f851fc6981
commit
01b4d49d4a
|
|
@ -52,18 +52,18 @@ int Package::emit_package(ostream&fd) const
|
||||||
fd << " ;" << endl;
|
fd << " ;" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (map<perm_string,struct const_t*>::const_iterator cur = use_constants_.begin()
|
//for (map<perm_string,struct const_t*>::const_iterator cur = use_constants_.begin()
|
||||||
; cur != use_constants_.end() ; ++cur) {
|
//; cur != use_constants_.end() ; ++cur) {
|
||||||
fd << "localparam \\" << cur->first << " = ";
|
//fd << "localparam \\" << cur->first << " = ";
|
||||||
errors += cur->second->val->emit_package(fd);
|
//errors += cur->second->val->emit_package(fd);
|
||||||
fd << ";" << endl;
|
//fd << ";" << endl;
|
||||||
}
|
//}
|
||||||
for (map<perm_string,struct const_t*>::const_iterator cur = cur_constants_.begin()
|
//for (map<perm_string,struct const_t*>::const_iterator cur = cur_constants_.begin()
|
||||||
; cur != cur_constants_.end() ; ++cur) {
|
//; cur != cur_constants_.end() ; ++cur) {
|
||||||
fd << "localparam " << cur->first << " = ";
|
//fd << "localparam " << cur->first << " = ";
|
||||||
errors += cur->second->val->emit_package(fd);
|
//errors += cur->second->val->emit_package(fd);
|
||||||
fd << ";" << endl;
|
//fd << ";" << endl;
|
||||||
}
|
//}
|
||||||
|
|
||||||
for (map<perm_string,Subprogram*>::const_iterator cur = cur_subprograms_.begin()
|
for (map<perm_string,Subprogram*>::const_iterator cur = cur_subprograms_.begin()
|
||||||
; cur != cur_subprograms_.end() ; ++ cur) {
|
; cur != cur_subprograms_.end() ; ++ cur) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue