Skip to content

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

Open
@psychogenic

Description

@psychogenic

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions