CommonEvaluationPlatform / CEP

The Common Evaluation Platform (CEP), based on UCB's Chipyard Framework, is an SoC design that contains only license-unencumbered, freely available components.
BSD 3-Clause "New" or "Revised" License
21 stars 7 forks source link

BareMetal Test in CEP v4.7 hangs #40

Closed jordankrim closed 2 months ago

jordankrim commented 2 months ago

The bareMetal Test called macro4Mix exercises the RSA module. I have attempted to replace this module with my own. In CEP v4.4 and v4.5 this works and the simulation with Verilator passes, but in CEP v4.7 I replace it with mine and in the Verilator simulation it hangs, In CEP v4.4 and 4.5 the change to incorporate my own is modifying the resources in the rsa..scala. In CEP 4.7 this has been moved to a file call cepPackage.scala. I replace the resources in 2 places in this file (vs. 1 in the old CEP 4.4 and 4.5 rsa.scala file). Is there some other "fix" I am missing to allow the macro4Mix to run and pass in CEP 4.7 as it did in CEP 4.4 and 4.5 instead fo hanging?

jordankrim commented 2 months ago

Found the issue. The "mock_tss" file was in both places and it only belonged in 1. After recompiling the Chipyard and the verilated code and rerunning with Verilator, it now passes.

bchetwynd commented 2 months ago

Thank you for sharing the note.