Constructor
new AddSub(control, wordIn1, wordIn2, cIn)
Create a new AddSub device with the specified input busses, carry in
Parameters:
Name | Type | Description |
---|---|---|
control |
Tri | |
wordIn1 |
IOBus | |
wordIn2 |
IOBus | |
cIn |
Tri |
Properties:
Name | Type | Description |
---|---|---|
cIn |
Tri | the carry in VALUE |
adder |
WordAdder | the internal adder device |
control |
Tri | the control signal for addition or subtraction |
carry |
Tri | the carry out VALUE |
- Source:
Extends
Classes
Methods
compute()
Compute the result of the addition or subtraction of the two input busses
with carries
- Source: