diff --git a/iverilog/nand2tetris/nands/andGateTB.v b/iverilog/nand2tetris/nands/andGateTB.v index 1eee548..16d40e1 100644 --- a/iverilog/nand2tetris/nands/andGateTB.v +++ b/iverilog/nand2tetris/nands/andGateTB.v @@ -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 diff --git a/iverilog/nand2tetris/nands/notGate.v b/iverilog/nand2tetris/nands/notGate.v index 1117bce..7aa9515 100644 --- a/iverilog/nand2tetris/nands/notGate.v +++ b/iverilog/nand2tetris/nands/notGate.v @@ -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 diff --git a/iverilog/nand2tetris/nands/notGateTB.v b/iverilog/nand2tetris/nands/notGateTB.v index b0e3955..b04f177 100644 --- a/iverilog/nand2tetris/nands/notGateTB.v +++ b/iverilog/nand2tetris/nands/notGateTB.v @@ -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