r/Verilog • u/hexa3-0 • 3h ago
made a game console on one tiny tapeout chip (risc-v + gpu with no framebuffer) but it fails setup at the slow corner, how would you fix it
so im an hs student and i made Khatam-V, its a game console on one tiny tapeout chip on GF180, 4x2 tiles. theres an RV32E + Zmmul cpu thats multi cycle and runs C straight from spi flash, a gpu that draws islamic star patterns at 640x480 with absolutely no framebuffer (every pixel gets calculated in one clock), a little 3 voice sound chip, and a game called starfall. took me about 2 weeks to go from vga test stripes to a playable game :)
the CI uses librelane and DRC, LVS, antenna, hold and all twelve prechecks pass, but setup only passes at typical and fast. at SS / 125C / 3.0V its like twelve to fifteen ns short at a 40ns clock, so its more like 18 MHz instead of 25 there. honestly most of that is because the whole pixel calculation happens in one clock
the fixes i have in mind right now are adding an extra clock in the pixel pipeline, making reset synchronous, fixing max slew and splitting up some of the cpu paths.
what i wanna know:
- is that the right order to go at it or am i missing smth obvious
- is sync reset actually worth it for timing on gf180 or is it more of a robustness thing
- does anything in my placement plot look off to you? the tools kind of kept every block together on their own which was pretty cool
repo: https://github.com/hexa3/khatam-v (plz star my repo :D)
writeup with the slack and placement plots: https://sheheryar.xyz/khatam-v/


