As Gabe said, you will have to set the clk_domain of each CPU while creating them in the config scripts. You can create a new clock domain using the SrcClockDomain like this: custom_clk_domain = SrcClockDomain(clock = frequency_value, voltage_domain = VoltageDomain(voltage = voltage_value)))
Once you create a clock domain, you can set the clk_domain for each CPU like this: cpu = CPUClass(clk_domain=custom_clk_domain) Here, CPU Class is whatever CPU you are using AtomicSimple, O3, etc. Setting different frequency values for the custom_clk_domain will do the job. Srikant From: Gabe Black via gem5-users <gem5-users@gem5.org> Sent: Monday, November 9, 2020 3:33 PM To: gem5 users mailing list <gem5-users@gem5.org> Cc: Đức Anh <daut...@gmail.com>; Gabe Black <gabe.bl...@gmail.com> Subject: [gem5-users] Re: How to create a multicore system with different frequency for each core? [CAUTION: External Email] If you want the frequency of the CPUs to change independently from each other, I think you need to set up a ClockDomain object for each, instead of letting them implicitly inherit the one from the System object. On Mon, Nov 9, 2020 at 2:26 AM Đức Anh via gem5-users <gem5-users@gem5.org<mailto:gem5-users@gem5.org>> wrote: Hello all, I am looking for a way to create a system with multi CPU and they have different frequencies. As far as I see there is a system.clk_domain that acts as a global frequency, and it seems like all CPUs will follow this clock frequency. The clock domain does receive a list of frequencies though, but it is for DVFS (Dynamic voltage and frequency scaling). Is there a way to create or mimic a system where CPUs have different frequencies? Best regards, Duc Anh _______________________________________________ gem5-users mailing list -- gem5-users@gem5.org<mailto:gem5-users@gem5.org> To unsubscribe send an email to gem5-users-le...@gem5.org<mailto:gem5-users-le...@gem5.org> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s