As long as the hierarchical reference is legal in the context where the declaration occurs, it should be legal. It would not be legal inside a package or $unit. Dave > -----Original Message----- > From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On > Behalf Of Kakoli Bhattacharya > Sent: Thursday, August 28, 2008 12:37 AM > To: sv-ec@server.eda.org > Subject: [sv-ec] Virtual interface initialized with inst_name.modport > > Hello, > > Consider the following scenario: > > virtual my_interface virtual1 = intf1.top; > > where, > interface my_interface; > wire in1,in2; > bit out1,out2; > modport top(input in1,output out1); > endinterface > > Is the above initialization of the virtual interface legal? > Some of the standard simulators pass this but LRM is not clear about this > issue. > > Regards, > Kakoli > > > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Aug 28 01:00:07 2008
This archive was generated by hypermail 2.1.8 : Thu Aug 28 2008 - 01:00:15 PDT