nand2tetris
This commit is contained in:
14
iverilog/nand2tetris/nands/xor/xorGate.v
Normal file
14
iverilog/nand2tetris/nands/xor/xorGate.v
Normal file
@ -0,0 +1,14 @@
|
||||
module xorGate (
|
||||
input A_i,
|
||||
input B_i,
|
||||
output F_o
|
||||
);
|
||||
|
||||
wire nand1_out, nand2_out, nand3_out;
|
||||
|
||||
nand nand1(nand1_out, A_i, B_i);
|
||||
nand nand2(nand2_out, A_i, nand1_out);
|
||||
nand nand3(nand3_out, B_i, nand1_out);
|
||||
nand nand4(F_o, nand3_out, nand2_out);
|
||||
|
||||
endmodule
|
Reference in New Issue
Block a user