1BitSquared · Dev board
1BitSquared iCEBreaker v1.x
A Lattice iCE40UP5K FPGA board with an FT2232H programmer, 16 MB of QSPI flash and three PMOD ports. It was designed for teaching the open source Yosys and nextpnr flow, and that is still what most people buy it for.
- Logic level
- 3.3 V
- Package
- Main board with two 2x6 PMOD host headers (PMOD1A, PMOD1B), a 2x4 RGB LED and supply header, a 1x7 flash header and two 5 V AUX pins, plus a snap-off section on a third 2x6 PMOD (PMOD2). 2.54 mm pitch.
1.Pinout diagram
Highlight a signalhover to preview, click to keep
PMOD pins 1-6, odd pins of the other headers
PMOD pins 7-12, even pins of the other headers
Pin detail
Hover a pin for its mappings and gotchas. Click to keep it here.
- Logic level
- 3.3 V
- Package
- Main board with two 2x6 PMOD host headers (PMOD1A, PMOD1B), a 2x4 RGB LED and supply header, a 1x7 flash header and two 5 V AUX pins, plus a snap-off section on a third 2x6 PMOD (PMOD2). 2.54 mm pitch.
Fig. 1. 1BitSquared iCEBreaker v1.x, Main board with two 2x6 PMOD host headers (PMOD1A, PMOD1B), a 2x4 RGB LED and supply header, a 1x7 flash header and two 5 V AUX pins, plus a snap-off section on a third 2x6 PMOD (PMOD2). 2.54 mm pitch.. Hover or tap a signal to light up every pin that carries it.
2.Caution
- FPGA I/O are 3.3 V at most and not 5 V tolerant. Lattice's absolute maximum for any I/O is 3.6 V.
- Rows run top edge first (PMOD1A, the 5V AUX pins, PMOD1B), then PMOD2 on the right edge and its 5V AUX pins, then the RGB LED header and the flash header along the bottom.
- Every PMOD signal goes through a 33 ohm series resistor. The board fits no pull-ups on the PMOD lines. The FPGA has a weak internal pull-up you can enable per pin.
- The 12 MHz oscillator feeds both the FT2232H and FPGA pin 35 (IOT_46b_G0, global buffer G0). The PCF calls it CLK.
- The second FT2232H channel is a USB serial port: FPGA pin 6 is the FPGA's RX and pin 9 is its TX. The PCF names them RX and TX.
- On the main board: user button on pin 10 (active low, 10 kOhm pull-up), red LED on pin 11 and green LED on pin 37, both active low. Pin 37 is also global buffer G1.
- Configuration comes from a 16 MB Winbond W25Q128JV flash on the FPGA's SPI pins (14, 15, 16, 17), with pins 12 and 13 added for quad mode. The rest of the flash is free for your own data.
- By default iceprog writes the flash. To load the FPGA SRAM directly instead, cut the J15 and J16 traces, bridge them the other way, and use iceprog -S. The design is then lost at power-off.
- The CRESET header (J28) holds the FPGA in reset when shorted. The CDONE LED lights once a design has loaded.
- Jumpers J3 to J13 are open by default. Closing all of them connects FTDI channel B's FIFO mode to the FPGA, and takes over PMOD2, the red and green LEDs and the user button.
- J17 sets the I/O voltage of Bank 2, which is all eight PMOD1A signals, to 3.3 V or 1.8 V. It ships at 3.3 V, and the PMOD1A 3V3 pins stay at 3.3 V either way. J19 (Bank 0 and 1 supply) and J14 (core supply) are there for measuring current.
- The snap-off section carries the five LEDs and three buttons on PMOD2. Once it is snapped off, connect it back through PMOD2 with a 12-pin cable.
- Needs checking: the PCF and the vendor pinout legend put red on pin 39 (RGB0) and blue on pin 41 (RGB2), and the header silkscreen agrees. The v1.0e schematic's symbol for the optional on-board RGB LED (D11, marked unpopulated) wires RGB0 to blue and RGB2 to red. This page follows the PCF and the legend.
3.Full pin reference
Every pin, alias and mapping. This table is included when you print the page.
Table 1. Pin assignments.
| FPGA pin | Name | Also called | Functions | Notes |
|---|---|---|---|---|
| 4 | P1A1 | IOB_8a | IOB_8a, bank 2, Differential pair with P1A7 (true side) | |
| 2 | P1A2 | IOB_6a | IOB_6a, bank 2 | |
| 47 | P1A3 | IOB_2a | IOB_2a, bank 2, Differential pair with P1A10 (true side) | |
| 45 | P1A4 | IOB_5b | IOB_5b, bank 2, Differential pair with P1A8 (complement side) | |
| - | GND | - | PMOD1A pin 5, ground | |
| - | 3V33.3 V | - | PMOD1A pin 6, 3.3 V rail | |
| - | 5V5 V | - | J26 5V AUX pin 1, USB 5 V | 5 V for PMODs that need it. Never connect it to an FPGA pin. |
| 43 | P1B1 | IOT_49a | IOT_49a, bank 0, Differential pair with P1B8 (true side) | |
| 38 | P1B2 | IOT_50b | IOT_50b, bank 0, Differential pair with P1B7 (complement side) | |
| 34 | P1B3 | IOT_44b | IOT_44b, bank 0, Differential pair with FPGA pin 37 (complement side) | Its differential partner is pin 37, which drives the green user LED, so this pin is only practical as a single-ended I/O. |
| 31 | P1B4 | IOT_42b | IOT_42b, bank 0, Differential pair with P1B9 (complement side) | |
| - | GND | - | PMOD1B pin 5, ground | |
| - | 3V33.3 V | - | PMOD1B pin 6, 3.3 V rail | |
| 27 | P2_1 | IOT_38b, LED2 | IOT_38b, bank 0, LED2 on the snap-off section (green, active high), Differential pair with P2_7 (complement side), FTDI FIFO TXE# via open jumper J10 | Also drives snap-off LED2 through 330 ohm to GND while the section is attached, so it is already loaded. |
| 25 | P2_2 | IOT_36b, LED3, I3C | IOT_36b, bank 0, LED3 on the snap-off section (green, active high), I3C-capable pin, Differential pair with P2_8 (complement side), FTDI FIFO D7 via open jumper J8 | Also drives snap-off LED3 through 330 ohm to GND while the section is attached, so it is already loaded. |
| 21 | P2_3 | IOB_23b, LED5 | IOB_23b, bank 1, LED5 on the snap-off section (green, active high), FTDI FIFO D5 via open jumper J6 | Also drives snap-off LED5 through 330 ohm to GND while the section is attached, so it is already loaded. |
| 19 | P2_4 | IOB_29b, BTN2 | IOB_29b, bank 1, Button 2 on the snap-off section (active high), FTDI FIFO D3 via open jumper J4 | While the snap-off section is attached, button 2 pulls this pin to 3.3 V against a 10 kOhm pull-down. Pressed reads high. |
| - | GND | - | PMOD2 pin 5, ground | |
| - | 3V33.3 V | - | PMOD2 pin 6, 3.3 V rail | |
| - | 5V5 V | - | J27 5V AUX pin 1, USB 5 V | |
| 40 | GRN | RGB1, LED_GRN_N, LED_RGB[1] | RGB1, bank 0, J25 pin 1, green, 24 mA LED driver | Open-drain current sink, programmable from 4 to 24 mA. Wire the LED from a supply pin down to this pin; it cannot drive high. |
| - | 1V21.2 V | - | J25 pin 3, 1.2 V core rail | The FPGA core supply. Measuring from it is fine; loading it is not. |
| - | GND | - | J25 pin 5, ground | |
| - | 5V5 V | - | J25 pin 7, USB 5 V | |
| 16 | CSSPI | IOB_35b_SPI_SS, FLASH_SSB, FLASH_CS, iCE_SS_B | IOB_35b_SPI_SS, bank 1, J20 pin 1, flash chip select | Reaches the FPGA only through jumper J18. Pull J18 to program the FPGA SRAM without the flash answering. 10 kOhm pull-up. |
| 14 | IO0SPI | IOB_32a_SPI_SO, FLASH_IO0, FLASH_MOSI, iCE_SO, MOSI | IOB_32a_SPI_SO, bank 1, J20 pin 3, flash DI / IO0 | Joined to the FPGA by trace jumper J15, which you cut and re-solder to swap to direct SRAM programming. |
| 12 | IO2SPI | IOB_22a, FLASH_IO2, FLASH_WP | IOB_22a, bank 1, J20 pin 5, flash WP# / IO2 | Flash write-protect when not in quad mode. 10 kOhm pull-up. |
| - | GND | - | J20 pin 7, ground | |
| 3 | P1A7 | IOB_9b | IOB_9b, bank 2, Differential pair with P1A1 (complement side) | |
| 48 | P1A8 | IOB_4a | IOB_4a, bank 2, Differential pair with P1A4 (true side) | |
| 46 | P1A9 | IOB_0a | IOB_0a, bank 2 | |
| 44 | P1A10Clock | IOB_3b_G6 | IOB_3b_G6, bank 2, Global buffer input G6, Differential pair with P1A3 (complement side) | The only global buffer input on the dual PMOD. Use it for an external clock coming in on PMOD1A. |
| - | GND | - | PMOD1A pin 11, ground | |
| - | 3V33.3 V | - | PMOD1A pin 12, 3.3 V rail | |
| - | GND | - | J26 5V AUX pin 2, ground | |
| 42 | P1B7 | IOT_51a | IOT_51a, bank 0, Differential pair with P1B2 (true side) | |
| 36 | P1B8 | IOT_48b | IOT_48b, bank 0, Differential pair with P1B1 (complement side) | |
| 32 | P1B9 | IOT_43a | IOT_43a, bank 0, Differential pair with P1B4 (true side) | |
| 28 | P1B10 | IOT_41a | IOT_41a, bank 0 | |
| - | GND | - | PMOD1B pin 11, ground | |
| - | 3V33.3 V | - | PMOD1B pin 12, 3.3 V rail | |
| 26 | P2_7 | IOT_39a, LED1 | IOT_39a, bank 0, LED1 on the snap-off section (red, center, active high), Differential pair with P2_1 (true side), FTDI FIFO RXF# via open jumper J9 | Also drives snap-off LED1 through 330 ohm to GND while the section is attached, so it is already loaded. |
| 23 | P2_8 | IOT_37a, LED4, I3C | IOT_37a, bank 0, LED4 on the snap-off section (green, active high), I3C-capable pin, Differential pair with P2_2 (true side), FTDI FIFO D6 via open jumper J7 | Also drives snap-off LED4 through 330 ohm to GND while the section is attached, so it is already loaded. |
| 20 | P2_9Clock | IOB_25b_G3, BTN1 | IOB_25b_G3, bank 1, Global buffer input G3, Button 1 on the snap-off section (active high), FTDI FIFO D4 via open jumper J5 | While the snap-off section is attached, button 1 pulls this pin to 3.3 V against a 10 kOhm pull-down. Pressed reads high. It is also the only global buffer input on PMOD2. |
| 18 | P2_10 | IOB_31b, BTN3 | IOB_31b, bank 1, Button 3 on the snap-off section (active high), FTDI FIFO D2 via open jumper J3 | While the snap-off section is attached, button 3 pulls this pin to 3.3 V against a 10 kOhm pull-down. Pressed reads high. |
| - | GND | - | PMOD2 pin 11, ground | |
| - | 3V33.3 V | - | PMOD2 pin 12, 3.3 V rail | |
| - | GND | - | J27 5V AUX pin 2, ground | |
| 39 | RED | RGB0, LED_RED_N, LED_RGB[0] | RGB0, bank 0, J25 pin 2, red, 24 mA LED driver | Open-drain current sink, programmable from 4 to 24 mA. Wire the LED from a supply pin down to this pin; it cannot drive high. |
| 41 | BLU | RGB2, LED_BLU_N, LED_RGB[2] | RGB2, bank 0, J25 pin 4, blue, 24 mA LED driver | Open-drain current sink, programmable from 4 to 24 mA. Wire the LED from a supply pin down to this pin; it cannot drive high. |
| - | GND | - | J25 pin 6, ground | |
| - | 3V33.3 V | - | J25 pin 8, 3.3 V rail | |
| 15 | SCKSPI | IOB_34a_SPI_SCK, FLASH_SCK, iCE_SCK | IOB_34a_SPI_SCK, bank 1, J20 pin 2, flash clock | Shared by the FPGA, the flash and FTDI channel A, which drives it while programming. 10 kOhm pull-up. |
| 17 | IO1SPI | IOB_33b_SPI_SI, FLASH_IO1, FLASH_MISO, iCE_SI, MISO | IOB_33b_SPI_SI, bank 1, J20 pin 4, flash DO / IO1 | Joined to the FPGA by trace jumper J16, the partner of J15. |
| 13 | IO3SPI | IOB_24a, FLASH_IO3, FLASH_HLD, FLASH_RST | IOB_24a, bank 1, J20 pin 6, flash HOLD# / RESET# / IO3 | Flash hold and reset when not in quad mode. Holding it low freezes the flash. 10 kOhm pull-up. |
Primary sources
To fix a wrong pin, edit data/boards/icebreaker.json.