Module names are in a global definitions name space, not in some particular $unit. But to bind instances to different source descriptions, a configuration can be used. Should topmodule_identifier ::= identifier be topmodule_identifier ::= [ $root ] | identifier ? -- Brad -----Original Message----- From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Paul Graham Sent: Wednesday, October 11, 2006 6:04 PM To: sv-bc@eda.org Subject: [sv-bc] $unit::m or $root.m in module instance? It might be useful, in the presence of nested modules, to specify a module name in a module instantiation using $unit or $root: module top(); $unit::m1 u1(); $root.m2 u2(); endmodule The lrm says that the module name in a module_instantiation has to be an identifier. This rules out using $unit::<id> and $root.<id> as module names. I wonder if this restriction is intentional. PaulReceived on Wed Oct 11 18:19:59 2006
This archive was generated by hypermail 2.1.8 : Wed Oct 11 2006 - 18:20:07 PDT