Closed vkomenda closed 2 years ago
Running tests with pytest
instead of make
fixes that.
The jist of it is this: parameters (generally) cannot be changed during the simulation, so the simulation must be re-run separately for each set of parameters. The makefile flow only runs one set of parameters, but you can easily override parameters on the command line for testing purposes. The pytest flow uses pytest.mark.parametrize to generate a set of tests that cover a range of parameter settings. The github actions CI simply runs pytest to run all of the parametrized tests.
The
data_width
parameter is constant 32 in the tests according to logs, despite it having been defined to take values from the[8, 16, 32]
range.Logs for all tests show 32-bit data width.