* embedded system emulator help
@ 2005-03-07 17:06 Imran Shafiq
2005-03-09 20:05 ` Frank Ch. Eigler
0 siblings, 1 reply; 2+ messages in thread
From: Imran Shafiq @ 2005-03-07 17:06 UTC (permalink / raw)
To: sid
Hi ,
I want to use SID in my master's thesis.
I am interested in developing an ECU emulator for
automotives.
automotive subsystems are comprised of [ECU]
Electronic Control Units (e.g fujitsu mb90f598,
Powerpc mpc 566) connected through a BUS system
usually CAN.
Application code will be compiled through ECU specific
compiler and the hex code would be fed to my
simulator.
So does that means I have to implement the whole
instruction set for every ECU??
I also have to simulate UART, Timer etc
It should be possible to check the data on the bus
So that would mean I have to implement the CAN
protocol??
Simulator should also report stack overflows or memory
limitations.
IS all this possible with SID considering the fact
that i have to do it in 5 months :) .
Where can i start with an example. any pointers?
Best Regards,
Imran.
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: embedded system emulator help
2005-03-07 17:06 embedded system emulator help Imran Shafiq
@ 2005-03-09 20:05 ` Frank Ch. Eigler
0 siblings, 0 replies; 2+ messages in thread
From: Frank Ch. Eigler @ 2005-03-09 20:05 UTC (permalink / raw)
To: Imran Shafiq; +Cc: sid
[-- Attachment #1: Type: text/plain, Size: 2230 bytes --]
Hi -
On Mon, Mar 07, 2005 at 09:06:31AM -0800, Imran Shafiq wrote:
> [...] automotive subsystems are comprised of [ECU] Electronic
> Control Units (e.g fujitsu mb90f598, Powerpc mpc 566) connected
> through a BUS system usually CAN. [...] So does that means I have
> to implement the whole instruction set for every ECU??
That's right. If you want to simulate software compiled for a given
platform, and a model of that platform is not already available, then
there is some coding to do. I believe there is no PowerPC model in
sid at the moment.
> I also have to simulate UART, Timer etc
Some UART and timer models are already included in sid. They may be
useful as is, or may serve as a basis for derivation.
> It should be possible to check the data on the bus So that would
> mean I have to implement the CAN protocol??
Well, one doesn't simulate a "protocol" per se, rather entities that
perform it. You would need to pick a level of abstraction at which
the simulator should model a CAN system. This could be at the
controller level, wire level, perhaps even some software level. This
allows you to trade of hardware fidelity versus modeling simplicity.
> Simulator should also report stack overflows or memory
> limitations.
Some of this is often best done by instrumentation added by the
compiler (check gcc's -fstack-limit options). Or a simulator could
also model "missing" physical memory that would trigger bus errors
upon attempted access. Think of the latter as mprotect(PROT_NONE).
> IS all this possible with SID considering the fact that i have to do
> it in 5 months :) .
Probably, if you pick another CPU architecture that is already
well-supported in sid, such as ARM. If nearly all of your software
is to be written in C, you could argue that the difference in the
processors is almost immaterial.
> Where can i start with an example. any pointers?
I would start with one of the classic sid configurations: running an
application linked with the eCos RTOS on a model of a board such as
the ARM PID. Analyze the application, eCos linkages, memory and
peripheral layout, and the corresponding sid configuration.
- FChE
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-09 20:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-07 17:06 embedded system emulator help Imran Shafiq
2005-03-09 20:05 ` Frank Ch. Eigler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).