Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 463 Bytes

readme.md

File metadata and controls

26 lines (20 loc) · 463 Bytes

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.