Files
2024-06-13 13:29:36 -07:00

17 lines
270 B
Verilog

`ifndef _or_v
`define _or_v
`include "nand.v"
`include "not.v"
module Or (input a, input b, output out);
wire a_bar;
wire b_bar;
Not u1(.in(a), .out(a_bar));
Not u2(.in(b), .out(b_bar));
Nand u3(.a(a_bar), .b(b_bar), .out(out));
endmodule
`endif