HI Steven I think I have a basic idea about what to do now. Here is what I understand: I should connect the membus with my device(whatever is already built in src/dev). and besides that I need to add a driver for this, which I'm not very sure how to do it. Is it possible if you can provide me with some examples? I'm really sorry about all these basic questions, I'm still very new to gem5.
Thank you very much. Best, Cao > On Jun 28, 2015, at 7:46 PM, Steve Reinhardt <ste...@gmail.com> wrote: > > I'm not sure what you mean by "regular ports"---you would connect it with the > standard gem5 memory-system ports, then use memory-mapped I/O to access it. > The thing with a USB drive is that you will need a USB hub to talk to it, you > can't plug a USB device directly into the memory system. > > Steve > > On Sun, Jun 28, 2015 at 12:45 PM cao2 <c...@mail.usf.edu > <mailto:c...@mail.usf.edu>> wrote: > Hi Steve > > Thank you very much for the information. You said MMIO, so does it mean that > I can't connect the device and the membus with regular ports. The reason I > want a peripheral is to monitor the communication among the entire system, I > was planning to add an USB drive and monitor its communication, do you think > it's possible to implement it? > I really appreciate your help. > > Best, > Yuting > >> On Jun 26, 2015, at 4:15 PM, Steve Reinhardt <ste...@gmail.com >> <mailto:ste...@gmail.com>> wrote: >> >> You can certainly include devices in your system configuration regardless of >> whether you're using SE or FS mode. Without a device driver, though, it's >> tricky to actually use use device, unless you've explicitly designed the >> device for user-mode access, or if your application has its own device >> driver built in. Basically you can use the 'map()' method on the Process >> object (see src/sim/Process.py) to map the device registers into your >> program address space, but from there it's up to you to do the proper MMIO >> accesses to get it to work. >> >> Steve >> >> >> On Fri, Jun 26, 2015 at 12:47 PM cao2 <c...@mail.usf.edu >> <mailto:c...@mail.usf.edu>> wrote: >> Hi >> >> Can SE mode have peripherals like terminal, usb or anything? I can't seem to >> find any related documentation. >> >> Best, >> Cao >> _______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org <mailto:gem5-users@gem5.org> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>_______________________________________________ >> gem5-users mailing list >> gem5-users@gem5.org <mailto:gem5-users@gem5.org> >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users> > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org <mailto:gem5-users@gem5.org> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users > <http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users>_______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users