How kenji-ishimaru/polyphony works
Polyphony is an FPGA-oriented 3D graphics system: bare-metal demo applications issue GLES-style drawing commands through a C graphics library and geometry engine, which interfaces with a hardware rasterizer. The repository also includes Zedboard support and interrupt handling. The README documents major demo capabilities, but the supplied tree contains no Verilog RTL, so the rasterizer is represented as a documented subsystem rather than a source-backed implementation. Several internal links are dashed where the excerpts establish the subsystem but not the specific runtime call.
Main entry points: demo_app Bare-metal demos · hwdep.c Board hardware support · pplib_gl.c GLES API adapter · pplib.c Graphics library
Components 17
Demo applications
- Bare-metal demos
demo_app - Moving lights
demo_app/app_moving_lights.c - Earth texture demo
demo_app/app_earth.c - Cook-Torrance demo
demo_app/app_cook_torrance.c - Skinning demo
demo_app/app_skinning.c - Anaglyph demo
demo_app/app_anaglyph.c
Graphics API
- GLES API adapter
clib/pplib/pplib_gl.c - Graphics library
clib/pplib/pplib.c
Geometry engine
- Vector and matrix math
clib/pplib - Vertex types
clib/pplib - Vertex processing
clib/pplib/pl_vu.c
FPGA platform
- Hardware register map
clib/pplib/pl_address_table.h - Board hardware support
clib/hw_dep/zedboard/hwdep.c - Interrupt handling
clib/hw_dep/zedboard/inthandler.c - RTL rasterizer
Other components
- Demo operator
- Zedboard FPGA
Connections 24
- Demo operator → Bare-metal demos: runs demo
- Bare-metal demos → Moving lights: includes
demo_app/app_moving_lights.c - Bare-metal demos → Earth texture demo: includes
demo_app/app_earth.c - Bare-metal demos → Cook-Torrance demo: includes
demo_app/app_cook_torrance.c - Bare-metal demos → Skinning demo: includes
demo_app/app_skinning.c - Bare-metal demos → Anaglyph demo: includes
demo_app/app_anaglyph.c - Moving lights → Board hardware support: initializes platform
demo_app/app_moving_lights.c - Earth texture demo → Board hardware support: initializes platform
demo_app/app_earth.c - Moving lights → GLES API adapter: issues drawing calls
demo_app/app_moving_lights.c - Earth texture demo → GLES API adapter: issues drawing calls
demo_app/app_earth.c - Cook-Torrance demo → GLES API adapter: uses graphics API
- Skinning demo → GLES API adapter: uses graphics API
- Anaglyph demo → GLES API adapter: uses graphics API
- GLES API adapter → Graphics library: delegates graphics
- Graphics library → Vertex processing: uses vertex processing
- Vertex processing → Vector and matrix math: uses transforms
clib/pplib/pl_vu.c - Vertex processing → Vertex types: processes vertices
clib/pplib/pl_vu.c - Graphics library → Hardware register map: programs hardware
- Board hardware support → Hardware register map: accesses registers
- Board hardware support → Interrupt handling: configures interrupts
- Board hardware support → Vertex processing: references processing
- Board hardware support → Zedboard FPGA: targets board
- RTL rasterizer → Zedboard FPGA: implemented on
- Graphics library → RTL rasterizer: submits rendering work