fvutils / pyvsc

Python packages providing a library for Verification Stimulus and Coverage
https://fvutils.github.io/pyvsc
Apache License 2.0
113 stars 26 forks source link

User control of EN_DEBUG flag #72

Closed edcote closed 3 years ago

edcote commented 3 years ago

RE: https://github.com/fvutils/pyvsc/discussions/65#discussioncomment-675716

This is low priority enhancement to allow user control of EN_DEBUG flag in https://github.com/fvutils/pyvsc/blob/master/src/vsc/model/randomizer.py#L60

If there's a configuration mechanism in the code I haven't seen, please point me to it and I'll implement.

Otherwise, I prefer not to rig up a mechanism unaligned with developer intent.

mballance commented 3 years ago

Hi @edcote, Good point. Having a public mechanism for controlling debug would be helpful. I'm actually thinking we might benefit from a couple levels at which debug can be set, and (possibly) a couple levels of verbosity:

I think a good first step is just to expose user-level control. We can worry later about verbosity levels. Let me give this a bit of thought. Shouldn't be difficult to implement.

mballance commented 3 years ago

The per-solve option has been implemented. Closing this for now. To use, pass debug= to randomize call:

item.randomize(debug=1)