From f9c67e21b289717df4dfe5dcf6569d76c87e6830 Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 7 Jul 2008 11:03:06 -0700 Subject: [PATCH] Some variable part select arguments must be drawn before the part select. Some variable part selects need to draw the select argument before the variable part select is printed e.g.(.array/port). --- tgt-vvp/vvp_scope.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tgt-vvp/vvp_scope.c b/tgt-vvp/vvp_scope.c index c55bcb590..1731a3a4d 100644 --- a/tgt-vvp/vvp_scope.c +++ b/tgt-vvp/vvp_scope.c @@ -1602,9 +1602,10 @@ static void draw_lpm_part(ivl_lpm_t net) net, dly, draw_net_input(ivl_lpm_data(net, 0))); fprintf(vvp_out, ", %u, %u;\n", base, width); } else { + const char*sel_symbol = draw_net_input(sel); fprintf(vvp_out, "L_%p%s .part/v %s", net, dly, draw_net_input(ivl_lpm_data(net,0))); - fprintf(vvp_out, ", %s", draw_net_input(sel)); + fprintf(vvp_out, ", %s", sel_symbol); fprintf(vvp_out, ", %u;\n", width); } }