How to test RoCC Accelerator alone
Hi, I designed a custom accelerator using the RoCC interface. And now I want to test the accelerator independently on an FPGA board, so I need to write a test driver and only instantiate one custom accelerator. But I am confused about how to just instantiate a custom accelerator without the rocket core.
I instantiated a custom accelerator like this :

But I got this error:

And I found that the RoCC accelerators are Mount on Rocket core using this grammar.

So it seems that I need to give the custom accelerator a "parameter p", but how should I instantiate a custom accelerator clearly without other modules? And what is the logic behind these parameters?
Thanks.
The parameters object passed in contains global configuration information that may be relevant to the accelerator.
If you want to create an accelerator-only testharness, I would copy+modify TestHarness.scala to have a version which directly instantiates the accelerator, passing in the Parameters object which is available in TestHarness.
I would copy+modify TestHarness.scala to have a version which directly instantiates the accelerator
Thanks. And how can I get this specific TestHarness.scala file?
TestHarness.scala is available in the chipyard source code, but you'll have to make some modifications to produce an accelerator-only TestHarness.
[Closing as stale+answered. Feel free to reopen if needed!]