Re: Microcontroller implementation with xilinx spartan3 xc3s
Hello libintt,
First of all thank you very much for showing interest.
Well post route simulation sounds a very good idea, but now i am at home so i will test it tomorrow when i go to my lab and will let you know about it.
Regarding reset, first i configured reset for my system same as reset for xilinx kit but it did not work out so i assigned reset to one of the input pins. So i am giving reset to my system using on board DIP switch, Is there any problem with this?
And yes, I am using block RAM memory. Two memory blocks are entirely RAM memory(64 bytes each with 6 bit address line). There are five ROM memory blocks(two are 8 bytes, two are 256 bytes and one is 64 bytes) and finally i have main memory block (64 Kb) with first 32 kb of ROM memory and next 32 Kb of RAM memory.
For using memory blocks as ROM I have initialized fragments of concern with certain values rest of it i have kept undefined as i wont be accessing it for given application. And i have kept just read signal and no write signal. I assume this is correct way of treating it as ROM memory. For RAM, it is updated by ALU and read afterwards when required.
And i have general purpose register file and i have coded it on similar lines as RAM.
I hope this helps you understand it quite well. If not, please find attached .rar archive with code for memory blocks