|
发表于 2010-5-8 22:56:26
|
显示全部楼层
I hadn't learn OVM before, but I'm a little familiar with SystemVerilog.
So sharing with you, something which might wrong.
1. lookup should be a function declared preceding. {} used for concatenation, for example, say slave_name is "slave", then {slave_name,".monitor"} should be string "slave.monitor". Then lookup("slave.monitor") would return the type of the slave.monitor. In addition, the system function $cast convert the type of tmp_slave_monitor to type of slave.monitor.
2. void'() used in scenario that wanna call a function but not use the return value. |
|