RE: [sv-ec] RE: [sv-bc] List of operators allowed on class object

From: danielm <danielm_at_.....>
Date: Wed Jan 16 2008 - 23:53:31 PST
As logical operators LRM lists (table 8-1):
%=
&=
|=
^=
<<=
>>=
<<<=
>>>=
!
~
&
~&
|
~|
^
~^
^~
%
&
|
^
^~
~^
>>
<<
>>>
<<<
!
&&
|| 

I think that you want to allow only 
!
&&
|| 




DANiel

-----Original Message-----
From: owner-sv-ec@server.eda.org [mailto:owner-sv-ec@server.eda.org] On
Behalf Of Rich, Dave
Sent: Thursday, January 17, 2008 8:07 AM
To: Surya Pratik Saha; sv-ec@server.eda.org; sv-bc@server.eda.org
Subject: [sv-ec] RE: [sv-bc] List of operators allowed on class object

This has been clarified in 1800-2008 under several mantis issues; 1594 and
1608 among them.

The only operators allowed are the equality, inequality and conditional
operators as well as the simple blocking assignment.

I think it was an oversight not to include logical operators. Any other
operator that exposes the internal representation of a handle should remain
illegal.

Dave


> -----Original Message-----
> From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org]
On
> Behalf Of Surya Pratik Saha
> Sent: Wednesday, January 16, 2008 9:59 PM
> To: sv-ec@server.eda.org; sv-bc@server.eda.org
> Subject: [sv-bc] List of operators allowed on class object
> 
> Hi,
> In SV 1800-2005 LRM, I did not see any list of operators to be allowed 
> for class object. If we consider the following case:
> module top;
>     class C;
>     endclass
> 
>     initial begin:b
>         C c;
>         if (!c) begin
>         end
>     end
> endmodule
> 
> Where '!' unary operator is used on class object. Is it allowed?
Though
> table 11-1 says '!' is allowed on integral and real type, whereas
class
> object is neither of them. Though most of simulators are passing for
the
> case. So my question is - what are the other operators are allowed on 
> class object.
> 
> --
> Regards
> Surya
> 
> 
> 
> 
> 
> --
> 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 Jan 17 01:13:48 2008

This archive was generated by hypermail 2.1.8 : Thu Jan 17 2008 - 01:14:22 PST