[sv-bc] Is $unit allowed in compilation unit

From: Surya Pratik Saha <spsaha_at_.....>
Date: Wed Dec 19 2007 - 02:37:16 PST
Hi,
As per SV LRM, any reference of outside the package is error. But 
consider the case:

const int k = 258;
typedef enum int {FALSE=0, TRUE} mbool;
function int f(input int x );
return (x ^ $unit::k); // <---- is it an error?
endfunction

module top;
endmodule

Where $unit is used inside the compilation unit (which is also a 
package). Is it legal? Some tools fail the case. I don't think this is 
invalid.

-- 
Regards
Surya





-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Dec 19 02:38:00 2007

This archive was generated by hypermail 2.1.8 : Wed Dec 19 2007 - 02:39:59 PST