Jump to content
Atul

Issue with testbench using UVM code generator

Recommended Posts

Hello All,

I am working on SystemC-UVM based testbench.
I have created UVM based testbench using UVM code generator.
Here I am using three different agents in UVM generator which I have defined as a part of the configuration file which was further being provided to UVM code generator to generate test bench skeleton.

And here, in of the agent driver, the code snippet is as:

        // Drive the inputs of the DUT
        UVM_INFO(this->name(),"Driving transaction:",0);
        req.print();
        // TODO put your code here


But when I try to read the value in my test-case, then I see an error as:

Quote

UVM_INFO uvm_tlm_agent/tlm_agent_driver.h(76) @ 3 us: reporter [top_test_base.m_top_env.m_env_tlm_agent.m_agent.m_driver] Driving transaction:
Error: (E403) conversion failed: character string is zero

 

 

And this error is observed inside print() function, once I comment the line "req.print()" from the above snippet the error is no more observed and my test-case runs fine.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...