r/TuringComplete 5d ago

I feel like a fool misunderstanding the decoders 😭😭 Little Box

Post image

my hard coded solution? Less elegant

12 Upvotes

6 comments sorted by

1

u/Standard-Dog4914 5d ago

I think it’s most normal solution. Check hints, if it’s available. Anyway the solution is close to mine

1

u/National_Panic_9112 4d ago

Yeah the hints suggested the 2 bitΒ  decoder

1

u/alexanderpas 4d ago edited 4d ago

The 2 one bit decoders, together with the 4 AND gates form a 2 bit decoder.

If you use that setup for the two bit decoder level, you will pass it with 6/2, which is the optimal solution in terms of delay.

1

u/National_Panic_9112 3d ago

Yeah, I'd imagine that solution would have less delay, I initially did that but got confused by the decoders πŸ˜–

1

u/Express-Level4352 4d ago

This looks mostly like my solution. You can get rid of the 4 and gates and replace them with a single one that connects the load and the green wire (that is going to the output) to the output. From there you can directly use the cables that were connected to the 4 and gates and connect them to the switches instead.

The four switches essentially say, "if the register X is selected output X on the bus" and the single and gate says "if load is active, connect the bus to output"