Hello, Check out the config.ini file in m5out/ and see what your CPU clock is actually set to. I would guess that the options are not behaving the way you expect (well, the way anyone would expect). se.py (and the options in Options.py) is pretty fundamentally broken. There are tons of special cases and other things that will overwrite options that you pass. There's no guarantee when you say "--cpu-clock=2GHz" on the command line that the CPU's clock is actually set to 2GHz. I strongly suggest using your own configuration files like in Learning gem5.
Cheers, Jason On Tue, Apr 27, 2021 at 5:58 AM Liyichao via gem5-users <[email protected]> wrote: > My cmd is ./build/ARM/gem5.opt --debug-flags=Exec configs/example/se.py > --cpu-type=TimingSimpleCPU -c "/mnt/root/stream" --caches --cpu-clock="2GHz" > > > > The Exec debug output: > > > > > > 3558000: system.cpu: T0 : @strlen+36 : bics x4, x4, x5 : > IntAlu : D=0x0000000000000000 > > 83559000: system.cpu: T0 : @strlen+40 : bic x5, x6, x7 : > IntAlu : D=0x8080808080800000 > > 83560000: system.cpu: T0 : @strlen+44 : ccmp x5, #0, #0, eq : > IntAlu : D=0x0000000000000000 > > 83561000: system.cpu: T0 : @strlen+48 : b.eq <strlen+80> : > IntAlu : > > 83562000: system.cpu: T0 : @strlen+52 : csel x4, x4, x5, cc : > IntAlu : D=0x8080808080808000 > > 83563000: system.cpu: T0 : @strlen+56 : movz x0, #8, #0 : > IntAlu : D=0x0000000000000008 > > 83564000: system.cpu: T0 : @strlen+60 : rev x4, x4 : > IntAlu : D=0x0080808080808080 > > 83565000: system.cpu: T0 : @strlen+64 : clz x4, x4 : > IntAlu : D=0x0000000000000008 > > 83566000: system.cpu: T0 : @strlen+68 : csel x0, xzr, x0, cc : > IntAlu : D=0x0000000000000000 > > 83567000: system.cpu: T0 : @strlen+72 : add x0, x0, x4, LSR #3 : > IntAlu : D=0x0000000000000001 > > > > 1 instrution need 1000 ticks, it means that 1 instrution need 2 cycles, > ipc is 0.5. Is it correct? > > > > *发件人:* Bobby Bruce [mailto:[email protected]] > *发送时间:* 2021年4月27日 12:55 > *收件人:* gem5 users mailing list <[email protected]> > *抄送:* Liyichao <[email protected]> > *主题:* Re: [gem5-users] TimingCPU's IPC > > > > Could you give a bit more info about your configuration here? To be > honest, it looks like the CPU is just running at 1GHz instead of 2. Is that > possible? > > > > -- > > Dr. Bobby R. Bruce > Room 2235, > Kemper Hall, UC Davis > Davis, > CA, 95616 > > > > web: https://www.bobbybruce.net > > > > > > On Fri, Apr 23, 2021 at 3:52 AM Liyichao via gem5-users < > [email protected]> wrote: > > Hi All: > > As I know, Atomic or Timing CPU’s IPC is 1 IPC, but when I test a > program in SE mode with –debug-flags=Exec, in the debug output file, I find > that one instruction’s tick is incremented by 1000, my cpu frequency is 2 > GHz. Does that mean that the IPC is 0.5(cycle=1000/500)? > > Is the 1IPC is calculated under 1GHz? > > > > > > _______________________________________________ > gem5-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s > > _______________________________________________ > gem5-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
