Skip to contentSkip to conversation

SystemC hw simulation in qemu

Qemu-devel Alessandro Corradi 2 participants 4 messages Jun 18, 2006 – Jun 29, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,
I've tried to create my simple hw and it's ok. Now my teacher tells me that i must use a hw description written in SystemC and plug in Qemu. Have you got any idea to do it? Can somebody link me to documents where I can find info?

#1 lore raw
Quoted 3 lines · Alessandro Corradi

Hi all,
I've tried to create my simple hw and it's ok. Now my teacher tells me that i must use a hw description written in SystemC and plug in Qemu. Have you got any idea to do it? Can somebody link me to documents where I can find info?

Hi,

If you do that I am interested to see the results. Use a simple device such as the serial port (hw/serial.c) as an example.

Regards,

Fabrice.

#2 lore raw

2006/6/20, Fabrice Bellard <[email protected]>:

Quoted 8 lines
Quoted 5 lines · Alessandro Corradi

Hi all,
I've tried to create my simple hw and it's ok. Now my teacher tells me that i must use a hw description written in SystemC and plug in Qemu. Have you got any idea to do it? Can somebody link me to documents where I can find info?

Quoted 9 lines

Hi,

If you do that I am interested to see the results. Use a simple device such as the serial port (hw/serial.c) as an example.

Regards,

Fabrice.

The idea is to create a SystemC wrapper file in hw dir, where there is the code for connect via socket to a SystemC process in host machine. The problem is that I write my simple hw, but instead use io address such as 0x378 i need to use memory address, so I can use it in every virtualizzation (i386, mips etc...).
Where can I look for it?

Thanks
Ale

#3 lore raw

Can someone help me about this? I've looked at exec.c source for understand how io memory addressment go but i don't know if it's the right place to start.
I see that in serial.c source there are IO and memory map function for read and write, and serial_mm_read/write functions use serial_read/write functions. The difference is the base address I see... right? Where I can find this IO address?
And there is a serial_mm_init function. Is it used only all emulation except i386 or can I use it for i386 too? In other words... can I use IO memory address for serial port in 386 emulation or not?

Thanks
Ale

Ps: Be patience, I am only a poor student ;)

2006/6/28, Alessandro Corradi <[email protected]>:

Quoted 10 lines

... The problem is that I write my simple hw, but instead use IOddress such as 0x378 I need to use memory address, so I can use it in every virtualizzation (i386, mips etc...).
Where can I look for it?

Thanks
Ale