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).
This commit is contained in:
Cary R 2008-07-07 11:03:06 -07:00 committed by Stephen Williams
parent 12783674cb
commit f9c67e21b2
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
}