by JPLeRouzic · 6y ago · 0 comments
How could a NOR gate do one bit addition?
Add two bits ... XOR ... NOR
0 + 0 = 0...........0...........1
0 + 1 = 1...........1...........0
1 + 0 = 1...........1...........0
1 + 1 = 0...........0...........0
I.e.
XOR(x,y) = NOR(0, NOR(NOR(x,y), NOR(NOR(x,0),NOR(y,0)))))
(maybe not the most minimal version and maybe even wrong)Similarly, any collection of XOR gates is simply a summation mod 2.
For this ALU, you’d presumably write a subroutine that computed XORs in terms of NORs, and then use that as a primitive for building an adder.