Scicos Block
fr - eng


SHIFT Shift Bits

\epsfig{file=SHIFT.eps,height=90pt}

Contents

Palette

Description

This block shifts the bits of the input signal. In this operation the digits are moved to the right or to the left. The user can choose the rule to shifts the bits. It can be normal or cycle by setting the "Shifttype" parameter to "0" or "1".
When the Shifttype is 0, an arithmetic shift is applied to the input signal. In this case, the bits that are shifted out of either end are discarded. Zeros are shifted in on the right, in the case of left shift; in the case of right shifts, copies of the sign bit is shifted in on the left.
When the "Shifttype" is 1,a circular shift is applied to the input signal. In this case, the bits are rotated as if the left and right ends of the register are joined. The value that is shifted in on the right during a left-shift is whatever values was shifted out on the left, and vice versa.

Dialog box

\begin{figure}\begin{center}
\epsfig{file=SHIFT_gui.eps,width=360pt}
\end{center}\end{figure}

Default properties

Interfacing function

Computational function

See also

Authors

Fady NASSIF INRIA