amaranth-boards
amaranth-boards copied to clipboard
Add MachXO2 Breakout board
Features (✓=tested):
- [x] LEDs
- [x]
toolchain_program() - [x] GPIO connectors
- [x] UART via FTDI
I was planning on doing this, you already done so :D. Thanks for saving me the effort!
It looks good to me, I would've done it much the same way. I have a few questions:
- Since the UART shares pins with connections J3, would it be better to not provide the UART resource by default (i.e. as a
MachXO2_7000HE_BreakoutPlatformclass variable? That way, the user can choose to either use the pins as GPIO, or convert it to UART viaadd_resourcesif they've done the appropriate mod. - I believe the user can solder a crystal X2 if they desire (of a frequency of their own choice). Idk offhand if
add_resourceshandlesClocks though/if it requires special treatment. Should that be added as aMachXO2_7000HE_BreakoutPlatformclass variable too?
Since the UART shares pins with connections J3, would it be better to not provide the UART resource by default (i.e. as a
MachXO2_7000HE_BreakoutPlatformclass variable? That way, the user can choose to either use the pins as GPIO, or convert it to UART viaadd_resourcesif they've done the appropriate mod.
That sounds good, I'll do it.
I believe the user can solder a crystal X2 if they desire (of a frequency of their own choice). Idk offhand if
add_resourceshandlesClocks though/if it requires special treatment. Should that be added as aMachXO2_7000HE_BreakoutPlatformclass variable too?
I don't know how this would work, so I'll leave it up to you to make an additional pull request.
@cr1901 I've split the UART resource as you've suggested, but I can' currently test this. I'd appreciate you testing it.
@neuschaefer I sincerely apologize for the delay... I finally tested locally. Your UARTResource split works perfectly :).