A Python toolbox for building complex digital hardware