From fd6f0174351867d5e3e36eed8c6e81a9d1c0e6b7 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 29 May 2008 17:28:12 -0700 Subject: [PATCH] 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. --- tgt-vvp/vvp_scope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgt-vvp/vvp_scope.c b/tgt-vvp/vvp_scope.c index 7900c30fb..f8e0829a1 100644 --- a/tgt-vvp/vvp_scope.c +++ b/tgt-vvp/vvp_scope.c @@ -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;