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

Refactor dat parser #212

Merged
merged 12 commits into from
Dec 28, 2023
Merged

Refactor dat parser #212

merged 12 commits into from
Dec 28, 2023

Conversation

DavidVentura
Copy link
Contributor

This is a mostly-mechanical translation of the current code, without attempting to find higher level abstractions that could make the code shorter.
I've made up some names, as I don't really know what names should be assigned to these groupings

There are 4 fields which are used from the .dat files:

  • Grid
  • "Primitives" (Specifically, X11s)
  • Port-map
  • CmuxIns

I've left everything else, mostly-compatible, within compat_dict. There are a few very small changes, such as having indexes as integers (CmuxIns[94] instead of CmuxIns["94"]).

The new implementation also contains this potential bugfix: fdc77a8

@pepijndevos
Copy link
Member

Other than CI failing it seems like an improvement

@DavidVentura
Copy link
Contributor Author

I forgot to commit some silly changes 😁

@pepijndevos
Copy link
Member

@pepijndevos
Copy link
Member

Looks like things pass. I'll try to find some time to review and test on hardware and merge.

@pepijndevos pepijndevos merged commit 140c7b3 into YosysHQ:master Dec 28, 2023
12 of 14 checks passed
@pepijndevos
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants