Skip to content

Python Implementation of the nand2tetris HDL Interpreter

Notifications You must be signed in to change notification settings

enchanteddev/PyHDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HDL

An HDL interpreter implemented in python.

How To Use

  1. Make A folder called hdls in your working directory
  2. Write your CHIP (.hdl) file inside of it
  3. Load your CHIP by its filename (and NOT THE RELATIVE PATH).
from PyHDL import Gate

gate = Gate.fp('Xor.hdl')
print(gate.run({'a': True, 'b': False}))

Output:

Loading: Xor.hdl
Loading: Not.hdl
Loading: And.hdl
Loading: Or.hdl
{'out': True}

Made by Kaushik.

About

Python Implementation of the nand2tetris HDL Interpreter

Topics

Resources

Stars

Watchers

Forks

Languages