Hi Oppenheimer,
I am sorry I dont have enought time to correct your code.
I think you should start understanding what VHDL stands for. It is used to define an electronic circuit. So you need to have minimal basics in electronics.
VHDL has nothing to do with any computing langage, the purpose is...