Thanks for quick response. Beacuse of the security policy of my company, I cannot publish my codes on the internet.
I used Modelsim simulator and it seems to work fine. I will continue with it