RE: [sv-bc] built in class types

From: Gran, Alex <alex_gran_at_.....>
Date: Thu Sep 27 2007 - 22:25:35 PDT
Apparently my email client's spell checker doesn't catch SV syntax
errors :-)
My example should have used the  :: resolution operator

    module m;
      reg semaphore;
      std::semaphore s;
   endmodule

-----Original Message-----
From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On
Behalf Of Gran, Alex
Sent: Thursday, September 27, 2007 10:19 PM
To: Francoise Martinolle; sv-bc@server.eda-stds.org
Subject: RE: [sv-bc] built in class types

Francoise,
   Well, 'semaphore' and 'mailbox' are declared in the built-in package
'std'

Draft 3a Sec 25.6 says
		The built-in package is implicitly wildcard imported
into the compilation-unit scope of every compilation unit

So in your example code, I think the regular rules for wildcard
importing to be followed, as defined in Sec 25.3
		Each such identifier is imported only when it is
referenced in the importing scope and it is neither declared nor
explicitly imported into the scope.
  
So in your example since 'semaphore' is declared on line 2, I think that
would block the implicit import of 'semaphore' from package std.
But I believe that you could still explicitly access semaphore from the
std class.  With something like this:
   module m;
      reg semaphore;
      std:semaphore s;
   endmodule



~Alex

-----Original Message-----
From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On
Behalf Of Francoise Martinolle
Sent: Thursday, September 27, 2007 8:08 PM
To: sv-bc@server.eda-stds.org
Subject: [sv-bc] built in class types


Semaphore and mailbox are built in class types and not keywords, can we
write the
following:


   module m;
      reg semaphore;
      semaphore s;
   endmodule
Francoise
    '

-- 
This message has been scanned for viruses and
dangerous content by 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.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Sep 27 22:25:54 2007

This archive was generated by hypermail 2.1.8 : Thu Sep 27 2007 - 22:26:03 PDT