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

Factor out PS2 #161

Merged
merged 1 commit into from Jun 3, 2021
Merged

Factor out PS2 #161

merged 1 commit into from Jun 3, 2021

Conversation

StephanvanSchaik
Copy link
Contributor

The following FPGAs have one or two PS/2 ports to attach a mouse and keyboard with simply a clock and data signal directly connected to the FPGA:

  • Atlys
  • DE0
  • DE0-CV
  • Mercury
  • Nexys4DDR
  • RZEasyFPGAA2.2

This commit factors out the PS2 resource by defining a function PS2Resource that takes the clock signal as clk and the data signal as dat, and replaces any generic resource using Resource with PS2Resource.

Boards either use "ps2" or "ps2_host" as a name, and I have used the "ps2" name in PS2Resource. We can use the "ps2_host" name instead, but I personally much more prefer the controller/peripheral naming if we do that.

This addresses issue #126.

@whitequark
Copy link
Member

Boards either use "ps2" or "ps2_host" as a name, and I have used the "ps2" name in PS2Resource. We can use the "ps2_host" name instead, but I personally much more prefer the controller/peripheral naming if we do that.

Seems fine to use "ps2"; we don't use "sdcard_host" or "spi_flash_host" (whichever suffix you prefer), even though in principle you could emulate all those on an FPGA.

@whitequark whitequark merged commit dbde179 into amaranth-lang:master Jun 3, 2021
@whitequark
Copy link
Member

Thank you!

@StephanvanSchaik StephanvanSchaik deleted the ps2 branch June 3, 2021 17:08
@whitequark whitequark mentioned this pull request Sep 17, 2022
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants