In reply to dave_59:
module nand_1();
logic a,b;
logic y;
initial
begin
a=0;
b=0;
y= ~&b;//y=b ~& b;
$display(“y=%b”,y);
end
endmodule
result:
y=1
This is like y=b ~& b;
for y= a~& b;
after run
Invalid use of unary operator ‘~&’
“testbench.sv”, 10: token is ‘;’
y= a~&b;
^