Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests in Python? #59

Open
adumont opened this issue Feb 9, 2020 · 0 comments
Open

Tests in Python? #59

adumont opened this issue Feb 9, 2020 · 0 comments

Comments

@adumont
Copy link
Owner

adumont commented Feb 9, 2020

HW tests are run from python, would make sense to do the same with sw tests?

Maybe Python --> Verilator? (instead of iverilog testbench?) --> rewrite the testbench?

Also programmed tests instead of static tests like now?

Static tests: test.in / test.out are written to files, beforehand.

Programmed tests I mean I would write something like

for example, test for A*B, 15 rounds with random values:

for i in range(15)
a=random(10)
b=random(25)
in.append(a)
in.append(b)
out.append(a*b)

runTest("mul",in,out)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant