10.1.4.2 Adder/Subtractor I/O Description
The following table lists the I/O description of an Adder/Subtractor.
| Port Name | Size | Type | Required/Optional | Function |
|---|---|---|---|---|
| DataA | WIDTH | Input | Required | Input Data |
| DataB | WIDTH | Input | Required | Input Data |
| Cin | 1 | Input | Optional | Carry-in |
| Sum | WIDTH | Output | Required | Sum |
| Cout | 1 | Output | Optional | Carry-out |
| Addsub | 1 | Input | Required | Addition (AddSub=1) or subtraction (AddSub=0) |
