Closed pwang7 closed 2 years ago
Unfortunately, it's not that simple. Look under the "Input Pipeline for B" section. Because of complications with carry bits, the B input is "manually" negated if add_sub is set to 1. Thus, the Adder_subtractor_Binary is always adding.
Unfortunately, it's not that simple. Look under the "Input Pipeline for B" section. Because of complications with carry bits, the B input is "manually" negated if add_sub is set to 1. Thus, the Adder_subtractor_Binary is always adding.
Sorry, my bad, will close this PR.
BTW, would you like add some testbench? If you like, I can add some.
No worries. I'm glad you are looking. :) I would rather leave testbenches out of the library. They go stale very very quickly. Please write any testbench you need, and if you find a bug, then the bugfix is great PR material. Thanks!
The
Adder_Subtractor_Binary_Multiprecision
module has an input add_sub, So theAdder_Subtractor_Binary
instance inside it should set itsadd_sub
using the outer module input.