Atul

Issue with testbench using UVM code generator

1 post in this topic

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now