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

applet.display.pdi: modify to use port groups. #603

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

q3k
Copy link
Contributor

@q3k q3k commented Jun 26, 2024

Another one for #599, this time a slightly more complex case:

  1. The applet uses applet.interface.spi_controller.SPIController{Subtarget,Interface} which stays at the old pads API;
  2. __pins were used to call access.add_pin_argument - this loop has been unrolled, as I assume removing __pins takes precedence?

@q3k q3k requested a review from whitequark as a code owner June 26, 2024 22:34
Copy link
Member

@whitequark whitequark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Yeah, I'd say unroll the loop, the __pins pattern is really weird.

Eventually there's going to be another major migration that changes how applets are composed, but it'll heavily build on the get_port_group() style infrastructure so it'll be less disruptive.

After that migration we'll have ports declared in a way kinda like...

class AppletInterface:
    sck: PortSpec.Input
    io: PortSpec.Bidir[4]

or something like that (syntax extremely TBD). There, superapplets could route some of their pins to subapplets.

But this is all extremely up in the air, and the migration I requested takes priority at the moment, as the Pads stuff that dates back to Migen really must go.

@whitequark whitequark added this pull request to the merge queue Jun 26, 2024
Merged via the queue into GlasgowEmbedded:main with commit e12b36c Jun 26, 2024
20 checks passed
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