Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

VHDL Barrel Shifter using SLL and SRL

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
Hello,

In VHDL - is it allowed for the argument to the right of the SLL and SRL operators to be a signal (and not a constant) ?
 

The quick answer is "Yes" (wondering why you didnt just try it!)
SLL and SRL are functions, so all function parameters are constants. Constant function paramters can be connected to objects of any class (signal/variable/constant). Their values are copied into the function when it is called.

Dont expect good synth results if you try and do variable shifting though.
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
(wondering why you didnt just try it!)
Oh sorry,
Forgot to mention - I did simulate it before posting...and it worked
What I really wanted to ask is about the synthesis support of tools - which you also answered...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top