Skip to content

Latest commit

 

History

History
91 lines (71 loc) · 2.66 KB

README.org

File metadata and controls

91 lines (71 loc) · 2.66 KB
  • Space-Invaders

Port of VHDL Space Invaders (https://github.com/David-Estevez/spaceinvaders) to Verilog for the iCE40 H1K

Video

https://www.youtube.com/watch?v=zD_Xy7i3Ies

TODO

  1. Tone generator
  2. Two players
  3. Different Levels
  4. Keeping score of how many invaders you have destroyed
  5. Read the sprite info from a plain text file. Research how to make 32x32 pixel map from picture
  6. Create extensive testbenches for all modules
  7. Use SystemVerilog asserts to verify model
  8. Trunk modules should only have instantiations of other modules. Leaf modules should implement the logic
  9. Use Mealy FSM for sequential logic (All modules but sprite_drawer). More specifically, use two process design method (Gaisler)
  10. Use homogenous naming and coding convention

How to sinthesize & simulate

Top Module

  • Simulate top module
$ make sim
  • Sinthesize top module:
$ make bin
  • Upload to FPGA
$ make upload

Submodules

  • Simulate sub-module

Given a submodule called file.v, and a corresponding testbench called file_tb.v, you can simulate the sub-module using:

$ make MODULE=module sim

Formal verification status

All assertions are SVA (SystemVerilog assertions).

Moduleinmediate assertionsconcurrent assertions
shipdonedone
gameplaydonedone
invadersdonedone
bulletdonedone
timer_1usdonedone
playern/an/a
edge_detector_debouncerpendingpending
vga_controllerpendingpending
sprite_drawerpendingpending

Instructions for using the evaluation version of TabbyCAD

export YOSYSHQ_LICENSE=/home/roland/tabbycad-eval-RolandCoeurjolyLechuga-240115.lic
cd ~/Space-Invaders
~/tabby/bin/sby -f formal/ship.sby

Known issues

Unexpected response from solver: bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)