How to split a string in UVM?

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.

Vtool_How_to_split_a_string_in_uvm

Let’s look at this example:

After running the code we get:‘{“top”, “my_env”, “my_agent”, “my_driver”, “hello”}