Jump to content

problem about macro `uvm_analysis_imp_decl

Recommended Posts

Hi, experts,

There is several drivers and one subscriber. I put one uvm_analysis_port in each driver and several imps in the subscriber via using macro `uvm_analysis_imp_decl(_a), `uvm_analysis_imp_decl(_b, etc.

Also Implement functions write_a(), write_b(), etc. write_a() and write_b() have different processing logic. Then, the uvm_analysis_port in each driver invokes one of the functions write_a(), write_b(), etc.


But the VCS reports such an error:


Could not find member 'write_a' in class 'uvm_analysis_port', at
Is there anybody to handle my problem? Thanks in advance!
Link to comment
Share on other sites

You should be calling write() in the analysis_port, not write_a - the analysis_imp automatically translates your call to write to write_a and so on,





Alan, thanks for your reply. I have using uvm_analysis_tlm_fifo instead of uvm_analysis_imp_decl. Hope it will work well.

Link to comment
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.

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...