chipsalliance / rocket-chip

Rocket Chip Generator
Other
3.27k stars 1.13k forks source link

Memory model access delays in emulator #2223

Closed miniskar closed 4 years ago

miniskar commented 4 years ago

Does the Rocket-chip emulator (using verilator) models main memory access delays ?

aswaterman commented 4 years ago

IIRC we are using a fixed-latency memory in the testbench, so cache refills will be artificially fast in simulation.

On Thu, Dec 12, 2019 at 11:45 AM miniskar notifications@github.com wrote:

Does the Rocket-chip emulator (using verilator) models main memory access delays ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chipsalliance/rocket-chip/issues/2223?email_source=notifications&email_token=AAH3XQUXGPYDLO4BWYWYKQTQYKIENA5CNFSM4J2DQD42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IAEVR5A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH3XQSX77RYQFX5BQCKS3DQYKIENANCNFSM4J2DQD4Q .

miniskar commented 4 years ago

Is this a configurable parameter in some file?

aswaterman commented 4 years ago

It's static in the scala code.

https://github.com/chipsalliance/rocket-chip/blob/54237b5602a273378e3b35307bb47eb1e58cb9fb/src/main/scala/system/SimAXIMem.scala#L32

https://github.com/chipsalliance/rocket-chip/blob/42ae146a02617d8d8be9d965554f0c566b7445ae/src/main/scala/system/SimAXIMem.scala