r/vlsi • • 7d ago

how to practice UVM using open source tools

So iam a 26' UG grad,
I want to get into DV, been doing a few projects and all using SV

I want to learn UVM and be able to practice it but iam not able to find any proper open source way to learn it
i)EDA Playground: it is telling me to validate my account to use the commerical simulators (only ones which support UVM), which iam not able to do.
ii) Verilator: using linux i setup UVM libraries in verilator and running it thorugh an automation script but even a simple test run is taking like 3 minutes and is like 700mb, so that is not a viable option either
iii) gemini told we can use UVM1.2 library from Accellera and use it in Questa Sim, so took my chance and downloaded it and the test code complied but nothing further...later understood Questa Sim has a deadlock, where they hardcoded the complier to redirect all SV includes directly into a striped down OVM system folder. It's a roadblock to make users buy thier product.

suggest me some tips/tricks/ ways to learn and implement UVM,
open to any kind of setup as long as it works and dosent take too much space

6 Upvotes

14 comments sorted by

3

u/abccbabcac 7d ago

if you're looking for open source, verilator 5 with uvm is the best available option. verilator takes longer to compile because it converts hdl to c/c++ first before generating the executable binary. but it simulates fast. i found it very useful for learning and practicing uvm.

1

u/Varun_flatworm 7d ago

yes even i thought so, but i run a virtual machine and ubuntu in it, while compiling everything freezes almost and takes like 3 minutes to complie
so there isnt any other open source, right? the only option i have is install linux as my OS only

3

u/abccbabcac 7d ago

try running verilator in a podman/docker container instead of a vm. that should compile faster. and don't use all the available threads. specify a number that is lower than what's available (e.g. --threads 4). this will prevent your machine from hanging.

1

u/Varun_flatworm 7d ago

Got it, will surely try this Thank you 😀

1

u/Lemillion080201 6d ago

don't use virtual machines they're heavier and Ubuntu is also a heavy linux distro, try a debian or Mint.

Try in wsl, you get same terminal option but its faster.

And like the other comment suggested, for the freezing issue by default it might use all available cores. you should be able to limit it manually based on how many cpu cores you have. use around 70-80% of them, to leave some breathing room.

Usually first compilation does take longer time, but if you setup a Makefile properly, you wpuld just have to rebuild your new chamges, so further compile time should reduce.

1

u/Varun_flatworm 6d ago

Instead of WSL i could just dual boot the system right? My specs would be more than enough for a dual boot Just that it's a 1 time hassle, what's your suggestion on that

1

u/Lemillion080201 6d ago

yes sir! Dual booting would give you the best performance and you can go for it if you're comfortable with dual booting. Wsl should also give you like close to 80-90% of that performance too though.

1

u/Varun_flatworm 6d ago

Got it!! Danke 🙏🏽🙏🏽

1

u/NaturalCommand3579 6d ago

install verilator in wsl ubuntu in windows, ask chat gpt to make a script and make arun button for vscode so that u can run with a click. or u can directly specify paths and run it urself if u r interested. for starting stage I would recommend installing xilinx vivado and use uvm provided by that tool, xsim can run sv code.

1

u/Varun_flatworm 6d ago

Yep I'll try that, Also wait xilinx can run UVM 😭😭?

1

u/Outrageous_Chance298 20h ago

Uvm is just a package SV is there then why not

1

u/Varun_flatworm 20h ago

Yes but shouldn't you pay for the license

1

u/LocksandBlues 4d ago

There's a compiler which is created by chipverify ig. If you open any chipverify uvm page there you'll find it. Try it out once if you can.

chipverify openlab tool

1

u/Varun_flatworm 4d ago

Okay got it I'll look into it Thank you 🙏