Hello everyone, I am trying to assign the sequencer from my agent to the sequencer in the environment and I get the next error:
Expression on rhs is not a class or a compatible class and hence cannot be assigned to a class handle on lhs.
Please make sure that lhs and rhs expressions are compatible.
The sequencer and agent are parameterized classes if it’s relevant.
I checked the `uvm_component_param_utils macro and it’s looks good and also the create of the sequencer in the agent and the parameter passing to the sequencer in the agent and to the agent itself.
It could be the parameter override values don’t match between LHS and RHS. But without seeing any code and the actual error message, it’s difficult to answer.
In reply to ramankaur09:
You should show how your driver and monitor code looks like.
In your agent you have 2 analyis ports, aport and monitor_aport. Is this really your intention?
Okay ,thanks for response.Here below is the error, its coming for sequencer part
can u pls suggest,thnks
Error-[SV-ICA] Illegal class assignment
“this.m_seqr = uvm_component_registry#(uvm_pkg::uvm_sequencer#(seq_pkg::stimulus,seq_pkg::stimulus),”“)::create(“m_seqr”, this, /* contxt = “\000” */);”
Expression
‘uvm_component_registry#(uvm_pkg::uvm_sequencer#(seq_pkg::stimulus,seq_pkg::stimulus),“”)::create(“m_seqr”,
this, )’ on rhs is not a class or a compatible class and hence cannot be
assigned to a class handle on lhs.
Please make sure that the lhs and rhs expressions are compatible.
Okay ,thanks for response.Here below is the error, its coming for sequencer part
can u pls suggest,thnks
Error-[SV-ICA] Illegal class assignment
“this.m_seqr = uvm_component_registry#(uvm_pkg::uvm_sequencer#(seq_pkg::stimulus,seq_pkg::stimulus),”“)::create(“m_seqr”, this, /* contxt = “\000” */);”
Expression
‘uvm_component_registry#(uvm_pkg::uvm_sequencer#(seq_pkg::stimulus,seq_pkg::stimulus),“”)::create(“m_seqr”,
this, )’ on rhs is not a class or a compatible class and hence cannot be
assigned to a class handle on lhs.
Please make sure that the lhs and rhs expressions are compatible.