Skip to content

RCoeurjoly/Space-Invaders

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • 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)

About

Space Invaders in Verilog for the iCE40 H1K

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published