Home
  • Home
  • Features
    • UML Object Diagrams
    • UML Statechart Diagrams
    • HDL Code Generation
  • Demos
    • Screencasts
    • Source Code
  • Support
    • Documentation
    • Screencasts
    • Customer Support
  • Try
  • Buy
  • Company
    • About
    • Services
    • Contact
  • QuickStart
  • Diagrams
    • Diagram UML View
    • Diagram HDL View
    • UML State Diagram
  • Dialogs
    • Add Input Pad Dialog
    • Add Output Pad Dialog
    • Add InOut Pad Dialog
    • Add State Input Dialog
    • Add State Output Dialog
    • Add Constant Dialog
    • Add Alias Dialog
    • Edit Comments Dialog
    • Expression Editor
  • Palettes
    • UML State Palette
    • UML Classes Palette
    • UML Documents Palette
    • HDL Palette
  • Properties Editors
    • Document Properties Editor
    • UML Object Properties Editor
  • Panels
    • Generation Console Tab
    • Navigator
    • Overview
  • UML Classes
    • BarrelShifter
    • Comparator
    • Counter
    • Decoder
    • Encoder
    • Johnson Counter
    • Latch
    • LFSR
    • Multiplexer
    • Parity
    • Register
    • Shift Register
Home | Documentation | UML Classes

BarrelShifter

 BarrelShifter

Also called: Logic Shifter, Combinational Logic Shifter.

Function

Rotates the input a specified number of bits in a specified direction.

Notation

"SHFT" = Rotate input by a number of bits in the specified direction.

Comments

Minimize MAX_SHIFT to conserve resources and maximize speed.

Parameters

Name

Description

WIDTH

Width of the D, Y and Q ports.

MAX_SHIFT

Maximum number of bits to shift (Minimize to conserve resources).

MAX_SHIFT_BITS

The Width of Bits2Shift, also the number of bits in MAX_SHIFT.

Tagged Values

Name

Variants

Registered

No, Yes

Direction

Left, Right, Both

Enable

UnUsed, Used

Inputs

Name

Width

Condition

Description

D

WIDTH

None

Data to be shifted.

Bits2Shift

MAX_SHIFT_BITS

None

Number of bits to shift.

Enable

 

Registered = No

if(Enable) Y = D SHFT Bits2Shift; else Y=D

ClockEn

 

Registered = Yes

if (ClockEn) Q = D SHFT Bits2Shift

ShiftLeft

 

Direction = Both

if(ShiftLeft) SHFT = Left; else SHFT = Right

 Outputs

Name

Width

Condition

Description

Y

WIDTH

Registered = No

D ROL Bits2Shift

Q

WIDTH

Registered = Yes

D ROL Bits2Shift

      

‹ UML Classes up Comparator ›

© Copyright 2009 Techniprise Inc. All rights reserved.