cyber-murmel / chubby-hat

a PCB that turns the Colorlight 5A-75B into an easy to use development FPGA platform for cheap
https://hackaday.io/project/174032-chubby-hat
MIT License
17 stars 2 forks source link

Switchable in/outs and pmod ports #7

Open DoctorMikeReddy opened 3 years ago

DoctorMikeReddy commented 3 years ago

As you’ve hard wired some of the outputs to be inputs - mentioned in #6 - do you need to have a template in the firmware to stop the FPGA trying to output on those lines? Presumably, you need to replace the stock firmware? Also, why are there only 7 pmod ports, when there are 8 hub75 outputs? What’s is the eighth one used for? Could one be used, with replacement buffer chips - from a thread on chubby75 - to allow switchable IO ports? So, all the ports could be selectable in/out ports?

Apologies for all the questions

cyber-murmel commented 3 years ago

The modification turns output-only ports into IO ports - i.e. input and output are both possible.

The HUB75 connectors share some signals. There are only 56 individual signals in total. This results in the 7 Pmod connectors.

The chubby hat currently doesn't enable replacing the stock gateware (micro controllers have firmware; FPGAs have gateware). When uploading gateware via JTAG, it's placed in the volatile configuration registers of the FPGA. If then power is turned off and on again, the FPGA automatically loads the stock gateware from the on-board SPI flash.

As mentioned here it's suggested to replace the unidirectional buffers with SN74CBT3245APW 8bit bidirectional FET switches

Which pin is used as in or output will be determined by the gateware.

I hope this answers your questions, If something still remains unclear, feel free to follow up :-)

DoctorMikeReddy commented 3 years ago

SN74CBT3245APW with the 5v rail diode hack?

As per: https://twitter.com/Claude1079/status/1231194849350647808 and https://github.com/q3k/chubby75/issues/37

DoctorMikeReddy commented 3 years ago

Wasn’t aware the base FW and microprocessor hadn’t been hacked yet. I’ll have a look at this

cyber-murmel commented 3 years ago

There is no microprocessor on the colorlight. Only an FPGA, configuration flash, Ethernet PHYs and RAM.

Or are you referring to the original gateware that implements a kind of microprocessor on the FPGA?

cyber-murmel commented 2 years ago

For later reference image

cyber-murmel commented 2 years ago

maybe SN74CBT3345PWR is suitable as well. only difference is one more OE pin.

image image

https://datasheet.lcsc.com/lcsc/1809172014_Texas-Instruments-SN74CBT3245APWR_C7145.pdf https://datasheet.lcsc.com/lcsc/1806112030_Texas-Instruments-SN74CBT3345PWR_C201963.pdf