Git Product home page Git Product logo

valhalla-ii's Introduction

Valhalla II

This is a Hello-World project for open-source VHDL synthesis on the Alhambra II FPGA (iCE40 HX4k) board. Further information on the development board can be found on the official webpage of Alhambra Bits.

Main purpose of this repository is to quickly get you started without the hassle of setting up the tool-chain yourself. For that reason, the necessary tools are provided via a Docker image over the internet. When running the script for the first time, Docker will download the required images and uses the tools from within the image. As a result, the tool versions should be relatively up-to-date, further it is not necessary to install the tool-chain on your real machine.

Get Started

  1. Clone this repository
  2. Connect your Alhambra II board via the USB port (use the one marked with PC on the PCB) with your computer
  3. Start a terminal within this repository (it might be required to run sudo -i on Linux, in case you experience issues accessing the USB)
  4. Call make prog which generates the ICE40 bitstream for the exemplary counter in src and programs your Alhambra II board.
  5. Take a look at your development board, that shows the state of a binary counter on the board's LEDs, counting up every 500 ms.

Commands

  • make Generates the ICE40 bitstream (runs synthesis, place and rout, and bitstream generation)
  • make prog Generates the bitstream and programs the device, when connected via USB
  • make clean Removes build folder of the design
  • make format Optimizes the style of the VHDL code

Dependencies

Most dependencies are provided by the Docker images, therefore you do not need to install them yourself.

  • Required: sudo apt install build-essential for Make
  • Required: sudo apt install podman or Docker alternatively to Podman
  • Optional: python3 -m pip install vsg VSG for VHDL code formatting

Thanks

The content in this repository is largely based on examples from ghdl-yosys-plugin and the similar ECP5 flow in ghdl-yosys-blink, therefore a big thanks to those projects and their maintainers.

valhalla-ii's People

Contributors

werni2a avatar

Stargazers

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