gem5-users@gem5.org

The gem5 Users mailing list

View all threads

Testing SimObjects

O
Olumide
Wed, Nov 27, 2024 6:01 PM

Hi gem5-users,

I'm developing the first in a series of SimObjects that are going to be
coupled together but I would like to have automated tests for each
SimObject.

For example I would like to configure my custom traffic generator to
inject X flits per second, allow the simulation to run for N ticks and
count the number of flits sent to a 'sink' object.

How can this be done? The configuration file only creates and connects
SimObject instances.

Is there a way to introspect a SimObject mid-simulation? Or is DPRINTF
and output parsing my only recourse?

Regards,

  • Olumide
Hi gem5-users, I'm developing the first in a series of SimObjects that are going to be coupled together but I would like to have automated tests for each SimObject. For example I would like to configure my custom traffic generator to inject X flits per second, allow the simulation to run for N ticks and count the number of flits sent to a 'sink' object. How can this be done? The configuration file only creates and connects SimObject instances. Is there a way to introspect a SimObject mid-simulation? Or is DPRINTF and output parsing my only recourse? Regards, - Olumide