Skip to content

Conversation

seldridge
Copy link
Member

Add a new trait, HasCliSimulator, that builds on HasConfigMap to provide a standardized way to get a simulator that the user can choose at scalatest test time via a -Dsimulator=<simulator-name> argument.

Note: this is difficult to test, however, I've tested it manually.

CC: @andrew-gouldey-sifive: I'm planning to get this into the open source and then use it internally. We will customize the simulator used internally slightly for the different Verilator or VCS default options that we use.

Release Notes

Add HasCliSimulator which can be used, along with HasConfigMap, to allow for tests to choose their simulator at test time via a -D command line option. This is added to avoid fragmentation of command line options around choosing which simulator to run.

Add a new trait, `HasCliSimulator`, that builds on `HasConfigMap` to
provide a standardized way to get a simulator that the user can choose at
scalatest test time via a `-Dsimulator=<simulator-name>` argument.

Note: this is difficult to test, however, I've tested it manually.

Co-authored-by: Jack Koenig <koenig@sifive.com>
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge seldridge requested a review from jackkoenig March 7, 2025 02:51
@seldridge seldridge added Feature New feature, will be included in release notes and removed Feature New feature, will be included in release notes labels Mar 7, 2025
Copy link
Contributor

@jackkoenig jackkoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@seldridge seldridge merged commit 9bcea84 into main Mar 7, 2025
20 checks passed
@seldridge seldridge deleted the dev/seldridge/HasCliSimulator branch March 7, 2025 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature, will be included in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants