[sv-cc] Array of net on module port

From: Radoslaw Nawrot <Radoslaw.Nawrot@aldec.com.pl>
Date: Tue Jun 04 2013 - 00:56:38 PDT
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, and is
believed to be clean.
Received on Tue Jun 4 00:57:18 2013

This archive was generated by hypermail 2.1.8 : Tue Jun 04 2013 - 00:57:35 PDT