Nested parameterization - run some code only when some parameters change #10879
Unanswered
abarajithan11
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using python to compile a codebase in a different language (verilog) and test it with python generated inputs. I need to compile the system with parameters: C1, C2 and then test it with runtime parameters: R1, R2 . For now, I'm doing this:
Above code does 16 tests (which I want), and compiles the design 16 times (which I want to avoid). Instead I want to execute compile() only 4 times (for every compile time parameter change) and then test the design 4 times each, once per runtime parameter. Something like this:
How can I write this with pytest?
Note: I referred to this, but I'm unable to understand how to execute compile() only for C1 and C2
Beta Was this translation helpful? Give feedback.
All reactions