It shouldn´t be far away for a 4 bit register. Maybe someone can check this.
Klaus
- - - Updated - - -
Hi, (sorry for the wrong order of posts)
As said I´m not familiar with VHDL, but your solution rather looks like a 4 bit serial shift register....with "1" as input instead of "d". It looks weird to me.
This is just a 4 bit shift register that shifts in '1'. It can never be reset. What are you trying to achieve.?
It also has syntax errors.
You should try to compile the code first, and fix the syntax errors.