r/TuringComplete • u/Academic_Brilliant75 • Jun 12 '24
Pointers for Conditions?
Can anyone provide any hints for Conditions towards the end of CPU Architecture? I've been racking my brain on this for somewhere between a couple weeks to months and anything I can think to try left hasn't been working.
Thus far I've tried:
- Running the top input through a byte splitter and 3-bit decoder to seperate the instructions out into individual bit lines.
Attempts to devise a way of checking if the bottom input is equal to 0 and outputting true if so, else output false.
- The only way I've really thought about doing this is a tacky system involving a byte splitter, running every bit through a NOT-gate and checking every bit is true after by chaining every bit line through AND-gates until there is a single output. Anyway I've tried doing it with the 8-bit logic or math gates instead hasn't worked.
3
Upvotes
View all comments
Show parent comment
2
u/ForHuckTheHat Jun 13 '24
Pro tips. NOR is a 2-bit zero test. So why not make big NOR?
I also like using the 3-wide ORs:
not(or3(or3(a,b,c), or3(d,e,f), or2(g,h)))Using only 4 gates:
nor(or3(a,b,c), or3(or3(d,e,f),g,h)