Skip to content

Conversation

yuvadm
Copy link

@yuvadm yuvadm commented Aug 29, 2025

This is based off of the existing official(?) definitions found at:

https://github.com/alchitry/Alchitry-Labs-V2/blob/master/src/main/kotlin/com/alchitry/labs2/hardware/pinout/PtV2TopPin.kt
https://github.com/alchitry/Alchitry-Labs-V2/blob/master/src/main/kotlin/com/alchitry/labs2/hardware/pinout/PtV2BottomPin.kt

There is also an alpha revision file for the top pins which we ignore for now, assuming it's some early unused revision:

https://github.com/alchitry/Alchitry-Labs-V2/blob/master/src/main/kotlin/com/alchitry/labs2/hardware/pinout/PtV2AlphaTopPin.kt

It's very lightly tested for now, but figured it's better to have some initial definition out there.

Clock(100e6),
Attrs(IOSTANDARD="LVCMOS33"),
),
Resource("rst_n", 0, Pins("N15", dir="i"), Attrs(IOSTANDARD="LVCMOS33")),
Copy link
Member

Choose a reason for hiding this comment

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

Use LEDResources.

Attrs(IOSTANDARD="LVCMOS33"),
),
# QSPI Flash
Resource(
Copy link
Member

Choose a reason for hiding this comment

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

Use SPIFlashResources.

# Analog differential pair (e.g., for XADC)
Resource("vp_vn", 0, DiffPairs("L10", "M9", dir="i")),
# DDR3 SDRAM
Resource(
Copy link
Member

Choose a reason for hiding this comment

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

Use DDR3Resource.

Attrs(IOSTANDARD="LVCMOS33"),
),
# Analog differential pair (e.g., for XADC)
Resource("vp_vn", 0, DiffPairs("L10", "M9", dir="i")),
Copy link
Member

@whitequark whitequark Sep 14, 2025

Choose a reason for hiding this comment

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

Can this be used as a Verilog input?

Resource("led", 7, Pins("W20", dir="o"), Attrs(IOSTANDARD="LVCMOS33")),
# FTDI USB Interface
Resource(
"usb",
Copy link
Member

Choose a reason for hiding this comment

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

A better name would be something like "ft232" (assuming it's that chip).

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.

2 participants