Skip to content
프로젝트

소개

GPGPU 마이크로프로세서 아키텍처

창작 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+5
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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 update && sudo apt-get -y install \
    autoconf cmake make ninja-build gcc g++ bison flex \
    python3 python-is-python3 perl emacs openjdk-8-jdk swig \
    zlib1g-dev python3-dev libxml2-dev libedit-dev \
    libncurses-dev libsdl2-dev gtkwave python3-pip verilator
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.

./scripts/setup_tools.sh

Build everything else:

mkdir build
cd build
cmake ..
make

Run tests:

cd build
make tests

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

관련 프로젝트 살펴보기

불러오는 중…