CPU Design in Xilinx Spartan 3E

Mar 08, 2012 8 Replies

Hello Every body,



I have written a code in VHDL for 8 bit simple cpu and also have the test bench for this.



The Opcodes are also written and implemented. I also have downloaded the bit files in Spartan-3E kit. It glows the done led and shows the configuration successfully completed. Now my query is how can i test this cpu? Meaning can i write a code to check the cpu is working properly? I want to check the output in LCD or LEDs or may be in the terminal (hyper terminal) of PC.



I have no clue on this how to do this. It will be highly appreciated if anybody an help.


Thank you.


--------------------------------------- Posted through

formatting link


for a case of using normal cpu, there are some programming pins on that cpu to allow your cpu programmer to load the software into the cpu. in this case where you make a cpu out of fpga, you could assign some fpga pins as cpu programming pins, and let your cpu programmer "talk" to the cpu thru those pins.

formatting link
formatting link

is an example for a simple SPARTAN-3E cpu using the internal memory as program memory and leds as output.

Thank you indeed, but i am unable to understand the led code and the corresponding hardware.

could you please explain it. The board I have with me is Spartan-3E starter kit from diligent, can i use the on board led?

--------------------------------------- Posted through

formatting link

I understand, you are talking about serial tx and rx pins, yes that can be done,

could you please tell me how can i do that? do i need to write the ucf file for that, if you can explain it will be a great help for me. can you please give an example. thank you

--------------------------------------- Posted through

formatting link

In the documentation of your board, you should find the pin number to which the LED is connected. Drive this pin with the output of a Flip-Flop and use the CPU to modify the content of the Flip-Flop.

Hi, Have you done any simulation to verify your design? debugging on the board will be very hard to do. Moti

test

completed.

will be very hard to do.

yes i have done the simulation through a test bench, and getting perfect behavioral simulation.

My code is simple it adds two integer and stores the result in memory. In the simulation, I have checked the memory and its right. Can i check it on Spartan-3E starter kit through led, lcd or the hyperterminal of pc

--------------------------------------- Posted through

formatting link

Just a suggestion, why not rewrite your testbench to be synthesizable so it= become a hardware tester (or BiST)? You can then test your design using a = logic analyser (I suggest embedded analysers like Altera's SignalTap or Xil= inx's ChipScope). When the signals appearing on the logic analyser correlat= e well with your simulation waveforms, you can be pretty sure your design i= s working.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required