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

Make a Yosys plugin that does the inout port split #1172

Open
mkurc-ant opened this issue Nov 25, 2019 · 2 comments
Open

Make a Yosys plugin that does the inout port split #1172

mkurc-ant opened this issue Nov 25, 2019 · 2 comments

Comments

@mkurc-ant
Copy link
Collaborator

Since BLIF file cannot handle inout ports, these are represented as a single net connected to both input and output port with the same name. This creates an issue when something drives that net as there are multiple drivers there.

Currently to solve this we use the following flow:

  • Synthesize the design using Yosys but write it to JSON instead of BLIF.
  • Process the JSON using a python script that splits inout ports to separate input and output ports.
  • Load the JSON to Yosys again and write the final BLIF (this is essentially a format conversion).

The "as it should be done" solution would be to have a plugin for Yosys that does the inout port split. That would allow to get rid of the need for writing JSONs and processing them.

@mithro
Copy link
Contributor

mithro commented Nov 25, 2019 via email

@mkurc-ant
Copy link
Collaborator Author

One possibility is to add let's say an .inout model to the BLIF file. But that's only one thing. We would then need to make VPR support inout ports which it does not right now. I can't tell how much work would that require.

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

No branches or pull requests

2 participants