|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
Hi all,
I have a simple problem about the verilog. Please have a look at the following codes.
Code:
module test;
initial begin
bit [3:0] a;
a = 4'b1000;
if (~a)
$display("t1");
else
$display("t2");
end
endmodule
Simulated in Questa, "t2" is printed.
My question is why "t2" is printed? As I thought, ~a = 4'b0111, so "t1" should be printed.
Thank you for your replies.
|
|