Forum Discussion
Altera_Forum
Honored Contributor
14 years agostore LSB after shift right - vhdl
Hi, In my project I need to right shift an input vector by one. For example I have A=0101. Then right shift by one I get Q=0010. Now, I want to store the LSB of the input vector in this case is...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- with a register?
process(clk)
begin
if rising_edge(clk) then
store <= a(a'low);
end if;
end process;
--- Quote End --- Hi Tricky, Is it possible if I want to store the LSB value one by one (from different input vector) until reach 4 values. Then the output will be a vector of (3 downto 0). Did you get what I try to explain? Thanks