MyNOR: Single board computer that uses a single NOR gate as its ALU
1–10 of 70 posts
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#2How 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
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#3Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#4I wonder how this ALU works. From what I remember ALUs use lot of XOR gates because an adder is simply a network of XOR gates with carry propagation. 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
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.
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#5I wonder how this ALU works. From what I remember ALUs use lot of XOR gates because an adder is simply a network of XOR gates with carry propagation. 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
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#6I wonder how this ALU works. From what I remember ALUs use lot of XOR gates because an adder is simply a network of XOR gates with carry propagation. 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
NOR (like NAND) is a universal logic gate. You can build any other logic gate out of just NORs. 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.
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#7I wonder how this ALU works. From what I remember ALUs use lot of XOR gates because an adder is simply a network of XOR gates with carry propagation. 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
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#8I wonder how this ALU works. From what I remember ALUs use lot of XOR gates because an adder is simply a network of XOR gates with carry propagation. 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
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#9Earlier quoted context omitted.
NOR (like NAND) is a universal logic gate. You can build any other logic gate out of just NORs. 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.
Yes, but this thing advertises that it uses a single NOR gate as an ALU.
Re: MyNOR: Single board computer that uses a single NOR gate as its ALU
#10I wonder how this ALU works. From what I remember ALUs use lot of XOR gates because an adder is simply a network of XOR gates with carry propagation. 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)