Coder Social home page Coder Social logo

janrinze / graphite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danodus/graphite

0.0 0.0 0.0 5.33 MB

Open Source 2D/3D Graphics Accelerator

License: MIT License

C++ 3.07% Python 0.90% C 81.61% Verilog 2.66% Assembly 0.20% SystemVerilog 10.92% Makefile 0.65%

graphite's Introduction

Graphite

Graphite is a FPGA based open source 2D/3D graphics accelerator.

Utah Teapot

Features

  • Draw line;
  • Draw textured triangle.

Requirements

  • SDL2
  • Verilator 4.213 or above

Getting Started

git clone https://github.com/danodus/graphite.git
cd graphite/rtl/sim
make run
  • Press 1 to select the cube model;
  • Press 2 to select the teapot model;
  • Press W/A/S/D and arrows to move the camera;
  • Press SPACE to start/stop the rotation of the model;
  • Press TAB to enable/disable the wireframe mode;
  • Press T to enable/disable texture mapping;
  • Press L to increase the number of directional lights;
  • Press G to enable/disable Gouraud shading.

System on Chip

A SoC for the ULX3S is also available with the following features:

  • RISC-V (RV32I + Graphite extension)
  • UART (115200/230400-N-8-1)
  • SDRAM (32MiB shared between CPU and video)
  • Set associative cache (4-way with LRU replacement policy)
  • 640x480 HDMI video output with framebuffer (ARGB4444)
  • Graphite 2D/3D graphics accelerator
  • PS/2 keyboard
  • PS/2 mouse
  • SD Card with hardware SPI
cd soc/src/bios
make
cd ../../rtl/ulx3s
make prog
cd ../../src/examples/test_graphite
make run SERIAL=<serial device>

Open a serial terminal at 230400 bauds and press 'h' for help.

References

The SoC is based on the Oberon project for the ULX3S available here: https://github.com/emard/oberon.

graphite's People

Contributors

danodus 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.