RE: [sv-cc] Array of net on module port

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Tue Jun 04 2013 - 07:07:59 PDT
Ø  Maybe we should treat ports ther same way as nets?

I would think so.
Probably when this detail was added for nets, no one thought about ports.

Shalom

From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of Radoslaw Nawrot
Sent: Tuesday, June 04, 2013 10:57
To: sv-cc@eda.org
Subject: [sv-cc] Array of net on module port

Hello,
I have an example:

module top;
wire X [5];
test TEST(X);
.....
endmodue

module test(output OUT[5]);
...

endmodule


LRM says:
for net's (37.16 Nets):

25) A logic net without a packed dimension defined is a scalar; and for that object, the property vpiScalar shall return

TRUE and the property vpiVector shall return FALSE. A logic net with one or more packed dimensions defined is

a vector, and the property vpiVector shall return TRUE (vpiScalar shall return FALSE). Packed struct nets and

packed array nets are vectors, and the property vpiVector shall return TRUE (vpiScalar shall return FALSE). A net

bit is a scalar, and the property vpiScalar shall return TRUE (vpiVector shall return FALSE). (..) For an array net, the

vpiScalar and vpiVector properties shall return the values of the respective properties for an array element. The

vpiScalar and vpiVector properties shall return FALSE for all other net objects.

for ports (37.14 Ports):
6) Properties vpiScalar and vpiVector shall indicate if the port is 1 bit or more than 1 bit. They shall not indicate
anything about what is connected to the port.


So
X :
scalar : true
vector : false

OUT:
scalar: false
vector: true


Is it correct?
Maybe we should treat ports ther same way as nets?

Regards,
Radek


--
This message has been scanned for viruses and
dangerous content by MailScanner<http://www.mailscanner.info/>, and is
believed to be clean.
---------------------------------------------------------------------
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 Tue Jun 4 07:08:33 2013

This archive was generated by hypermail 2.1.8 : Tue Jun 04 2013 - 07:08:42 PDT