Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

learn-fpga

> 编程语言
Open source

Learning FPGA, yosys, nextpnr, and RISC-V

3.6K stars0 likes0 views
WebsiteGitHub

About

Learning FPGA, yosys, nextpnr, and RISC-V

learn-fpga

Learning FPGA, yosys, nextpnr, and RISC-V

Mission statement: create teaching material for FPGAs, processor design and RISC-V, using around $40 per students.

FemtoRV: a minimalistic RISC-V CPU

FemtoRV is a minimalistic RISC-V design, with easy-to-read Verilog sources directly written from the RISC-V specification. The most elementary version (quark), an RV32I core, weights 400 lines of VERILOG (documented version), and 100 lines if you remove the comments. There are also more elaborate versions, the biggest one (petitbateau) is an RV32IMFC core. The repository also includes a companion SoC, with drivers for an UART, a led matrix, a small OLED display, SPI RAM and SDCard. Its most basic configuration fits on the Lattice IceStick (< 1280 LUTs). It can be used for teaching processor design and RISC-V programming.

Playing with LiteX: plug-and-play system to assemble SOCs

The repository includes LiteX examples. The LiteX framework is a well designed and an easy-to-use framework to create SoCs. It lets you create a SoC by assembling components (processor, SDRAM controller, SDCard controller, USB, ...) in Python. FemtoRV is directly supported by LiteX (that directly downloads it from this repository when selected as the SoC's processor).

From Blinky to RISC-V

In Episode I, you will learn to build your own RISC-V processor, step by step, starting from the simplest design (that blinks a LED), to a fully functional RISC-V core that can compute and display graphics.

In Episode II, you will learn how to design a pipelined processor.

Links - Other FPGA resources

  • TinyPrograms Tiny yet interesting C programs to play with your softcore
  • LiteX Framework in Amaranth (Python-based HDL) to build SOCs
  • Silice A new HDL by my friend Sylvain Lefebvre
  • FuseSOC and Edalize, package manager and abstraction of FPGA tools
  • PipelineC Transform a C program into a pipelined specialized core !
  • ultraembedded Amazing resources, FatIOLib,ExactStep...
  • picoRV by Claire Wolf, my principal source of inspiration
  • VexRiscV and NaxRiscV, performant and configurable pipelined and OoO cores, by Charles Papon, in SpinalHDL
  • SERV the tiniest RiscV core, with a bit-serial ALU
  • DarkRiscV a simple pipelined core (written in one night according to the legend)
  • kianRiscV a simple yet complete Linux-capable core + soc
  • TinySys not that tiny SOC and OS
  • Will Green's project F tutorials with nice graphics effects
  • fpga4fun learned there how to create VGA graphics
  • CoreScore how many cores can you fit on a FPGA ?

Basic: more basic things I wrote during May 2020 - June 2020

Files are here. This includes:

  • Blinker: the "hello world" program
  • LedMatrix: play with a 8x8 let matrix, driven by a MAX7219 IC.
  • OLed: play with a SSD1351 OLed display, driven by a 4-wire SPI protocol.
  • Serial: access the included USB-virtual UART pins
  • LedTerminal: display scrolling messages on the LED matrix, obtained from the USB virtual UART
  • FOMU: simple examples for the "FPGA in a USB dongle", including the FrankenVGA experiment !
  • ULX3S HDMI: simple self-contained heavily commented HDMI example.

GitHub Issues· 59 open

View all on GitHub
  • #150

    แนะนำ 11 เว็บ สล็อตเว็บตรง เว็บแท้ สล็อต pg เว็บตรง แตกหนัก RTP สูงสุด 98% รับวอเลท

    Updated Sep 13, 2026
  • #129

    Zero register x0 not initialized anywhere

    Updated Aug 16, 2026
  • #149

    new femtoRV ASIC

    Updated Aug 16, 2026
  • #147

    issue in femtorv

    Updated Jul 16, 2026
  • #141

    Help with Some Scripts and Makefiles

    Updated Feb 28, 2026
  • #143

    Help with Using a Virtual Python Environment and LiteX

    Updated Jan 20, 2026
  • #128

    RISCOF and riscv-arch-test for all CPUs

    Updated Dec 27, 2025
  • #87

    Step 7 Yields No Output

    Updated Sep 22, 2025

Highlights

  • •TinyPrograms Tiny yet interesting C programs to play with your softcore
  • •LiteX Framework in Amaranth (Python-based HDL) to build SOCs
  • •Silice A new HDL by my friend Sylvain Lefebvre
  • •FuseSOC and Edalize, package manager and abstraction of FPGA tools
  • •PipelineC Transform a C program into a pipelined specialized core !
  • •ultraembedded Amazing resources, FatIOLib,ExactStep...
  • •picoRV by Claire Wolf, my principal source of inspiration
  • •VexRiscV and NaxRiscV, performant and configurable pipelined and OoO cores, by Charles Papon, in SpinalHDL
  • •SERV the tiniest RiscV core, with a bit-serial ALU
  • •DarkRiscV a simple pipelined core (written in one night according to the legend)

> Tags

C++

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言