threshold-baugh-wooley

2x2 Baugh-Wooley signed multiplier. Handles two's complement multiplication directly.

Circuit

Inputs: A[1:0], B[1:0] (4 inputs, two's complement)
Outputs: P[3:0] (4 outputs, two's complement)

A range: -2 to +1
B range: -2 to +1
P range: -2 to +4

Baugh-Wooley Method

Handles sign extension by:

  1. Inverting partial products involving MSBs
  2. Adding correction constants

Avoids separate sign handling logic.

Truth Table

A B P
-2 -2 +4
-2 +1 -2
+1 -2 -2
+1 +1 +1

Parameters

Inputs 4
Outputs 4
Neurons 10
Layers 3
Parameters 44
Magnitude 42

License

MIT

Downloads last month
10
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Collection including phanerozoic/threshold-baugh-wooley