r/vlsi • • 12d 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

17 comments sorted by

3

u/abccbabcac 12d 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 12d 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 12d 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 12d ago

Got it, will surely try this Thank you 😀

1

u/Lemillion080201 11d 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 11d 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 11d 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 11d ago

Got it!! Danke 🙏🏽🙏🏽

1

u/NaturalCommand3579 11d 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 11d ago

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

1

u/Outrageous_Chance298 5d ago

Uvm is just a package SV is there then why not

1

u/Varun_flatworm 5d ago

Yes but shouldn't you pay for the license

1

u/Outrageous_Chance298 1d ago

Or one thing u can do that is look any nearby vlsi training institutes. Approach them and say I'll pay you this much and allow me to use your tools. Well this approach is good as not only uvm you can also exploit GLS and all

1

u/Varun_flatworm 0m ago

Seems valid I'll do this Thanks 🙏🏽

1

u/Outrageous_Chance298 1d ago

As you mentioned Eda playground... You can create account on that. Use college maild id it will work. If you don't have that just use temp mail. Eda playground never asks for re-verification. But the down side you won't be able run big hefty TB. But you can the idea of uvm

1

u/LocksandBlues 9d 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 9d ago

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