Hello Andreas, Your solution seems more elegant and less intrusive than mine. Nonetheless, I have been working of a lower level implementation in order to isolate the traffic from main memories and scratchpad memories and, therefore, increase the . The same way, my version provides pseudo instructions to allocate memory explicitly on a concrete SPM. Therefore you can also instantiate many SPM.
[Simon] But, the version I have developed was based on an old version of gem5, so maybe it is not as stable and accurate as it is now. Then I would try first what Andreas says and if it works as you expect, it will be easier to maintain. Kind regards, ----- Original Message ----- From: "Andreas Hansson" <andreas.hans...@arm.com> To: "gem5 users mailing list" <gem5-users@gem5.org> Sent: Friday, January 13, 2017 10:37:48 AM Subject: Re: [gem5-users] ScratchPad Memory(SPM) Simulation Hi Simon, Marcos, In general you should not need anything beyond “vanilla” gem5 (Marcos, correct me if I am wrong). If you connect a NonCoherentXBar to the data or instruction port of the CPU, and then use this xbar to connect both to the cache and a SimpleMemory instance of your choice you can create a topology where you have an “ITCM” and “DTCM” as part of the CPU. It is really mostly an exercise in using the existing building blocks, and configuring the memory ranges as you want them to appear to the OS. You will also have to sort out the SW side of things, and that is probably the more painful part. Again, Marcos can probably give you more insight here. In short, I do not think you need anything beyond the existing gem5, but I stand to be corrected. Andreas From: gem5-users < gem5-users-boun...@gem5.org > on behalf of Marcos Horro Varela < marcos.ho...@udc.es > Reply-To: gem5 users mailing list < gem5-users@gem5.org > Date: Friday, 13 January 2017 at 09:32 To: gem5 users mailing list < gem5-users@gem5.org > Subject: Re: [gem5-users] ScratchPad Memory(SPM) Simulation Hello Simon, I have been working on a custom version of gem5 which integrates these memories. You can find it on [1]. If you have any issues using it, I will try to help you. Kind regards, [1] https://github.com/markoshorro/gem5-spm ----- Original Message ----- From: "silver eagle" < silver_ea...@sina.com > To: "gem5-users" < gem5-users@gem5.org > Sent: Friday, January 13, 2017 9:47:27 AM Subject: [gem5-users] ScratchPad Memory(SPM) Simulation Hello everyone, This time I want to simulate a ScratchPad Memory in gem5. Is there any specific patch or turorial could help me to do that? Any of your help will be appreciated! Thanks, Simon silver_ea...@sina.com _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users -- Marcos Horro PhD student University of A Coruña (UDC) +34 618 62 67 37 http://marcoshorro.com IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users -- Marcos Horro PhD student University of A Coruña (UDC) +34 618 62 67 37 http://marcoshorro.com
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users