Screen Display Simulator written in VHDL and JS. Generates RGB pixel data file from VHDL simulation and displays the pixels on the browser. Expects 24-bit RGB data.
Example output for pattern_generator.vhd and objectbuffer.vhd are shown below.
- create a project and import files in the
rtldirectory. - add the testbench from
tbdirectory and run the testbench untilvsyncis asserted. rgb.txtdata should be generated under project folder.- open
display.htmlfromtoolsdirectory in your browser, load the generatedrgb.txtdata, choose the resolution and hitRender screenbutton.
NOTE: Windows support is not added yet.
- Install GHDL and add it to your path.
- run
maketo check VHDL syntax in your code - run
make simulateto create the RGB data. This runs thetb_display.vhdtestbench for one full frame. It stores pixel color data per clock when in the active video area. Saves in a file calledrgb.txt. This will take a couple seconds and will take around ~10MB space. - open
display.htmlfromtoolsdirectory in your browser, choose the resolution and hitRender screenbutton.
+- makefile : GHDL simulation / RGB data generation
+- rtl/
| -- timing_generator.vhd : timing generator
| -- pattern_generator.vhd : color spectrum pattern
| -- objectbuffer.vhd : generates objects
+- tb/
| -- tb_display.vhd : generates rgb values for one frame
+- tools/
|-- display.html : HTML / JS code to display the generated rgb data

