[sv-bc] RE: query regarding usage of modport in hierarchical references

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Wed Mar 16 2011 - 06:12:48 PDT

Please see http://www.eda.org/sv-bc/hm/10902.html.

Regards,
Shalom

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Harpreet Singh Anand
Sent: Wednesday, March 16, 2011 2:07 PM
To: sv-bc@eda.org
Cc: Harpreet Singh Anand
Subject: [sv-bc] query regarding usage of modport in hierarchical references

Hi,

I have a query regarding the usage of modport in hierarchical references.
From the LRM, I was able to understand that the modports are either used while creating ports or while creating a port connections.
Apart from these can we use the modport in a hierarchical reference.

Example:

interface intf;
wire c;
modport m1(output .mp( c ) );
endinterface

module top;
intf i1();
mid i2(i1);
endmodule

module mid (interface port_p1);
wire d;
assign port_p1.m1.mp = d; //is this usage valid
endmodule

Regards,
Harpreet

--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.
________________________________
NOTE: This message and its attachments are intended only for the individual or
entity to which it is addressed and may contain confidential information or
forward-looking statements regarding product development.  Forward-looking
statements are subject to change at Atrenta's sole discretion and Atrenta will have
no liability for the delay or failure to deliver any product or feature mentioned in
such forward-looking statements.
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed, 16 Mar 2011 15:12:48 +0200

This archive was generated by hypermail 2.1.8 : Wed Mar 16 2011 - 06:13:33 PDT