riscv-isa-sim icon indicating copy to clipboard operation
riscv-isa-sim copied to clipboard

Trying to print some data collected after simulation finishes running and before termination

Open youssefM1999 opened this issue 1 year ago • 1 comments

I am new to Spike, I am collecting some data from stimulus I am simulating on Spike.

From my understanding, sim_t::run() runs the simulation to completion. However, when I add my code below this function, it gets bypassed and the simulation ends.

Any suggestions on where to add my code to show my changes before the simulation is terminated?

youssefM1999 avatar Sep 15 '23 18:09 youssefM1999

Can't reproduce, adding std::cerr << "Nya~\n"; after auto return_code = s.run(); in spike_main/spike.cc works fine for me

widlarizer avatar Nov 01 '23 13:11 widlarizer