What about a simulator for the Propeller?
Propelero
Posts: 5
Hello!
I'm new at this forum. I'm a student and thinking about purchasing a Propeller Demo Board, and interested in using this microcontroller for a real-time embedded control system i have in mind, but i haven`t found yet anything similar to an emulator of this chip, and also haven´t read anything in this forum about it. So my question is... is there a project about making a simulator of the Propeller chip, or in anybody's mind? It would help me a lot for my work, because i need to see how does the Propeller use the memory in run-time.
Thanks a lot
I'm new at this forum. I'm a student and thinking about purchasing a Propeller Demo Board, and interested in using this microcontroller for a real-time embedded control system i have in mind, but i haven`t found yet anything similar to an emulator of this chip, and also haven´t read anything in this forum about it. So my question is... is there a project about making a simulator of the Propeller chip, or in anybody's mind? It would help me a lot for my work, because i need to see how does the Propeller use the memory in run-time.
Thanks a lot
Comments
Even at a basic level, and assuming the propeller instruction set matched that in the PC CPU, you'd need a processor running at 640Mhz even without the time required task switching. The fact that you would have to task switch would mean that the emulated cogs wouldn't be truly in sync, which would be a problem for many of the applications people are using the Propeller for. By the time you factor in instruction set and hardware (hub, PLL, video etc.) emulation, and any debugging interfaces that would be required to make an emualtor useful, I'd say it'd be completely out of the question.
A single (or maybe even dual) cog simulator running at full speed should be possible, although how much use it'd be I don't know. I guess you could have a non-realtime simulator which would be good for educational purposes.
Here's my take on this situation. I just use the TV_text object to display 'debugging' information. See attachment. I have two Props interfaced to each other and to two other pcbs; had to use two Props as there are more than 32 I/Os to deal with.
This lets me 'see' what is happening inside the Prop, until I can get far enough along with the code. Eventually, some of the 'debug' stuff will remain; especially if it isn't slowing down any signalling.
Just a hint. The old BS2 debugging scheme; display 'something' if the program gets to a particular point(s). Might just comment them out once things work OK and you have peace of mind things are right. Or delete; or 'reuse' parts of the code for other debug points. Better than blink a LED in many cases. My $0.02.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
h.a.s. designn
Thank you
If you DO find what you're looking for, please let this forum know about such a 'tool'. Please.....
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
h.a.s. designn
Nico Hattink