Allow .array/port input access generate statement.
For nested array accesses the .array/port statement must evaluate its input argument before it starts printing the actual .array/port statement.
This commit is contained in:
parent
23127852c7
commit
8fbfdffe91
|
|
@ -1193,13 +1193,10 @@ static void draw_lpm_array(ivl_lpm_t net)
|
|||
{
|
||||
ivl_nexus_t nex;
|
||||
ivl_signal_t mem = ivl_lpm_array(net);
|
||||
|
||||
fprintf(vvp_out, "L_%p .array/port v%p, ", net, mem);
|
||||
|
||||
nex = ivl_lpm_select(net);
|
||||
fprintf(vvp_out, "%s", draw_net_input(nex));
|
||||
const char*tmp = draw_net_input(nex);
|
||||
|
||||
fprintf(vvp_out, ";\n");
|
||||
fprintf(vvp_out, "L_%p .array/port v%p, %s;\n", net, mem, tmp);
|
||||
}
|
||||
|
||||
static void draw_lpm_cmp(ivl_lpm_t net)
|
||||
|
|
|
|||
Loading…
Reference in New Issue