Chargement…
Chargement…
Operands x and y are 12-bit unsigned integers.
Behavior
mode=0: s receives the low 12 bits of x+y; ovf_unf receives the carry-out.mode=1: s receives x-y modulo 4096; ovf_unf is 1 when x<y.| Signal | Direction | Width | Description |
|---|---|---|---|
x, y | Input | 12 bits | Unsigned operands |
mode | Input | 1 bit | 0 addition, 1 subtraction |
s | Output | 12 bits | Sum or difference |
ovf_unf | Output | 1 bit | Overflow or underflow |