Altera_Forum
Honored Contributor
14 years agoshifting in quartus ii
Hello,
I am using the following code in my design (c_repack_reg_size and c_k_eff are constant integers), trying to shift left by an unkonwn integer: signal repack_reg : std_logic_vector (c_repack_reg_size - 1 downto 0); signal repack_reg_ind : integer range (c_repack_reg_size - 1) downto 0; repack_reg(c_repack_reg_size - 1 downto c_k_eff + repack_reg_ind + 1) <= repack_reg( c_repack_reg_size - 1 - c_k_eff downto repack_reg_ind + 1); quartus gives me an error saying that the right bound of repack_reg must be constant. what is the correct and most efficient way to perform the wanted shift? Thanks, Omer