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

Usability: better documentation required for Instance instantiation/interaction with platform resources #1470

Open
psychogenic opened this issue Aug 2, 2024 · 0 comments
Milestone

Comments

@psychogenic
Copy link

Hello,

Creating instances to utilize 3rd party verilog/il modules was going rather well up to the point where one of them needed access to the raw pin, as it was instantiating an SB_IO directly and setting it as the PACKAGE_PIN.

Discovering how to actually pass in an
io_inoutpin = ...
on the instance proved rather difficult.
I finally turned to the libera chat, where whitequark indicated that
Instance("your_thing", io_whatever=platform.request("pin", dir="-").io)
would do the trick. That works fine.

So this "issue" is basically one of usability/documentation. There are no places (I could find) with any samples or this information explicitly stated and I think that would be useful.
Thanks.

@whitequark whitequark added this to the 0.6 milestone Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants