> I'm Ong Wen Jian, undergraduate student from Malaysia and I'm currently
> modeling a GPU to hook into M5 simulator. I have some problem in understand
> the interfacing of my GPU model with M5 simulator and I'm modeling a PCI
> based GPU.
>
> The problem that I face now is, from the tutorial, it is understood that I
> first I need to create the SimObject. Is the pseudocode below in creating
> the SimObject is correct ??
> class GraphicDevice (PCIdevice) :
> type = 'GraphicDevice'
> abstract = True
> interface = Port("Graphic Interface")
>
> class TDFXGPU (Graphic Device) :
>
> #All PCI config space configuration goes here..
>
> Is that code would be sufficient enough ?? And is there any start up code
> that I could use for me to use to 'hook' my GPU model into the M5 simulator
> ??
This is basically correct, the parameters you need for your module
would also go in that declaration. You'll also need to add a
"SimObject('myfile.py')" line to a SConscript. You of course need to
write a whole lot of C++ code to model your device. Look at the other
devices in the src/dev directory to get an idea of what needs to be
done.
Nate
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users