uvm-python icon indicating copy to clipboard operation
uvm-python copied to clipboard

Do you support uvm_component_param_utils? Any alternative approach? Any example?

Open sbhutada opened this issue 1 year ago • 3 comments

Is there an example that shows parameterized UVM components and objects? Thanks.

sbhutada avatar Feb 13 '24 18:02 sbhutada

Do you have a usecase for this? Python does not need nor does it have parameters like SystemVerilog. You can set any variable during any UVM phase in uvm-python.

tpoikela avatar Feb 14 '24 20:02 tpoikela

I will send a dummy test case and see what you might suggest.

How well is the sv2py.pl to migrate things over to Python? I am seeing some issues.

Thanks

On Wed, Feb 14, 2024 at 12:26 PM Tuomas Poikela @.***> wrote:

Do you have a usecase for this? Python does not need nor does it have parameters like SystemVerilog. You can set any variable during any UVM phase in uvm-python.

— Reply to this email directly, view it on GitHub https://github.com/tpoikela/uvm-python/issues/51#issuecomment-1944538297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AET6VI4TXIZKLAGECZ6GO33YTUMYNAVCNFSM6AAAAABDHAG5BOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGUZTQMRZG4 . You are receiving this because you authored the thread.Message ID: @.***>

sbhutada avatar Feb 14 '24 23:02 sbhutada

sv2py.pl is meant only for initial conversion, but you need to do manual and fixes adjustments usually, depending on how close your SystemVerilog is to the SV UVM library (since I wrote the script mainly for this conversion).

If you want to have support for particular conversions, you can file a specific issue, or fix it yourself a submit a pull request. As far as I know, there is no sv2py conversion script available that would work 100% with any SV files.

tpoikela avatar Feb 18 '24 11:02 tpoikela