Forum Discussion

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

I am getting compiling error when I use Shift Right logic in VHDL by Quartus 6.2

Hi

I am getting compiling error "can not determine defination of operation" when I am using shift right or shift left logic command in VHDL by Quartus-II tools rev6.2. :confused:

is anybody can help me please? the command is correct based in VHDL code:

VIDOUT <= VIDOUT2 srl 1;

GFX_VIDOUT <= GFX_VIDOUT1;

Thanks.

-NR

15 Replies

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

    --- Quote Start ---

    Because of Frank's post, I changed to std_logic_vector. I got the error for that.

    --- Quote End ---

    Thanks, Frank and HDL Guru, for explaining the package part of this. I created my test case from a text editor template and didn't think to check the packages when I changed to std_logic_vector.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Oh you made my day, :) thanks a lot. Please let me update my code and run it again to see if I can compile or not, I'll update you soon.

    Thanks again,

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

    Thanks Frank, Brad and all,

    I used Frank's suggested code lines and did work with my STD_LOGIC_UNSIGNED. I could compile the code with no errors. I will do a small simulation later on to see my shifted data.

    Thanks again and you guys are awesome.

    What a nice web page is!

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

    Yes Frank.. That seems to be the best option when using VHDL.

    Regards

    Balu

    --- Quote Start ---

    Hello,

    I normally use explicite bit assignments instead of shift operaters in VHDL, e. g.

    shiftreg <= '0' & shiftreg(shiftreg'left downto 1); -- right shift

    Regards,

    Frank

    --- Quote End ---