harvard-acc / gem5-aladdin

End-to-end SoC simulation: integrating the gem5 system simulator with the Aladdin accelerator simulator.
BSD 3-Clause "New" or "Revised" License
223 stars 59 forks source link

CPU clock doesn't get set right #50

Open Cippo95 opened 1 year ago

Cippo95 commented 1 year ago

I have written about this in the gem5-aladdin group some time ago but configs/aladdin/aladdin_se.py needs some further configuration to set the CPU clock correctly or CPU will be set at system clock.

You need to add:

# All cpus belong to a common cpu_clk_domain, therefore running at a common     
# frequency.                                                           
for cpu in system.cpu:    
    cpu.clk_domain = system.cpu_clk_domain

I have put it at line 333 since gem5 puts it there, but I think is fine anywhere.

xyzsam commented 1 year ago

If you send us a PR, we can review it and get it merged.