我有一个用于加法器模块的简单测试台,但输入错误:
module adderTestbench;
wire [31:0] fromAdd;
adder lol(32'h00000000,fromAdd);
initial begin //forcing program to be sequential
#100; //wait 100
end //end begin
initial begin
$display("%h",fromAdd);
end
endmodule
module adder(addIn,addOut);
input [31:0] addIn;
output reg [0:31] addOut;
always @(addIn)
begin
addOut <= addIn + 32'h00000004;
end
endmodule
它显示xxxxxxxx
.
谁能解释为什么它不显示4,而是显示x?