Skip to content
New issue

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

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

Already on GitHub? # to your account

Support for primitive-uses backend #3

Merged
merged 3 commits into from
Jan 22, 2024
Merged

Conversation

ayakayorihiro
Copy link
Contributor

This is a small PR adding support for the primitive-uses backend that lists all of the unique usages of primitives in a Calyx program!

Once I merge the recent Calyx PR, the primitive-uses backend can be used by running fud2 with --to primitive-uses-json.

The next PR will consist of having fud2 automate the below process:

  1. generating FIRRTL via the firrtl backend
  2. getting info about primitive uses via the primitive-uses backend
  3. running a Python script (currently sitting in the generate-firrtl-mods branch in the Calyx repo) that generates FIRRTL primitive code
  4. putting the FIRRTL from (1) and (3) together

@ayakayorihiro ayakayorihiro changed the title Adding support for primitive-uses backend Support for primitive-uses backend Jan 22, 2024
@sampsyo
Copy link
Owner

sampsyo commented Jan 22, 2024

Excellent; looks great!!

@sampsyo sampsyo merged commit 8365aa3 into sampsyo:main Jan 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants