Code Monkey home page Code Monkey logo

learn-fpga's Introduction

learn-fpga

Learning FPGA, yosys, nextpnr, and RISC-V

This repository contains my little experiments with an IceStick and ULX3S, yosys and nextpnr, learning VERILOG design.

  • FemtoRV: a minimalistic RISC-V CPU, and companion SOC, that fit on the IceStick (< 1280 LUTs)

    • Implements the RV32I instruction set (minus FENCE and SYSTEM).
    • Runs at 80MHz. 4Kb - 6kb RAM, optional memory-mapped IOs (UART, LEDs, OLed screen).
    • Optional RV32IM instruction set (on ECP5).
    • Synthesis using the freeware tools (Yosys and nextpnr).
    • Firmware can be generated with gnu RISC-V toolsuite (script included), in C or in assembly.
    • SOC memory-mapped device drivers and hardware for UART, built-in LEDs, OLed display, led matrix.
    • femtolibC, femtoGL (everything fits in 4kb / 6kb).
    • "femtOS" virtual output support: redirects printf() to UART, OLED screen (or led matrix, WIP).
    • many RISC-V assembly and C demo programs, including graphics for the OLED display.
  • Basic: more basic things I wrote during May 2020 - June 2020

    • 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

learn-fpga's People

Contributors

brunolevy avatar badlydrawnrod avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.