mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-28 16:53:45 +02:00
vhdlpp: Allow assigning values to inout ports.
This commit is contained in:
@@ -112,7 +112,7 @@ int ExpName::elaborate_lval_(Entity*ent, ScopeBase*scope, bool is_sequ, ExpName*
|
||||
const VType*found_type = 0;
|
||||
|
||||
if (const InterfacePort*cur = ent->find_port(name_)) {
|
||||
if (cur->mode != PORT_OUT) {
|
||||
if (cur->mode != PORT_OUT && cur->mode != PORT_INOUT) {
|
||||
cerr << get_fileline() << ": error: Assignment to "
|
||||
"input port " << name_ << "." << endl;
|
||||
return errors + 1;
|
||||
@@ -216,7 +216,7 @@ int ExpName::elaborate_lval(Entity*ent, ScopeBase*scope, bool is_sequ)
|
||||
const VType*found_type = 0;
|
||||
|
||||
if (const InterfacePort*cur = ent->find_port(name_)) {
|
||||
if (cur->mode != PORT_OUT) {
|
||||
if (cur->mode != PORT_OUT && cur->mode != PORT_INOUT) {
|
||||
cerr << get_fileline() << ": error: Assignment to "
|
||||
"input port " << name_ << "." << endl;
|
||||
return errors += 1;
|
||||
|
||||
Reference in New Issue
Block a user