Repository with various iterations of a factorial calculator to serve as example for people practicing Modeling or HDL concepts applied in Microelectronics
Clone the repository and open a terminal in src
# Python
python factorial.py
python test_factorial.py
python factorial_blk.py
# pytest also works
# Icarus Verilog
make
# This runs the testbench and should display the factorials of 3 and 6
# SystemC
make sc
# Compiles a .syscexe and runs it to run a similar testbench, displaying the factorials of 3 and 6