Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1069

how to force the variables inside a class? i'm facing this error "FOAUTO"

$
0
0

My intention is to force variables inside a class of type uvm_component. But as I cannot show that confidential code, i'm trying to replicate a similar code.

Here i'm able to force the variable j inside the module main but unable to do a force on the variable num which is inside class example.

i tried to change the scope, but the simulator always throws "*E,FOAUTO: Invalid way of setting automatic variable:"

what is a valid way to force the variables inside the class. I've read the document on the force, but it mentions about verilog/vhdl objects. 


Viewing all articles
Browse latest Browse all 1069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>