[source]

Entity arith_shifter_barrel

BITSInput[BITS - 1 downto 0]std_logic_vectorShiftAmount[log2ceilnz ( BITS ) - 1 downto 0]std_logic_vectorShiftRotatestd_logicLeftRightstd_logicArithmeticLogicstd_logicOutputstd_logic_vector[BITS - 1 downto 0]

Block Diagram of arith_shifter_barrel

This Barrel-Shifter supports:

shifting and rotating right and left operations arithmetic and logic mode (only valid for shift operations)

This is equivalent to the CPU instructions: SLL, SLA, SRL, SRA, RL, RR

Generics

Name

Type

Default

Description

BITS

positive

32

Ports

Name

Type

Direction

Description

Input

std_logic_vector

in

ShiftAmount

std_logic_vector

in

ShiftRotate

std_logic

in

LeftRight

std_logic

in

ArithmeticLogic

std_logic

in

Output

std_logic_vector

out