Giter Club home page Giter Club logo

nyuziprocessor's Introduction

Nyuzi Processor

Build Status Chat at https://gitter.im/jbush001/NyuziProcessor

Nyuzi is an experimental multicore GPGPU processor. It supports vector floating point, hardware multithreading, and cache coherence. The SystemVerilog-based hardware implementation is synthesizable and runs on FPGA. This project also includes an LLVM-based C++ toolchain, tests, and other tools. It is useful for microarchitecture experimentation, performance modeling, and parallel software development.

Documentation: https://github.com/jbush001/NyuziProcessor/wiki
Mailing list: https://groups.google.com/forum/#!forum/nyuzi-processor-dev
License: Apache 2.0
Blog: http://latchup.blogspot.com/

Getting Started

The following instructions explain how to set up the Nyuzi development environment. This includes an emulator and cycle-accurate hardware simulator, which allow hardware and software development without an FPGA.

Install Prerequisites

Linux (Ubuntu)

This requires Ubuntu 14 or later to get the proper package versions. It should work for other distributions, but you will probably need to change some package names.

sudo apt-get -y install cmake make gcc g++ bison flex python perl emacs curl openjdk-7-jdk swig zlib1g-dev python-dev libxml2-dev libedit-dev ncurses-dev libsdl2-dev gtkwave imagemagick 

Emacs is used for verilog-mode AUTO macros. The makefile executes this operation in batch mode

MacOS

These instructions assume Mavericks or later. If you don't have XCode, install the command line compiler like this:

xcode-select --install

The next command installs the remaining packages, assuming you've installed MacPorts:

sudo port install cmake bison swig swig-python imagemagick libsdl2 curl emacs

You may optionally install GTKWave for analyzing waveform files.

Windows

I have not tested this on Windows. Many of the libraries are cross platform, so it should be possible to port it. But the easiest route is probably to run Linux under a virtual machine like VirtualBox.

Build (Linux & MacOS)

Download and build Verilator as follows (although some Linux package managers have it, it is out of date). From the top level directory of this project:

cd tools
curl http://www.veripool.org/ftp/verilator-3.876.tgz | tar xz
cd verilator-3.876/ 
./configure 
make
sudo make install
cd ../..

Download and build the Nyuzi toolchain as follows (This clones my repo. If you want to use your own fork, change the clone URL):

git clone https://github.com/jbush001/NyuziToolchain.git tools/NyuziToolchain
cd tools/NyuziToolchain
mkdir build
cd build
cmake .. 
make
sudo make install
cd ../../..

Build remaining tools and hardware model. Run unit tests.

make
make test

What next?

Sample applications are available in software/apps. You can run these in the emulator by typing 'make run' (some need 3rd party data files, details are in the READMEs in those directories).

For example, this will render a 3D model:

cd software/apps/sceneview
make run

Running on FPGA

See instructions in hardware/fpga/de2-115/README.md

nyuziprocessor's People

Contributors

jbush001 avatar fulcronz avatar psiegl avatar gazben avatar gitter-badger avatar

Watchers

James Cloos 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.