Giter Site home page Giter Site logo

chisel3-skeleton's Introduction

chisel3-skeleton

Both Chisel3 and FIRRTL are in alpha so there is no guarantee that this repo works, like, ever.

Setup Instructions

Please let me know if you notice any issues or errors with these instructions.

Prerequisites

This toolchain requires JDK7 (it does NOT work with JDK8), sbt, and Verilator (3.880 or newer).

Linux Setup
  1. Install JDK7
    sudo apt-get install openjdk-7-jdk

  2. Install sbt
    echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
    sudo apt-get update
    sudo apt-get install sbt

  3. Install Verilator
    apt-get installs an old version that will not work, so we build from source:
    sudo apt-get install git make autoconf g++ flex bison # Verilator prerequisites
    git clone http://git.veripool.org/git/verilator
    unset VERILATOR_ROOT # For bash, unsetenv for csh
    cd verilator
    git pull # Make sure we're up-to-date
    git checkout verilator_3_880 # Switch to version 3.880
    autoconf # Create ./configure script
    ./configure
    make
    sudo make install

OSX Setup

We recommend using homebrew as it supports updated versions of the prerequisites (including Verilator 3.880):

  1. Install JDK7 (if you don't already have it)
    $ brew cask install caskroom/versions/java7
  2. Install sbt
    $ brew install sbt
  3. Install Verilator
    $ brew install verilator

Project Setup

  1. Clone the repository
    git clone [email protected]:jackkoenig/chisel3-skeleton.git
  2. Update submodules
    cd chisel3-skeleton
    git submodule update --init
  3. Chisel3 now depends on Firrtl so make sure to do a publish-local
    sbt firrtl/publish-local
  4. Run sbt the first time to download dependencies
    sbt
  5. Everything should be set up!
    > run-main test.Driver

chisel3-skeleton's People

Contributors

jackkoenig avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

azidar

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.