Skip to content

Commit af2ea21

Browse files
authored
Create or.v
1 parent 9ea40cb commit af2ea21

File tree

1 file changed

+14
-0
lines changed
  • examples/verilog

1 file changed

+14
-0
lines changed

examples/verilog/or.v

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

0 commit comments

Comments
 (0)