Okay, so Wordle took the net by storm and was ported to a myriad of platforms including retro computers and microcontrollers with tight constraints. But have you played it on raw silicon yet?
After tapeout using the OpenLane flow and the Caravel harness, put the manufactured chip on a board with 6 push buttons, a VGA connector through resistor ladders as well as the usual Caravel requirements (voltage regulator, clock source, flash memory & passives) and start playing.
Sources live in
display.vis responsible for showing the game screen. It builds on
vga.vfor interfacing with VGA hardware,
frame.vfor the screen layout and
square.vfor rendering individual squares with letters.
control.vcontains code for the game logic and its inputs. It uses
wordlist.vto generate solutions and to check whether words are valid,
eval.vto calculate the square colors and
debounce.vto separate real button presses from fake ones.
top.vintegrates the two aforementioned parts while
user_project_wrapper.vprovide connections to the Caravel harness
font.memcontains the Apache licensed font Roboto Bold rendered at 38 pts
wordlist.memcontains a public domain word list
picks.memcontains indices of a selection of 1000 words to be used as solutions, filtered by removing plurals, past participles, proper nouns and a few obscure words and then sorting by their frequency on the English Wikipedia
If you are collaborating on this project, please click here to access your collaboration files, and click "Accept Share" in the actions column if you haven't done so already.