Skip to content

Simple HDL shallowly embedded in Python, for the "Systèmes numériques" course at ENS Paris

License

Notifications You must be signed in to change notification settings

CarottePy/carotte.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carotte.py

Usage

Print the netlist to the standard output:

python carotte.py examples/nadder.py

(replace examples/nadder.py with your own circuit definition!)

Write the netlist to a file:

python carotte.py -o nadder.net examples/nadder.py

Read the help!

python carotte.py -h

Tutorial

A tutorial is available in the 'tutorial' folder. Read the tutorial python files.

Advanced quirks

carotte.py optionally supports ribbon logic operations (e.g. binary operations on values with bus size > 1). Call allow_ribbon_logic_operations(True) to enable this feature.

License

Most of this project is distributed under Creative Commons Zero v1.0 Universal (CC0-1.0). See LICENSE file. assignhooks is distributed under MIT License (MIT).

About

Simple HDL shallowly embedded in Python, for the "Systèmes numériques" course at ENS Paris

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published