ejessen Posted August 5, 2011 Report Posted August 5, 2011 I am running IUS 10.2. I modified the example in uvm/examples/simple/configuration/manual/my_env_pkg.sv so that it would print the config_db after printing the topology. task run_phase(uvm_phase phase); phase.raise_objection(this); $display("TOPOLOGY ........................................"); uvm_top.print_topology(); $display("CONFIG_DB_DUMP........................................"); uvm_config_db::dump(); #10; phase.drop_objection(this); endtask the topology looks correct: all variables and their values properly appear (a snippet shown below) TOPOLOGY ........................................ UVM_INFO @ 0: reporter [uVMTOP] UVM testbench topology: ---------------------------------------------------- Name Type Size Value ---------------------------------------------------- topenv my_env - @4769 inst1 A - @4871 u1 C - @5025 v integral 32 'h1e s integral 32 'h10 myaa aa_string_string 3 - myaa[bar] string 3 bye myaa[foo] string 3 boo myaa[foobar] string 6 boobah However, the config_db::dump() only shows '?' for values. === resource pool === debug [/^topenv\..*$/] : ? - myaa[bar] [/^.*$/] : ? - myaa[foo] [/^topenv\.inst1\.u1$/] : ? - myaa[foo] [/^.*$/] : ? - since the values in the topology are read from the config_db, it would appear that I'm running into a problem with do_print(), but I do not understand why UVM wouldn't already properly print SV classes like 'int' and 'string'. So I suspect pilot-error, but I haven't been able to spot it. Quote
uwes Posted August 8, 2011 Report Posted August 8, 2011 hi, the printout is "as expected". well, uvm currently relies upon the %p format to print the contents which not all simulators support fully. so for ius this means you do get an "?" printed. the the workaround would be to implement print policy classes but this seems quite some effort for what will be later a %p. /uwe Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.