Skip to content
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

[RTG] Add Random Test Generation dialect #7833

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

maerhart
Copy link
Member

Please refer to the RTG.md file for the rationale.

While CIRCT has a strong set of dialects to generate hardware from various source languages, produce SV, simulate, formally verify, and even synthesize, it lacks tools for system-level verification. This dialect aims to address this by introducing an infrastructure to represent and compile randomized tests. These tests can be ISA instruction sequences to test CPUs, transaction sequences to test modules with a ready-valid interface, etc. A later PR will add another dialect (a test dialect) to demonstrate and test this infrastructure for ISA instruction sequences.

This dialect is different from all the other dialects in CIRCT in that it isn't part of a compilation pipeline from a hardware description. Instead, it is used to write/generate tests for the hardware produced by the other dialects in CIRCT and is thus more disconnected from them. Therefore, we might want to restructure CIRCT a bit to introduce top-level projects like the LLVM repo. However, let's wait and see what happens with the upstream restructuring efforts.

Copy link
Contributor

@darthscsi darthscsi left a comment

Choose a reason for hiding this comment

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

LGTM

@maerhart maerhart added the RTG Involving the `rtg` dialect label Nov 19, 2024
Copy link
Contributor

@fabianschuiki fabianschuiki left a comment

Choose a reason for hiding this comment

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

Very exciting! LGTM

docs/Dialects/RTG.md Outdated Show resolved Hide resolved
@maerhart maerhart merged commit b212995 into main Nov 20, 2024
4 checks passed
@maerhart maerhart deleted the maerhart-rtg-dialect-pr branch November 20, 2024 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RTG Involving the `rtg` dialect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants