Giter Club home page Giter Club logo

de10nano_fpga_linux_config's Introduction

DE10-Nano FPGA Configuration from Linux

Nicolás Hasbún A. 18 - 05 - 2018

Software to configure the FPGA portion of the Cyclone V SoC. It works under Linux focused on the de10nano platform but should be easily portable to other platforms using the same family chip.

Main sources to accomplish this work:

  • Cyclone V HPS Memory Map - LINK
  • Cyclone V Hard Processor System Technical Reference Manual (Cyclone V Handbook Volume 3) section FPGA MANAGER.

This is fully implemented in C using direct register access to take control of the FPGA Manager device which is used by the HPS to configure the FPGA. No external libraries are used other than Linux system calls and SoCAL libraries included on Quartus installations. Partial reconfiguration is still not studied but could be implemented in the future since it gives an important boost to create many applications.

Programming FPGA from HPS could be accomplished at three different stages:

  • From Preloader (at start)
  • From U-boot (at start)
  • From Linux

Preloader and U-boot methods are well covered on Altera documentation being U-boot the most straightforward of them since you only need to copy your rbf file to sd card. Linux method changes between distributions and documentation for it doesn't always work or it is outdated (as seen on Rocketboards). By using direct register access to FPGA Manager we can accomplish a Linux method agnostic to the current distribution or internal system configuration.

Compilation

Altera Embedded Command Shell (16.1 or newer) should be used to compile the project. Just run "make" and there you go.

Loading rbf File

RBF file should be created from Quartus Project with compression enabled and MSEL [4:0] pins with 01010 settings. Code is easily modifiable to match other MSEL configurations (keep an eye on cdgwdth and cdratio registers) but Altera recommends using always FPP x 32 configuration scheme anyways.

Main program is called fpga_rbf_load and it will look for fpga_config_file.rbf file to config the FPGA.

de10nano_fpga_linux_config's People

Contributors

nhasbun avatar toolboc avatar

Watchers

 avatar  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.