Differences from Standard UVM¶
IVL_UVM follows standard UVM wherever Icarus allows it. These are the differences today.
Standard UVM |
In IVL_UVM |
|---|---|
The objection of a phase counts per object and per level of the hierarchy, and has a drain time. |
The run phase keeps one total. There is no hierarchy, drain time or callbacks, and the object you pass is not recorded. See Phasing: How run_test Runs the Phases. |
The global timeout is 9200 s by default, and |
The default is 1 ms, and |
|
It adds them, sorted by full name, to an |
|
Not available. They are the children of |
The phases are objects in a phase graph. |
The nine phases run in a fixed order, with one shared phase object. |
|
Not yet. |
|
Not yet. |
|
There is no |
A |
It does: connect an analysis port, or an analysis export that leads to it, with |
Ports and exports are resolved at the end of elaboration. A port may connect to the export of a child, within a minimum and maximum number of connections. |
|
Analysis |
Only the analysis ports and the sequencer-driver ports are ported. |
|
They are a |
The sequencer arbitrates between sequences, with priorities, |
One item is handled at a time, and the order in which waiting sequences are served is not
defined. Priorities and |
A driver can return a response. |
Not yet. |
|
Available. |
A sequence can be stopped: |
Not yet, because Icarus has no |
Starting a sequence on a phase: |
Not available, so code that uses |
The |
Not yet. Use |
|
With |
Sequences and items are recorded as transactions. |
Not recorded. |
Field macros for arrays, queues and associative arrays |
Not ported yet. |
Messages show the hierarchical name of the reporting component |
Messages do not show it. Reporting uses the message ID and text only. |
|
It has no effect: Icarus does not support random seeding of a class. |
Virtual interfaces in drivers and monitors |
Icarus does not support virtual interfaces today, so code that reaches DUT signals through a
|
A component created after the build phase is an error |
It is not an error. The component gets no |
The factory creates objects only on request |
The factory also builds one prototype instance of every registered class at time 0 (with
|
Simulator requirements¶
IVL_UVM runs on a development build of Icarus Verilog. Several SystemVerilog features that the standard UVM source depends on are not supported by Icarus yet, for example associative arrays, queues and dynamic arrays of class handles, and virtual interfaces. IVL_UVM works around them where it can; where it cannot, the feature is listed above.
Icarus behaviours to watch for in your own code:
Do not reach through two class handles, as in
req.valinside a driver (the driver, thenreq) ordrv.seq_item_port.connect(...)inside an agent. Icarus reportsNested member path not yet supportedor cannot find the method. Copy the first handle into a local variable and go through that.Do not use
++on a class property inside an expression, as inx = obj.count++;(the Icarus compiler crashes). Write the increment as a statement of its own.A function cannot have
outputorinoutarguments. Useref, or a task.randomize()andconstraintblocks of a class are not supported. Use$urandom.Calling an overridden virtual method through a base-class handle does nothing when the base method has an empty body. Put a
return;in an empty base method that must be overridable.Write
this.in front of a call to an inherited method inside a method of a derived class (this.get_name(), notget_name()). Without it Icarus may report that it cannot find the function, or, in a method defined outside the class body, call a different function with the same name.Do not declare an
eventas a member of a class (Icarus reports a syntax error). Declare it in a package or a module and use it from the class methods.Do not use
wait (expr)whereexprreads a class property (the Icarus compiler stops with an internal error). Loop on an event instead:while (cond) @(ev);.Do not put
fork ... join_noneinside a class task or anautomatictask:vvpaborts when it runs.fork ... joinworks there.disable forkstops only the threads that were forked in the same block. Threads that were forked inside a task you called are not stopped. Fork them in the block that callsdisable forkand put that block in an outerfork begin ... end join, so threads your own code forked earlier are left alone.