
Tiny Escape Room is a ten-room escape room in one tile. The seven-segment display shows the room you are in (0 to 9). Each room is a small hardware puzzle. A room ignores all input until you reach it, and clearing it opens the next one. Clearing room 9 sends a flag out of the serial output pin and the display shows F.
The source is public, and reading the Verilog is part of the game. Constants are in the source on purpose. The only secret that changes between runs is a 16-bit seed, latched from a free-running counter when you clear room 0, so it depends on when you press submit.
| Room | Name | The hardware idea |
|---|---|---|
| 0 | Cell door | An 8-bit comparator checks the switches against a constant when you press submit. |
| 1 | Corridor | A small state machine wants a sequence of codes, and one of its edges is a shortcut. |
| 2 | Intercom | A serial shift register takes a 16-bit frame, clocked by you, and compares it on submit. |
| 3 | Vault | A check and the use of the checked value happen on different clock edges (time of check, time of use). |
| 4 | Guard | A byte-by-byte password compare stops at the first wrong byte, and the busy pin shows how long it took. |
| 5 | Hatch | An undocumented serial command opens a debug port that dumps internal state. |
| 6 | Radio room | A 16-bit LFSR, loaded from the seed, encrypts what you send. Predict its next output. |
| 7 | Server closet | A many-to-one mixer folds a 32-bit input to 16 bits. Find any input that hits the target. Wrong answers lock you out. |
| 8 | Archive | The chip tags messages with a CRC-8, but will not tag messages that start with 0xAD. Forge one. |
| 9 | Exit | Enter the seed. You can rebuild it from what rooms 4 and 6 leaked. |
Feedback:
uio[6] pulses.uio[7] pulses.uio[4], MSB first.Reset (rst_n low) clears all progress and returns to room 0.
The rooms share one 32-bit shift register, one comparator and one free-running counter, which is how ten rooms fit in one tile.
Use the Tiny Tapeout demo board. The RP2040 drives the clock and reset. The animation and buzzer timings assume a 1 MHz clock. The game also works at other rates, single-stepped included, but then the animations and tones run at a different speed.
ui_in) and press submit (uio[0], rising edge). Some rooms take
one byte per submit.uio[1] (data in) and uio[2] (serial clock in; data is sampled on its rising edge).
They answer on uio[4] (serial out). Drive these from the RP2040.uio[3].Room 3's race and room 4's timing work best with a clock you control, so single-step it from the RP2040.
The repository has a scripted solver for every room (solver/), a cocotb testbench that plays the whole game
(test/test.py) and a host script that plays it through a Raspberry Pi Pico wired like the demo board. See
docs/solvers.md in the repository. These are spoilers, so try the rooms first.
uio[0] (submit). Debounce it, or drive submit from the RP2040.uio[5].uio[1], uio[2], uio[3] and uio[4] for the
serial rooms.uio[6] (door opened) and uio[7] (wrong code).| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | CODE0 | SEG_A | SUBMIT |
| 1 | CODE1 | SEG_B | SERIAL_IN |
| 2 | CODE2 | SEG_C | SERIAL_CLK |
| 3 | CODE3 | SEG_D | BUSY |
| 4 | CODE4 | SEG_E | SERIAL_OUT |
| 5 | CODE5 | SEG_F | BUZZER |
| 6 | CODE6 | SEG_G | DOOR_PULSE |
| 7 | CODE7 | SEG_DP | WRONG_PULSE |