R
Rick C
Guest
On Friday, September 18, 2020 at 7:43:07 AM UTC-4, Jan Coombs wrote:
This device is a Gowin GW1N series product. They provide an $80 programming cable or use the FTDI chip in their board products as does Trenz. Gowin can\'t rely on any other mode for programming their devices because SPI slave mode is not supported on all devices. It seems insane, but they have five programming modes not counting JTAG and Auto Boot (from internal flash) but one some devices/packages offer only one alternative because they don\'t pin out all mode inputs. Even on a 100 pin QFP they only bring out a single mode pin, Mode 0. In that case Slave SPI is the only other choice than Auto Boot. In other packages the only other choice is Master SPI or only CPU 8 bit parallel. Heck, in some packages the mode pin out changes between devices! Strange.
So I am left with the choices of buying an $80 cable for everyone, or adding the FTDI chip to the board. I\'ll add the chip unless someone has a truly better idea. It seems to be the cheap solution and does not preclude using the programming cable.
I appreciate people making suggestions, but I don\'t understand what is wrong with using the FTDI chip on the board. There are many ways to skin a cat, but in this case the FTDI approach is simpler and more direct. To use the MCU to either program the FPGA or to program an SPI flash requires code to be written and debugged. The FTDI chip should just work. No?
--
Rick C.
-+- Get 1,000 miles of free Supercharging
-+- Tesla referral code - https://ts.la/richard11209
On Fri, 18 Sep 2020 09:49:05 +0200
David Brown <david.brown@hesbynett.no> wrote:
How does that work? The MCU can pump out addressed data at Mbps?
That\'s a tough thing to do in general and if it has anything else to do
- even tougher. I guess when programming the FPGA there isn\'t anything
else for the MCU to do, so it just has to retrieve the appropriate data
quickly enough to get it into the SPI hardware to ship out. I don\'t
know how much time that gives. I haven\'t seen the interface spec before.
The iCE40, and probably other FPGAs, use SPI slave mode for cable based
programming, so the PC, micro, or other bitstream source device has full
control of the transfer rate. This is very good for development, as
programming the FPGA RAM takes just a couple of second, rather than the
~30s to flash the regular external SPI bitstream device.
This device is a Gowin GW1N series product. They provide an $80 programming cable or use the FTDI chip in their board products as does Trenz. Gowin can\'t rely on any other mode for programming their devices because SPI slave mode is not supported on all devices. It seems insane, but they have five programming modes not counting JTAG and Auto Boot (from internal flash) but one some devices/packages offer only one alternative because they don\'t pin out all mode inputs. Even on a 100 pin QFP they only bring out a single mode pin, Mode 0. In that case Slave SPI is the only other choice than Auto Boot. In other packages the only other choice is Master SPI or only CPU 8 bit parallel. Heck, in some packages the mode pin out changes between devices! Strange.
So I am left with the choices of buying an $80 cable for everyone, or adding the FTDI chip to the board. I\'ll add the chip unless someone has a truly better idea. It seems to be the cheap solution and does not preclude using the programming cable.
I appreciate people making suggestions, but I don\'t understand what is wrong with using the FTDI chip on the board. There are many ways to skin a cat, but in this case the FTDI approach is simpler and more direct. To use the MCU to either program the FPGA or to program an SPI flash requires code to be written and debugged. The FTDI chip should just work. No?
--
Rick C.
-+- Get 1,000 miles of free Supercharging
-+- Tesla referral code - https://ts.la/richard11209