Ali’s Notes

Shifting using concatenation in VHDL

Posted in FPGA, vhdl by aghoras on September 29, 2011

A really cool way of building a shift register in a signal line is using the string concatenation operand:

shift_reg <= shift_reg( shift_reg'width -2 downto 0) & input_bit;

Follow

Get every new post delivered to your Inbox.