T
thomasc
Guest
Suppose I have a module named 'abc' and I'm instantiating it in another
module multiple times. I was wondering if I can refer to the outputs from
the instantiation by writing something like 'A1.out'. (below is the
abstract of what i mean). Is it possible? if not, how can I use outputs
from module instantiations inside a procedural block?
================
module abc(a,b,c);
input b,c;
output a;
...
endmodule
module higher_level(...);
reg temp1, temp2;
...
abc A1 (a, b, c); //a is the output from
abc A2 (a, d, e); //the module abc
always
...
temp1 = A1.a;
...
temp2 = A2.a;
...
end //always
endmodule //higher_level
module multiple times. I was wondering if I can refer to the outputs from
the instantiation by writing something like 'A1.out'. (below is the
abstract of what i mean). Is it possible? if not, how can I use outputs
from module instantiations inside a procedural block?
================
module abc(a,b,c);
input b,c;
output a;
...
endmodule
module higher_level(...);
reg temp1, temp2;
...
abc A1 (a, b, c); //a is the output from
abc A2 (a, d, e); //the module abc
always
...
temp1 = A1.a;
...
temp2 = A2.a;
...
end //always
endmodule //higher_level