
TinyFPGA is a compact, reconfigurable FPGA-style logic fabric implemented as a TinyTapeout-compatible ASIC design. Rather than implementing one fixed digital function, it allows a user to configure lookup tables (LUTs), select the signals connected to their inputs, and choose whether each external output is combinational or registered.
The design contains four 4-input LUTs, a 16-source routing network, four LUT output registers, an 8-bit shared counter/PWM timebase, an 8-bit shift register, and one PWM output channel. Configuration is sent serially through a write-only SPI interface.
TinyFPGA is an educational demonstration of programmable logic and a small FPGA-like architecture. It is not intended to provide the resources or generality of a commercial FPGA.
16'h0000 or 16'hFFFF).The core contains four LUT4 blocks. Each LUT receives four independently routed input signals. Those four bits form a 4-bit address into the LUT's 16-bit truth table:
assign lut_result[i] = truth_table[lut_inputs];
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | IN0 | OUT0 | SPI_SCLK |
| 1 | IN1 | OUT1 | SPI_CS_N |
| 2 | IN2 | OUT2 | SPI_MOSI |
| 3 | IN3 | OUT3 | SPI_MISO |
| 4 | IN4 | ||
| 5 | IN5 | ||
| 6 | IN6 | ||
| 7 | IN7 |