leonardt / fault

A Python package for testing hardware (part of the magma ecosystem)
BSD 3-Clause "New" or "Revised" License
41 stars 13 forks source link

Values of 33-64 don't work with verilator #168

Open mbstrange2 opened 5 years ago

mbstrange2 commented 5 years ago

https://github.com/leonardt/fault/blob/f8373e14dfa96d1cab6676387e17202c10df16c4/fault/verilator_target.py#L21-L22

Also needs import platform again

leonardt commented 5 years ago

Can you provide the verilator version you're using and an example test bench that shows the issue

mbstrange2 commented 5 years ago

https://github.com/StanfordAHA/lake -> run pytest tests/test_aggregator.py::test_aggregator[8-64], Verilator 4.018 2019-08-29 rev UNKNOWN_REV

Tests work when values not between [33-64] and they all work when I set max_bits=64 in verilator_target.py