# How Do I Expand the Divider?

I'm trying to make a 128-bit divider in Logisim using Logisim's built-in arithmetic library. How do connect the dividers so that I can work with division of greater than 32-bits?

What I have considered:

1. Create the divider from logic gates (takes too long and would crash the simulation).
2. Write my own divider library (I don't know Java or the Logisim source code that well and I'm still stuck with the original problem).
3. Work with the dividers like I did the multipliers, but chain them in the reverse order (is that even plausible?).
4. Write an application to generate the divider (the resulting circuit would crash the simulation).

I might be able to provide a screenshot of what I described for #3 with my multiplier if I need to clarify that point.

Edit: Here is what I've come up with so far based on the answer I got: • You should read this article about division algorithms first: en.wikipedia.org/wiki/Division_algorithm Then think about how to implement such an algorithm for 128 bit operands in Logisim. But I don't believe using a library divider for 32 bit would help you. – Uwe Jan 10 '17 at 10:39
• It looks like I will need to forward the clock signal to the divider. – Timothy Chapman Jan 10 '17 at 13:49
• You could try to implement a clocked divider, calculating one bit at a time (= clock). – the busybee Aug 17 '19 at 21:39
• I've already come up with this solution and one that's similar. A [shift->subtract] operation per clock cycle or multiple [shift-subtract] operations per clock cycle. The number of these operations equals the bit width of the number with a counter to keep track of how many clock cycles are left. – Timothy Chapman Aug 29 '19 at 17:42