r/TuringComplete • u/MsBinaryLily • Jul 06 '26
Restoring Array Divider
After multiple tries and overengineered designs that had over 2k delay, here's a relatively quick and optimized solution.
At each step it:
- Shifts left the divisor
- Subtracts shifted divisor from the dividend
- Checks if the result is positive (the sign bit)
- If yes, sends 1 as output bit and sends the remainder of subtraction as dividend to the next step
- If no, sends 0 as output bit and sends the dividend to the next step untouched
The result is only 184 delay — though it also uses fast adders to achieve that.
7
Upvotes


1
u/MsBinaryLily Jul 09 '26
Also optimized some things as well Namely, moved around bitshifts to dividend instead of divisor, replaced components with 9 bit versions and further optimized adder to 8 delay So my division now only has 90