Skip to content

mattvenn/xor_vga_fpga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XOR video fun on an FPGA

Saw this: https://hackaday.com/2021/04/13/alien-art-drawn-with-surprisingly-simple-math/

The magic line is:

assign rrggbb = ((x_px ^ y_px) % 10'd9) == 1 ? 6'b111111 : 6'b000000;

And made an FPGA implementation.

xor demo

Simulation instructions

Ensure that you have libsdl2-dev and verilator installed.

sudo apt-get install libsdl2-dev libsdl2-image-dev verilator

To run the simulation use the following commands:

cd rtl
make verilator && ./obj_dir/Vxor

fb_verilator

FPGA Build instructions

It's setup to run on 1 Bit Squared icebreaker with my VGA pmod plugged into pmod1a.

type

make prog

to build & upload to the icebreaker

License

This software and hardware is licensed under the Apache License version 2

About

playing with XOR video patterns on an FPGA

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published