RE: [sv-bc] use before declaration

From: Radosław Nawrot <Radoslaw.Nawrot@aldec.com.pl>
Date: Thu Dec 05 2013 - 05:03:58 PST
I think that reference to t  is a selection. Looks that (bacause of
identical syntax) tool's have problem with that. BTW "non-hierarchical "
supervene only one time in LRM. Maybe this word should be changed or
Glossary should be updated ,
Radek

  _____  

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
Bresticker, Shalom
Sent: Thursday, December 05, 2013 1:42 PM
To: SV_BC List
Subject: [sv-bc] use before declaration



Hi,

 

Why does the following not fail compilation?

 

module test;

 

wire w = t.s ;

 

struct { logic s; } t;

 

endmodule

 

6.21 says, "A variable declaration shall precede any simple reference
(non-hierarchical) to that variable."

 

The reference to t is non-hierarchical, isn't it?

 

Thanks,

Shalom

 

Shalom Bresticker 
Communications & Storage Infrastructure Group Silicon Engineering

Intel Jerusalem, Israel 
+972  2 589 6582 (office) 
+972 54 721 1033 (cell) 
 <http://www.linkedin.com/in/shalombresticker>
http://www.linkedin.com/in/shalombresticker 

 

---------------------------------------------------------------------
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  <http://www.mailscanner.info/> 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 Dec 5 05:04:14 2013

This archive was generated by hypermail 2.1.8 : Thu Dec 05 2013 - 05:04:19 PST