I think the former is syntactically legal, but the latter in not.
 
I would be in favor of a semantic restriction that prohibits both of
these because they create a process. If we allow wire w = f(i); then we
should also allow continuous assigns and always blocks.
 
Dave
 
 
________________________________
From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
Francoise Martinolle
Sent: Friday, October 29, 2004 9:39 AM
To: 'Sv-Bc'
Subject: [sv-bc] question about net declarations in packages
 
I would like a confirmation that we allow all variations of net
declaration syntax in packages.
For ex:
This is allowed
 
package p;
  integer i;
  wire w = i; 
endpackage
 
but this is not:
package p;
  integer i;
  wire w;
  assign w = i;
 
endpackage
 
Received on Fri Oct 29 10:05:42 2004
This archive was generated by hypermail 2.1.8 : Fri Oct 29 2004 - 10:05:46 PDT