摘要 |
In a barrel shifter, carry-including rotation operation is implemented only by hardware in such a way that: an N-bit data is shifted by a given shift count through selectors in response to shift signals to obtain a 2N-bit shifted data; a carry is inserted behind a least significant bit of the shifted data through AND gates responsive to a carry signal and a carry rotate signal; and logical sums of each of N lower significant bits of the sN-bit shifted data and each of (shifted by one bit in the higher significant direction) (N-1) higher significant bits thereof are found through selectors and OR gates in response to a carry rotate signal to obtain an N-bit rotated data with carry.
|