This block realizes a left shift circulate integer modulo function.
The output is the left shift circulate N bit of the input word,
define by a length of Nbit bits using the 2 complement arithmetic notation.
Then, the values of the output are comprise between
.
This function is described by a nonconstant amplitude. Following the number
of shift, this nonlinearity takes different slope.
Fig.1 shows an example for a given length (Nbit=5), for one shift and two shift.
This function is modelled with binary operators of C language.
First block begins to convert input value, in an unsigned integer value.
After it realizes N times the left shift.
Table.1 shows necessary stages to realize this operation
for an integer value defined by a length of 8 bits.
Stages | Operations | Decimal | Binary |
---|---|---|---|
1 | Read unsigned integer value | 150 | 1001 0110 |
2 | Left shift binary | 300 | 1 0010 1100 |
3 | Tronquate to 8 bits | 44 | 0010 1100 |
4 | Addition of the tronquate bits | 45 | 0010 1101 |