Dude, if this is your homework, it's better you take from your friend. If it is work, this is your business. But if you really need help, try post some code, even if wrong, to we correct you. But, you are asking the code already implemented, without a little effort of you. Please, this is a forum to discuss, to learn, not to give code. Please, my friend, try different. I know you have goo intentions and don't take this to personal side.
Best Regards
Breno
P.S - you can look in shift register theory. Also, you probably will need a clock, to sync thing. Good vhdl practices programming uses a clock to work as sync mode.