Forum Discussion
Altera_Forum
Honored Contributor
8 years agoI cant find any mistake but my compiler says its a mistake
Dear all, Please help me out her. counter <= counter + '1'; this is my instruction this is my error. So what is the mistake in it? Error (10327): VHDL error at led_blink.vh...
Altera_Forum
Honored Contributor
8 years agoyour problem is unrelated to addition (which requires unsigned type if still want to add 1). your shift should shift input bit through 4 stages:
on the clk edge: sr <= sr(2 downto 0) & sr_in;