Get very subtle handling of part select into ports correct.

The code generator was reading the wrong node of a bi-directional
part select. This happens exclusively with part selects passed to
bi-directional ports, so was rare. The result was that the non-part
selected part may get an incorrect value.
This commit is contained in:
Stephen Williams 2008-05-29 17:28:12 -07:00
parent dfa6471227
commit fd6f017435
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ static char* draw_net_input_drive(ivl_nexus_t nex, ivl_nexus_ptr_t nptr)
return strdup(tmp);
} else if (ivl_lpm_data(lpm,0) == nex) {
char tmp[128];
snprintf(tmp, sizeof tmp, "L_%p/V", lpm);
snprintf(tmp, sizeof tmp, "L_%p/i", lpm);
return strdup(tmp);
}
break;