Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

LPM Shift Reg ( Shifting Issues)

Hi all,

I have read the megafuction for the LPM Shift Reg.

Is it possible to set the amount of shifts you want in the shift register?

I plan to implement a left shift by 6 on a shift register for my design.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi all,

    I have read the megafuction for the LPM Shift Reg.

    Is it possible to set the amount of shifts you want in the shift register?

    I plan to implement a left shift by 6 on a shift register for my design.

    --- Quote End ---

    Do you actually need a shift, or can you get the same benefit by just wiring differently? There's no real reason to use a shift megafunction if the shift stays constant; just wire the bits you want to the MSB, and fill the lower bits with whatever else you want.