8000 [chiselsim] Rewrite EphemeralSimulator in terms of DefaultSimulator by seldridge · Pull Request #4675 · chipsalliance/chisel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[chiselsim] Rewrite EphemeralSimulator in terms of DefaultSimulator #4675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

seldridge
Copy link
Member

Context: I'm working towards developing a common simulator API. Part of the problem right now is that the DefaultSimulator and EphemeralSimulator are different enough that they can't be easily unified.

Unify the DefaultSimulator and EphemeralSimulator by rewriting the latter using the former. This is done by writing a new HasTestingDirectory type class implementation generator called temporary which will do all the work of what the EphemeralSimulator was previously doing.

Release Notes

  • Add chisel3.simulator.HasTestingDirectory.temporary type class implementation generator for control of temporary directory creation (with optional auto-deletion).

Add a type class implementation generator that can be used to create
temporary directories for Chiselsim simulations.  This is building twoards
collapsing the `EphemeralSimulator` into the `DefaultSimulator`.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Using the new type class implementation generator
`HasTestingDirectory.temporary`, rewrite the `EphemeralSimulator` to be
implemented using the `DefaultSimulator`.  This is working towards
completely deleting the `EphemeralSimulator` in favor of the
`DefaultSimulator`.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge seldridge requested a review from jackkoenig February 11, 2025 03:11
@seldridge seldridge added the Feature New feature, will be included in release notes label Feb 11, 2025
@seldridge seldridge merged commit 529be12 into main Feb 11, 2025
17 of 18 checks passed
@seldridge seldridge deleted the dev/seldridge/unify-EphemeralSimulator-and-DefaultSimulator branch February 11, 2025 16:13
@jackkoenig
Copy link
Contributor

Nice cleanup!

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
0