SMOK

SMOK Component Guide

Last modified: April 12, 2005
Sloop Cebollita
  CSE Home  About Us    Search    Contact Info 
SMOK Package Components SMOK Debug Components
Name Shifter
Symbol
Remarks The output is the result of shifting the Data input the number of bits given by the Amt input. Shift direction is given by the L/R input: 0 for left, 1 for right. Shifts do not sign-extend. A shift amount of zero is legal but is a no-op. Shift amounts greater than the data width have unpredicatable results.

Note: To shift a constant amount, use either a BitCombine component (to shift left) or simply set the bit extract paramenters of the input port receiving the shifted bits (to shift right). To sign-extend, use a SignExtend component.

User-Settable Attributes
  • Name
  • Width - 1 to 32 bits
  • Shift amount