Running Program on Processor
Added by Dan Snyder over 1 year ago
I design a simple single cycle processor which will eventually become superscaler out of order but I'm trying to test the bare bones design first. I designed the architecture around the MIPS I ISA (including a couple MIPS II instructions as well). Basically what I have done is compile a c++ program, extract the hex hump from the binary and feed it into my processor's "memory" and now I want to see if the program works. Right now I just have a simple "Hello World" program to run but I don't know exactly how to do it. I can run my own very small test program by just making a simple state machine in c++ which loads a new instruction for each clock cycle. Do you have an incite as to how I would do this? I can run my c++ top file but how do I go about debugging to see of the test program is working? I assume I don't just go line by line through all the instructions in memory. Could someone explain to me the process flow of doing this? If any more info is needed I'm happy to give it.
Replies (2)
RE: Running Program on Processor - Added by Wilson Snyder over 1 year ago
Sorry, I don't understand the problem. I suspect you need a general tutorial on how people write CPU self tests, loaders, instruction logfiles and the like, try searching and/or asking on http://verificationguild.com/
RE: Running Program on Processor - Added by Dan Snyder over 1 year ago
Thanks for the reference. I've sense determined what I need myself actually. I can run my processor and trace registers and memory lines and compare that operation cycle by cycle with a gold standard of the program I've loaded to verify correctness. I'm trying to use SPIM to single step through my standard with some issues that I think are related to my cross compiler.
(1-2/2)
![[logo]](/img/veripool_small.png)