
A 640x480 @ 60 Hz VGA picture (25.175 MHz pixel clock, 2 bits per colour channel, TinyVGA Pmod
pinout) drawn with combinational logic from the pixel counters, no frame buffer. The design is
for the micro tile (tiles: "micro": clk, rst_n, 8 inputs, 8 outputs, about 300 gates or 80
flip-flops). Hardened with the Tiny Tapeout flow it is 34 flip-flops and 339 cells in total
(excluding fill and tap cells), at 90.2 % utilisation, with the DRC, the 17 precheck tests and the
gate-level test all passing.
The picture is an 80 x 60 grid of 8-pixel cells:
Inputs (all low, or left unconnected, gives the plain scene):
| Pin | Name | Effect when high |
|---|---|---|
ui[0] |
PAUSE | freezes the frame counter, and with it the snow, the lights and the star |
ui[1] |
SNOW_OFF | hides the falling snow |
ui[2] |
SKY_BLACK | black sky instead of dark blue |
ui[3] |
TEXT_GREEN | greeting in green instead of red |
ui[7:4] |
unused |
The outputs are registered, so the picture is one clock late relative to the sync pulses.
The earlier 1x1 version of this project (full scene, MERRY CHRISTMAS! and MALIGAYANG PASKO! in an
8x8 font, 523 lines of Verilog) does not fit a micro tile; this version keeps the tree, the lights, the
star, the snow and the greeting in a smaller font.
Connect a TinyVGA PMOD and a VGA monitor, apply a 25.175 MHz clock and release reset.
A Christmas tree with a blinking star, falling snow and the greeting on the snow should appear.
Set ui[1] high to hide the snow, ui[2] for a black sky, ui[3] for a green greeting, and ui[0] to freeze the animation.
TinyVGA PMOD (https://github.com/mole99/tiny-vga) and a VGA monitor.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | PAUSE (freeze snow, lights and star) | R1 | |
| 1 | SNOW_OFF (hide the falling snow) | G1 | |
| 2 | SKY_BLACK (black sky instead of dark blue) | B1 | |
| 3 | TEXT_GREEN (green greeting instead of red) | VSync | |
| 4 | R0 | ||
| 5 | G0 | ||
| 6 | B0 | ||
| 7 | HSync |