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

Allow input pad locations to be specified using XDC format #20

Closed
jgoeders opened this issue Sep 13, 2020 · 7 comments
Closed

Allow input pad locations to be specified using XDC format #20

jgoeders opened this issue Sep 13, 2020 · 7 comments

Comments

@jgoeders
Copy link
Contributor

It would be nice if you could provide a set of pin constraints from the original bitstream compile, such that when translating fasm to bels, the top-level input names could be mapped back to the original input names.

This would be similar to the "icebox_vlog.py -P" functionality if you are familiar with the icestorm tools.

I'm assuming this option doesn't already exist?

If you're not already working on this, I would be happy to work on it and upstream it. If you have any advice on where to look in the code first, it would be much suggested. Thanks!

@mithro
Copy link
Contributor

mithro commented Sep 14, 2020

@litghost / @acomodi -- Any idea if this already works? I assume that @jgoeders is using an existing vivado design and not something produced from VPR which would have this annotation?

@acomodi
Copy link
Contributor

acomodi commented Sep 14, 2020

I think that what is missing to get the top level IO names are either one of the following options:

  • A PCF constraints file
  • They synthesized eblif file that contains IO_LOC_PAIRS attributes on IO buffer instances. The IO_LOC_PAIRS are added with a yosys plugin at synthesis time.

I think that adding the PCF constraint file should be the way to go and should solve the problem.

@jgoeders
Copy link
Contributor Author

Ah, ok. I see there is already a --pcf argument. Not sure how I missed that. I assume this only takes PCF and not XDC for pin constraints? @mithro, is there a symbiflow tool that converts between these?

@mithro
Copy link
Contributor

mithro commented Sep 14, 2020

@jgoeders We are generally moving towards supporting XDC / SDC everywhere (rather than PCF). I don't think this has been done for fasm2bels yet?

@jgoeders
Copy link
Contributor Author

@acomodi If there's no XDC support I can add it and upstream it.

@mithro Is there a standard parser you are using across Symbiflow projects?

@acomodi
Copy link
Contributor

acomodi commented Sep 14, 2020

@jgoeders Currently there is no direct XDC parser to read the pad locations within fasm2bels, so this could be a good addition IMO to the tool.

@jgoeders jgoeders changed the title Allow input constraints file to map inputs to original names Allow input pad locations to be specified using XDC format Sep 14, 2020
@jgoeders
Copy link
Contributor Author

Fixed in #21

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

3 participants