When an interface is passed through a module port without using a modport, is it legal to refer into the generate scopes of the interface? For example, if GEN[5] is a generate scope in the interface and 'sig' is a wire declared within that scope, can I use an interface port 'ifc' of a module to get at that wire? assign ifc.GEN[5].sig = 1'b0; Apparently, I cannot list generated signals in a modport without using the modport expression syntax. According to Syntax 20-1 the following is not legal modport mp(input GEN.sig); and I am forced to do modport mp(input .\GEN[5].sig (GEN[5].sig)); Is the BNF correct, or is it just trying to prevent passing out hierarchical references or fields of a struct without a modport expression, while forgetting about the possibility of generated signals? If the BNF is correct, and I pass a modport instead of a naked interface, then there's suddenly no way to say assign ifc.GEN[5].sig = 1'b0; and I am forced to use modport expressions assign ifc.\GEN[5].sig = 1'b0; -- BradReceived on Mon Feb 27 22:42:07 2006
This archive was generated by hypermail 2.1.8 : Mon Feb 27 2006 - 22:43:04 PST