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 agoWhy not just create a wide shift register and tap off it accordingly. For example if i had a 4-bit input and I wanted to right shift and retain the LSB I would create a 5-bit shift register where bits [4:1] represent the result and [0] represents the LSB that was shifted out of the result. If you wanted to do this over and over then just keep shifting and pluck that bit [0] out.