3 ms·
My iCE40UP5K-B-EVN devboard is still in its box; I still haven't run so much as "blink" on it. So I can't recommend it from experience, exactly. But it does h
by kragen 4y ago
My iCE40UP5K-B-EVN devboard is still in its box; I still haven't run so much as "blink" on it. So I can't recommend it from experience, exactly. But it does have some advantages:
1. It's cheap. Digi-Key lists it for US$62.40. But they're out of stock: https://www.digikey.com/en/products/detail/lattice-semiconductor-corporation/ICE40UP5K-B-EVN/6596291 https://www.digikey.com/en/products/detail/lattice-semicondu.... They were in stock when I ordered a few months ago.
2. It's in stock despite the shortage. Or it was, anyway. Maybe a different distributor has them in stock.
3. It's fully supported by free software (APIO, yosys, nextpnr, etc.) and there are tutorials for getting things to run on it without getting contaminated by licenses.
4. Although it's still really small as FPGAs go, the iCE40UP5K is the largest FPGA that is fully supported by free software: 5280 logic blocks (one 4-LUT, one D flip-flop, and some carry propagation logic per block), 120 kbits of EBRAM, 1024 kbits of SPRAM, and 8 16×16 multipliers. According to the datasheet, it's not super fast, 25–150 MHz for a lot of designs, and the multipliers in particular are 50 MHz; configured for extremely basic functions like a 16-bit decoder you can get pin-to-pin performance of under 20 ns. This seems like plenty of power for emulating a Super Nintendo or something, but not an XBox. The SeRV implementation of RISC-V fits into I think 200 iCE40 4-LUTs. The UPduino is another cheap devboard featuring the iCE40UP5K.
Astoundingly, someone has gotten HDMI output out of an iCE40 with a relatively simple level shifter to handle the translation to current-mode logic and the iCE40's DDR outputs to get 250MHz output: https://hackaday.io/page/5702-dvi-hdmi-pmod-for-an-ice40-fpga https://hackaday.io/page/5702-dvi-hdmi-pmod-for-an-ice40-fpg... Presumably, though, you'd be better off with a beefier FPGA for which HDMI isn't such a stretch.
I'm thinking that probably even if you had the US$12000 for a Virtex-7 devboard and a Vivado license to synthesize designs for it, you might be better off starting with smaller designs anyway, because in a couple nights of tinkering you won't be able to get anything working that the iCE40 can't do.
- duskwuff 4y ago> Presumably, though, you'd be better off with a beefier FPGA for which HDMI isn't such a stretch. Another option is an external HDMI serializer. You send it a parallel video signal, similar to what you'd send to a VGA DAC, and it handles all the details of turning that into HDMI. Here's one on a breakout board: https://1bitsquared.com/products/pmod-digital-video-interface https://1bitsquared.com/products/pmod-digital-video-interfac...
- kragen 4y agoYeah, I was wondering if an external SERDES and some level shifters would be enough. Also though you could literally generate a VGA signal with an R-2R DAC and feed it to a VGA-to-HDMI adaptor. These apparently cost US$10 and are available in the kind of stores that sell USB hubs and fake SD cards: https://articulo.mercadolibre.com.ar/MLA-897320291-cable-adaptador-conversor-vga-a-hdmi-full-hd-audio-usb-_JM https://articulo.mercadolibre.com.ar/MLA-897320291-cable-ada...
- duskwuff 4y ago> Also though you could literally generate a VGA signal with an R-2R DAC and feed it to a VGA-to-HDMI adaptor. The breakout I linked is only $20, and uses virtually the same electrical interface as a VGA DAC. (The only difference is that it also takes a clock signal.) You'd hardly be saving any money with the janky VGA-to-HDMI setup, and the image quality would be worse.
- kragen 4y agoAgreed, but the shitty electronics store around the corner from me doesn't have the breakout you linked in stock, and if I try to get it shipped from overseas they'll ask me to pay with a credit card I don't have, and then it will get held up in customs and probably returned to the sender. Third world problems, I know, but they're still real problems.
- kragen 4y agoCorrecting an error: evidently the iCE40UP5K is no longer Lattice's largest iCE40; https://news.ycombinator.com/item?id=32199137 https://news.ycombinator.com/item?id=32199137 mentions an out-of-stock SparkFun breakout board for the iCE40LP8K, which is about 50% larger. And it's at least two years old! https://old.reddit.com/r/yosys/comments/81yhas/list_of_icestormyosys_compatible_boards_and_where/ https://old.reddit.com/r/yosys/comments/81yhas/list_of_icest... is a four-year-old post that says it's supported by Yosys, and the designer of the breakout board https://www.tindie.com/products/tinyfpga/tinyfpga-bx/ https://www.tindie.com/products/tinyfpga/tinyfpga-bx/ says, "IceStorm currently supports the TinyFPGA B2 and I will be working closely with its creators to implement support for the TinyFPGA BX as well."