samng Posted September 19, 2013 Report Share Posted September 19, 2013 Hi, I am trying to connect uvm_analysis_export (SV) and tlm_aanalysis_port (SC) using UVMC like the following: uvm_analysis_export #(obs_xact#(WL,DEP)) sc_export; uvmc_tlm#(obs_xact#(WL,DEP))::connect(sc_export,"fft_ap"); but I got the follow error message: Incompatible complex type usage in task or function call. The following expression is incompatible with the formal parameter of the function. The type of the actual is 'class uvm_pkg::uvm_analysis_export#(class test_pkg::obs_xact#(12,512))', while the type of the formal is 'class uvm_pkg::uvm_port_base#(class uvm_pkg::uvm_tlm_if#(class test_pkg::obs_xact#(12,512),enum uvm_pkg::uvm_tlm_phase_e))'. Expression: this.sc_export Source info: uvmc_tlm#(test_pkg::obs_xact#(12,512),uvm_pkg::uvm_tlm_phase_e,uvmc_pkg::uvmc_default_converter#(uvm_pkg::uvm_object))::connect(this.sc_export, "fft_ap", null ... Isn't uvm_analysis_export is extended from uvm_port_base#(uvm_tlm_if#())? Thanks Sam Quote Link to comment Share on other sites More sharing options...
apfitch Posted September 19, 2013 Report Share Posted September 19, 2013 Hi Sam, in the error message it mentions uvm_tlm_phase_e, which is a TLM2 feature. Are you sure you've declared both sides using uvmc_tlm (not uvmc_tlm2)? kind regards Alan Quote Link to comment Share on other sites More sharing options...
samng Posted September 19, 2013 Author Report Share Posted September 19, 2013 Alan, thanks for the reply. I think uvmc_tlm is for TLM2 and uvmc_tlm1 is used for TLM1 connection. Is that right? I think tlm_analysis_port is a TLM2 feature, right? Thanks, Sam Quote Link to comment Share on other sites More sharing options...
apfitch Posted September 19, 2013 Report Share Posted September 19, 2013 No analysis ports are TLM1 (in fact in SystemC they are technically a utility, i.e. not part of the standard). I looked at the docs and it seemed to say you have to use uvmc_tlm (which I think is tlm1) for analysis ports, regards Alan Quote Link to comment Share on other sites More sharing options...
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.