Skip to content

Conversation

seldridge
Copy link
Member

Add the HasCliOptions and Cli.EmitVcd traits to the Scalatest ChiselSim trait. This provides a saner default for end users:

  1. Command line options are not allowed to sneak in through Scalatest's ConfigMap and must go through normal option parsing paths.
  2. The default ChiselSim environment will always have -DemitVcd=true as an available option.

Release Notes

  • Change the scalatest.ChiselSim trait to require that any command line options are passed using the addOption method. Users will no longer be able to use Scalatest's ConfigMap directly. This is done for safety reasons. If users would like different behavior, they can construct their own ChiselSim trait from the traits they would prefer.
  • Add -DemitVcd=true option to scalatest.ChiselSim. Users can now run any simulation and turn on waveforms by passing this option to Scalatest.

Add the `HasCliOptions` and `Cli.EmitVcd` traits to the Scalatest
ChiselSim trait. This provides a saner default for end users:

1. Command line options are not allowed to sneak in through Scalatest's
   ConfigMap and must go through normal option parsing paths.
2. The default ChiselSim environment will always have `-DemitVcd=true` as
   an available option.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge seldridge added the Feature New feature, will be included in release notes label Mar 17, 2025
@seldridge seldridge merged commit c2b47f5 into main Mar 17, 2025
17 of 18 checks passed
@seldridge seldridge deleted the dev/seldridge/chiselsim-add-base-cli branch March 17, 2025 21:47
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.

1 participant