Forum Discussion
15 Replies
- Altera_Forum
Honored Contributor
I love all of you :)
- Altera_Forum
Honored 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
Honored 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
Honored 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
Honored 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.
Regards, Frank --- Quote End ---shiftreg <= '0' & shiftreg(shiftreg'left downto 1); -- right shift