Skip to content

Commit 94094e8

Browse files
authored
Create not.v
1 parent e33cce5 commit 94094e8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

examples/verilog/not.v

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module visual_circuit(
2+
input wire input1,
3+
output wire output1
4+
);
5+
6+
// Internal wires
7+
wire not_out1;
8+
9+
// Logic implementation
10+
assign not_out1 = ~input1;
11+
assign output1 = not_out1;
12+
13+
endmodule

0 commit comments

Comments
 (0)