Parameters

Parameter Type Required Description
LPM_WIDTH Integer Yes

Width of the data[] and result[] ports. Any positive integer greater than 1.

LPM_WIDTHDIST Integer Yes

Width of the distance[] input port. The LPM_WIDTHDIST parameter specifies the width of the distance port. The values on the distance port normally range from 0, which is "no shift", to (LPM_WIDTH-1) which is the maximum meaningful shift. The typical value assigned to LPM_WIDTHDIST is "the smallest integer not less than log-base-2(LPM_WIDTH)" or [log-base-2(LPM_WIDTH)]. Any value on the distance port greater than LPM_WIDTH-1 results in an undefined (X) logic level.

LPM_SHIFTTYPE String No

Specifies the shifter type. Values are "LOGICAL", "ROTATE", "ARITHMETIC", and "UNUSED". If omitted, the default is "LOGICAL". The sign bit is extended for "ARITHMETIC". For a "LOGICAL" right shift, 0s are always shifted into the MSB.

LPM_PIPELINE Integer No

Specifies the number of clock cycles of latency associated with theresult[]output. A value of zero (0) indicates that no latency exists, and that a purely combinational function is instantiated. The default is 0 (non-pipelined). You cannot specify a value for theLPM_PIPELINEparameter that is higher thandistance[].