Giter Club home page Giter Club logo

jtag_uart_example's Introduction

Intel FPGA JTAG UART Example

This project contains a simple design with a VexRiscv CPU, a bit of RAM, a control register to set the value of 3 LEDs and a status register to read back the value of a button, and a JTAG UART.

It's an example design that goes with my The Intel JTAG UART - Add a Serial Console to Your Design without Extra IO Pins and Write Your Own C and Python Clients for the Intel JTAG UART blog posts.

Contents

  • ./rtl: RTL files

    The Verilog of the VexRiscv.v file was generated from a SpinalHDL (which is not included in the project.)

  • ./sw: firmware for the CPU system

    A small C project that toggles 3 LEDs in sequence. When a button in pressed, the LEDs toggle at double the speed.

    When the design is loaded into an FPGA, doing nios2-terminal will print a "Hello World!" message, and pressing 'r' will reverse the order in which LEDs are toggled.

    Do make to create a firmware image.

  • ./tb: Testbench

    To verify that the design works in simulation.

    Do make to simulate.

  • ./quartus_max10_deca: Quartus project for an Arrow DECA FPGA board

    In addition to all the standard files that are needed for a Quartus project, the ./quartus_max10_deca directory also contains a makefile to compile the design from the command line.

    Do make to compile the whole design from scratch.

    Do make update_ram to only update the RAM contains of an already built bitstream.

    This makefile can trivially be adapted for projects that use different versions of Quartus, and for different designs.

  • ./misc

    Contains helps scripts. In this case, the create_mif.rb script which converts binary files into MIF file (and other formats as well...)

  • ./c_client

    Shows how to use Intel's jtag_atlantic shared library to create your own JTAG UART clients in C.

  • ./py_client

    Uses my intel-jtag-uart package to create a JTAG UART client in Python.

Required software

  • Intel Quartus

    Make sure that the Nios2 SDK is installed, because you need nios2-terminal to connected to the JTAG UART.

  • RISC-V GCC toolchain to compile a firmware image

    Precompiled binaries can be downloaded here.

  • Icarus Verilog Simulator

    On Ubuntu: sudo apt install iverilog

  • GTKWave Waveform viewer

    On Ubuntu: sudo apt install gtkwave

License

See LICENSE. Use this anyway you want, except for:

  • ./rtl/VexRiscv.v, which is released under the MIT license.
  • ./c_client, also released under the MIT license.
  • ./py_client,also released under the MIT license.

jtag_uart_example's People

Contributors

tomverbeure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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