Giter Site home page Giter Site logo

spinaltemplatemill's Introduction

SpinalTemplateMill

A simple SpinalHDL demo project based on SpinalTemplateSbt ported to the Mill build tool.

Setup

  1. Ensure some reasonable version of Java is installed, e.g. OpenJDK. Works with 1.8.0, tested with 13.0.2.8 also. If you get an error about missing jni.h, also install the development package, e.g., java-*-openjdk-devel.

  2. Install the Mill helper script according to the official documentation steps somewhere into your path, typically /usr/bin/mill, /usr/local/bin/mill, or in your home directory ~/bin/mill.

  3. Ensure a recent version of Verilator is installed if you want to run simulations. Also install gtkwave for inspecting simulation waveforms.

  4. Clone the repository and change into the project top-level directory.

$ git clone https://github.com/typingArtist/SpinalTemplateMill.git
$ cd SpinalTemplateMill
  1. Choose target to run or build:
  • With Verilator installed, run the simulation as the default target:

    ```sh
    $ mill simple.run
    ```
    

You can inspect the Verilog output afterwords in ./simWorkspace/MyTopLevel/rtl/MyTopLevel.v. Run gtkwave ./simWorkspace/MyTopLevel/test.vcd to inspect the waveforms.

  • Or just generate Verilog output:

    ```sh
    $ mill simple.runMain mylib.MyTopLevelVerilog
    ```
    

The generated Verilog output is written to ./MyTopLevel.v.

  • Or just generate VHDL output:

    ```sh
    $ mill simple.runMain mylib.myTopLevelVhdl
    ```
    

The generated VHDL output is written to ./MyTopLevel.vhd.

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.