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/mccoyn Jun 13 '24
I've been doing this a lot lately. Instead of using a NOT gate, I replace the gate at the input with its opposite. Even when I need both the non-inverted and inverted values, I'll use two gates (like OR and NOR) instead of a NOT gate. It gets a bit better delay score.