lawrancej / logisim

Git fork of Logisim code base
http://www.cburch.com/logisim/
GNU General Public License v3.0
211 stars 104 forks source link

Added Pow function to arithmetic gates #95

Closed Mechtecs closed 8 years ago

Mechtecs commented 9 years ago

I will do a bigger PR next time but yeah. Here it is! :) I hope the svg is fine for you :)

drew-buckley commented 8 years ago

I just tested the Pow component, and it appeared to work as intended. However, the wire inputs are counter intuitive. The bottom input which looks as if it corresponds to the base value due to the component's graphic (and the fact that most people would assume the base number to be the bottom) is actually the exponent value input. I personally think the inputs should be inverted so that the exponent input is on top and and the base input is on the bottom.

Mechtecs commented 8 years ago

I switched the input and tested it. It works like you want it right now! Maybe lawrancej will add some other collaborators at some point. :)