Hi Varun, Will this stat will be calculated on every tick?
On Fri, Nov 29, 2019 at 7:01 PM Victor Kariofillis <[email protected]> wrote: > Hi, > > I have created a Stat of type Formula. Since the formula is complicated, > instead of having it in the regStats file, I want to call another function > that returns the proper value. The code would be something like this. > > zeroPercentage.flags(total); > zeroPercentage = calcZeroPercentage(); > > The calcZeroPercentage is a typical function in the file. The numbers that > I'm crunching to get the value that I want are not stats. Would something > like this be possible? In the gem5 documentation statistics page, it states > that if the variables are not stats they should be qualified with constant. > > "If bar or num are regular variables, then they must be qualified with > constant(bar)." > > Is this true for this case as well? > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
