-
Notifications
You must be signed in to change notification settings - Fork 2
x32_sub
DSPsandbox edited this page Oct 31, 2019
·
2 revisions
SUBTRACTION arithmetic with clear logic. Use x32_subNoOverflow to avoid overflow.
Name | Direction | Width | Comment |
---|---|---|---|
in0 | Rx | 32 bit | |
in1 | Rx | 32 bit | |
clr | Rx | 1 bit | |
out | Tx | 32 bit | out=in0-in1 IF clr=0 out=0 IF clr=1 |
1 clk cycle.