第1个回答 推荐于2017-09-24
`timescale 1ns/1ps
module test();
reg a;
reg d;
wire b;
wire c;
wire e;
reg clk;
always #10 clk = ~clk;
initial begin
clk =1'b0;
d = 1'bx;
#100;
a = 1'b1;
#100;
a = 1'b0;
#100;
d = 1'bz;
#100;
$finish;
end
pulldown(b);
pulldown(c);
pulldown(e);
assign b = a;
assign e = d;
always@(posedge clk) begin
$display("@%0t a = %b b = %b c= %b d = %b e = %b ",$realtime,a,b,c,d,e);
end
endmodule