[sv-bc] !, && and || operators allowed for virtual interface or event or chandle variables

From: Moumita <moumita_at_.....>
Date: Mon Mar 10 2008 - 00:50:41 PDT
Hi,

!, && and || operators are allowed for class handle variable as null can be 
assigned to any class handle variable.

And null can also be assigned to any virtual interface or event or chandle variable
So  !, && and || operators should be allowed for these variables too.
So if we have a testcase -
    I1 i1();
    virtual i1 vi1 = null;
    virtual i1 vi3 = null;
    chandle d, a   ;
    event e1, e2 = null;

    initial begin
        if (vi3 || vi1)  //|| operaor is used with virtual interface variable
	begin
	end 
        if( d && a)  //&& operator is used with chandle variable
	begin
        end 
        if(!e1) // ! operator is used with event varaible
        begin
        end
    end
endmodule

interface I1;
endinterface


Is there any issue for these cases?

Thanks and regards,
Moumita





-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Mar 10 00:57:45 2008

This archive was generated by hypermail 2.1.8 : Mon Mar 10 2008 - 00:57:55 PDT