Git Product home page Git Product logo

nand-2-fpga-tetris's Introduction

SystemVerilog Nand2Tetris

Nand2Tetris implemented in SystemVerilog intended to be used on an FPGA. This is mostly me playing around with Verilog and FPGAs so don't use this seriously.

Building and Testing

This project uses Icarus Verilog for simulation and cocotb for verification.

Running make from the top-level directory should cause a build and all tests to run. After the initial build, tests will run incrementally on changed sources. make test can be used to always run all the tests.

Structure

# Chapter Folder
1 Boolean Logic logic_gates/
2 Boolean Arithmetic arithmetic/
3 Memory memory/
4 Machine Language (No hardware)
5 Computer Architecture architecture/
6 Assembler assembler/

Demo

Here is an assembly program running on an Elbert V2 dev board with a Xilinx Spartan 3A FPGA.

The 7-segment display is hooked up the to the D-register, and the CPU is clocked at 12 Hz.

Counter Program Demo

Source Code:

start:
   // Initialize D to 9
   A := 9
   D = A
loop:
   D = D - 1
   A := @loop
   // If D is not zero, jump back up to loop
   D; jne

   // Jump back to start.
   A := @start
   0; jmp

nand-2-fpga-tetris's People

Contributors

ammaraskar avatar

Stargazers

 avatar  avatar Kafuuchin0 avatar Kazuki Ikemori avatar

Watchers

 avatar James Cloos avatar

nand-2-fpga-tetris's Issues

Load hack code

Excuse me. Can I ask how you load hack code to your memory on your fpga?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.