formatter test
This commit is contained in:
parent
1cb96c9f9a
commit
f0551ce34f
@ -1,29 +1,29 @@
|
||||
module andGateTB ();
|
||||
reg A, B;
|
||||
wire Y;
|
||||
reg A, B;
|
||||
wire Y;
|
||||
|
||||
andGate uut (
|
||||
.A(A),
|
||||
.B(B),
|
||||
.Y(Y)
|
||||
);
|
||||
andGate uut (
|
||||
.A(A),
|
||||
.B(B),
|
||||
.Y(Y)
|
||||
);
|
||||
|
||||
initial begin
|
||||
$dumpfile("andGate.vcd");
|
||||
$dumpvars;
|
||||
A = 1'b0;
|
||||
B = 1'b0;
|
||||
#10;
|
||||
A = 1'b0;
|
||||
B = 1'b1;
|
||||
#10;
|
||||
A = 1'b1;
|
||||
B = 1'b0;
|
||||
#10;
|
||||
A = 1'b1;
|
||||
B = 1'b1;
|
||||
#10;
|
||||
$finish;
|
||||
end
|
||||
initial begin
|
||||
$dumpfile("andGate.vcd");
|
||||
$dumpvars;
|
||||
A = 1'b0;
|
||||
B = 1'b0;
|
||||
#10;
|
||||
A = 1'b0;
|
||||
B = 1'b1;
|
||||
#10;
|
||||
A = 1'b1;
|
||||
B = 1'b0;
|
||||
#10;
|
||||
A = 1'b1;
|
||||
B = 1'b1;
|
||||
#10;
|
||||
$finish;
|
||||
end
|
||||
|
||||
endmodule
|
||||
|
@ -1,5 +1,7 @@
|
||||
module notGate (input A,
|
||||
output B);
|
||||
|
||||
nand nand1 (B, A, A);
|
||||
module notGate (
|
||||
input A,
|
||||
output B
|
||||
);
|
||||
|
||||
nand nand1 (B, A, A);
|
||||
endmodule
|
||||
|
@ -1,20 +1,20 @@
|
||||
module notGateTB ();
|
||||
|
||||
reg A;
|
||||
wire B;
|
||||
reg A;
|
||||
wire B;
|
||||
|
||||
notGate uut (
|
||||
.A(A),
|
||||
.B(B)
|
||||
);
|
||||
notGate uut (
|
||||
.A(A),
|
||||
.B(B)
|
||||
);
|
||||
|
||||
initial begin
|
||||
$dumpfile("notGate.vcd");
|
||||
$dumpvars;
|
||||
A = 1'b0;
|
||||
#10;
|
||||
A = 1'b1;
|
||||
#10;
|
||||
$finish;
|
||||
end
|
||||
initial begin
|
||||
$dumpfile("notGate.vcd");
|
||||
$dumpvars;
|
||||
A = 1'b0;
|
||||
#10;
|
||||
A = 1'b1;
|
||||
#10;
|
||||
$finish;
|
||||
end
|
||||
endmodule
|
||||
|
Loading…
x
Reference in New Issue
Block a user