pyhdl

A simpe HDL for learning hardware design.


Keywords
hdl, hardware, design, simple
License
MIT
Install
pip install pyhdl==0.1.0

Documentation

PyHDL

Travis CI codecov.io Join the chat at https://gitter.im/SdNssr/pyhdl

PyPI version PyPI License

A simple HDL written in Python.

from pyhdl import Wire, NandGate
a, b, out = Wire(), Wire(), Wire()
gate = NandGate(a=a, b=b, out=out)

a.val, b.val = '1', '1'
gate.eval()
print out.val # 0

You can read the docs at http://pyhdl.sdnssr.me.