Coder Social home page Coder Social logo

ninesheep / nyuziprocessor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jbush001/nyuziprocessor

0.0 1.0 0.0 32.13 MB

GPGPU microprocessor architecture

License: Apache License 2.0

Shell 0.10% C++ 27.14% Python 3.35% Perl 0.08% C 48.90% Java 0.11% Tcl 0.01% Assembly 3.52% SystemVerilog 15.95% CMake 0.82% Dockerfile 0.03%

nyuziprocessor's Introduction

Nyuzi Processor

CI Codacy Badge

Nyuzi is an experimental GPGPU processor focused on compute intensive tasks. It includes a synthesizable hardware design written in System Verilog, an instruction set emulator, an LLVM based C/C++ compiler, software libraries, and tests. It can be used to experiment with microarchitectural and instruction set design tradeoffs.

Documentation: https://github.com/jbush001/NyuziProcessor/wiki

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, as well as scripts and components to run on FPGA.

Install Prerequisites

Linux (Ubuntu)

This requires Ubuntu 16 (Xenial Xeres) or later to get the proper package versions. It should work for other distributions, but you will probably need to change some package names. From a terminal, execute the following:

sudo apt-get -y install autoconf cmake make ninja gcc g++ bison flex python \
    python3 perl emacs openjdk-8-jdk swig zlib1g-dev python-dev \
    libxml2-dev libedit-dev libncurses5-dev libsdl2-dev gtkwave python3-pip
pip3 install pillow

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

MacOS

These instruction assume OSX Mavericks or later.

Install XCode from the Mac AppStore (Click Here). Then install the command line compiler tools by opening Terminal and typing the following:

xcode-select --install

Install python libraries:

pip3 install pillow

Install Homebrew from https://brew.sh/, then use it to install the remaining packages from the terminal (do not use sudo):

brew install cmake bison swig sdl2 emacs ninja

Alternatively, you could use MacPorts if that is installed on your system, but you will need to change some of the package names

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)

The following script will download and install the Nyuzi toolchain and Verilator Verilog simulator. Although some Linux package managers have Verilator, they have old versions. It will ask for your root password a few times to install stuff.

./scripts/setup_tools.sh

Build everything else:

cmake .
make

Run tests:

make tests

If you are on a Linux distribution that defaults to python3, you may run into build problems with the compiler. In tools/NyuziToolchain/tools/CMakeLists.txt, comment out the following line:

add_llvm_external_project(lldb)

Occasionally a change will require a new version of the compiler. To rebuild:

git submodule update
cd tools/NyuziToolchain/build
make
sudo make install

Next Steps

Sample applications are available in software/apps. You can run these in the emulator by switching to the build directory and using the run_emulator script (some need 3rd party data files, details are in the READMEs in those directories).

For example, this will render a 3D model in the emulator:

cd software/apps/sceneview
./run_emulator

To run on FPGA, see instructions in hardware/fpga/de2-115/README.md

nyuziprocessor's People

Contributors

award0707 avatar ciprian167 avatar cztsc avatar fulcronz avatar gazben avatar gitter-badger avatar jbush001 avatar luseengithub avatar nickodell avatar notcamelcase avatar olofk avatar psiegl avatar s117 avatar schuler1 avatar

Watchers

 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.