Hi Srikant and Gabe, Thank for the help, I was able to set different frequencies for different CPUs. However, I notice that I still need to set the clock_domain for the system through ``` system.clk_domain = SrcClockDomain() system.clk_domain.clock = '1GHz' system.clk_domain.voltage_domain = VoltageDomain() ``` Otherwise, this error will be thrown `AttributeError: Can't resolve proxy 'clk_domain' of type 'SrcClockDomain' from 'system.dvfs_handler`. Additionally, when I change the frequency of the system.clk_domain or the custom_clk_domain, the simulated tick is affected in both cases. So what does the system.clk_domain frequency affect? and the custom_clk_domain set for the CPU, does it affect anything besides the CPU itself?
Best regards, Duc Anh Vào Th 3, 10 thg 11, 2020 vào lúc 02:43 Bharadwaj, Srikant < srikant.bharad...@amd.com> đã viết: > 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> > 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 > To unsubscribe send an email to 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