Chargement…
Chargement…
An add-six correction turns the binary sum into valid BCD.
Behavior
a and b range from 0 through 9.carry_out.| Signal | Direction | Width | Description |
|---|---|---|---|
a, b | Input | 4 bits | BCD digits |
carry_in | Input | 1 bit | Decimal carry-in |
sum | Output | 4 bits | Result BCD digit |
carry_out | Output | 1 bit | Decimal carry-out |