Did you know that UVM provides a built-in function to easily split strings?
By using the uvm_split_string function, you can divide a string based on a specified delimiter. Just pass the string and the delimiter as arguments, and the function will handle the splitting for you.
Let’s look at this example:
After running the code we get:‘{“top”, “my_env”, “my_agent”, “my_driver”, “hello”}