amaranth-boards icon indicating copy to clipboard operation
amaranth-boards copied to clipboard

Add support for MCH2022 badge

Open cyber-murmel opened this issue 3 years ago • 5 comments

Based on the pin constraints file by Sylvain Munaut @smunaut: https://github.com/badgeteam/mch2022-firmware-ice40/blob/master/projects/_common/data/mch2022-proto4.pcf

cyber-murmel avatar Jul 22 '22 10:07 cyber-murmel

Is there anyway to specify some pins are input only, or open-drain outputs ? Like LCD_MODE is an input and shouldn't be driven. The IRQ and LCD reset, LCD chipselect are also open-drain and shouldn't be actively driven high.

smunaut avatar Jul 22 '22 12:07 smunaut

Is there anyway to specify some pins are input only, or open-drain outputs ?

dir="i", dir="oe"

whitequark avatar Jul 22 '22 16:07 whitequark

Ok great thanks for the tip. Then I'd probably include that to make sure things are driven the way they are meant to :grin:

smunaut avatar Jul 22 '22 16:07 smunaut

Should only these three addition pins be constraint in their direction and drive strength or all pins according to the schematic?

I can imagine that someone might want to use the 8 pins of the data bus going to the display as additional inputs pins for example, without having to use a different board definition.

cyber-murmel avatar Jul 22 '22 19:07 cyber-murmel

I don't see any issue in doing only those 3. They're the only ones that are also connected to the ESP and so can create contention and so it's better if they're driven by default the correct way. The others like the LCD data are only connected to the LCD and the LCD is hardwired in write mode so it'll never drive the lines.

smunaut avatar Jul 22 '22 19:07 smunaut