Litex

My attempt to create a RISC-V microcontroller

Discovering LiteX: Building SoCs Like LEGO

If you’ve ever tried to build a microprocessor from scratch, you know it’s a battlefield full of hazards, memory control, and instruction handling. A true digital mess. In the middle of that chaos, I came across a tool that completely changed the way I see FPGA development: LiteX. What is LiteX? LiteX is a framework for designing SoCs (System on Chip) on FPGA, transforming the process into something like assembling LEGO blocks: you pick a processor, add controllers, memory, peripherals, and done!

May 20, 2025 · 4 min · Fabian Alvarez

HDMI Output with LiteX on the Tang Nano 9K

HDMI output on FPGA platforms is a powerful way to generate real-time graphics directly from custom hardware. In this article, we’ll explore how to implement HDMI output using the LiteX framework on the Tang Nano 9K, a low-cost FPGA with impressive versatility. I’ve already written a guide on how to get started with LiteX and build a basic SoC in the previous post. 🧱 HDMI Architecture in LiteX By default, the tangnano9k.

May 25, 2025 · 3 min · Fabian Alvarez

Linux on LiteX: Building a SoC with Buildroot and Tang Nano 20K

One of the key goals when working with embedded systems is to run an operating system (OS), and there’s one that stands out—especially being free and open-source: Linux. Plus, there are plenty of tools that help us tailor it to our needs. Limitations of the Tang Nano 20K The Tang Nano 20K has quite a few limitations in terms of FPGA resources, which is understandable given its low cost. The main one is RAM: we can only generate a maximum of 8 MiB, so our Linux system needs to be conservative.

June 12, 2025 · 5 min · Fabian Alvarez