Hi Yasir, The short answer: You need to configure your gem5 simulation properly.
You can configure address ranges in the ExternalSlave object (see src/mem/ ExternalSlave.py). You will also need to configure your MMU to implement the right address mappings. I am not sure how this works in SE mode, but there should be a way of defining new address mappings. You probably want to look at se.py and the files it imports and understand how the memory map is set up. Maybe you should also consider to switch to FS mode. While I appreciate your interest, I don't understand your motivation for using the TLM-Bridge. If you implement an accelerator from scratch, why don't you do so in gem5 directly? Why do you need the TLM bridge? I saw your e-mails on 'SystemC and GEM5 SE Mode' and will look into this issue when I find the time. Best regards, Christian Menard On Monday, 19 June 2017 16:14:27 CEST Qureshi Yasir Mahmood wrote: > Hi All, > > I am trying to setup a GEM5-to-TLM simulation with GEM5 in ARM SE mode and > SimpleMemory as the physical memory. I intend to model an accelerator in > SystemC in the TLM world. I want my accelerator to start when I signal it > through some memory mapped register (effectively addressing a memory > location in C). To get started, I setup the GEM5 in SE with util/tlm, in > which 512MB memory is modelled in TLM. I am trying to access the memory > location in the TLM through GEM5, but I don't know how as it is not being > treated as physical memory by GEM5. > > Can someone help or has any idea, as how to have some accelerator/memory in > TLM and access it via a C program in GEM5 ? > > Regards > Yasir > ESL, EPFL > > > > > > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev -- Dipl.-Ing. Christian Menard Research Assistant TU Dresden Faculty of Computer Science Chair for Compiler Construction 01062 Dresden Phone: +49 351 463-42441 e-Mail: [email protected] _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
