• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Problem with mailbox.get()

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 64
  • Views 13148
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with mailbox.get()

archive
archive over 17 years ago

Hi,
I'm using ius 62 and found problem with mailboxes
This is the part of the code using the mailbox.get() in a task under a class :

task txCompare(bit [7:0] data);
  begin
    bit  [7:0]  org_data;
    tx.get(org_data);
    if (data != org_data) begin
      $write("%dns : txCompare : Error : Expected data %x, Got %x\n");
      ........................
      ........
And this is the Error of compilation :

ncvlog: *E,BADRFA (../sv/uart_sb.sv,22|18): invalid ref argument usage because actual argument is an automatic variable. 
[unimplemented].

Can someone help me pliz,
Thanx a lot,
ford


Originally posted in cdnusers.org by ford
  • Cancel
Parents
  • archive
    archive over 17 years ago

    This is where nchelp comes in handy.


    % nchelp ncvlog BADRFA
            This task or function call actual argument cannot be connected to the
            specified formal reference argument because of the provided reason.
            E.G. Passing entire automatic arrays by reference is not supported,
            when the array is defined within a function. Move the array definition
            out of the function, or enclose the array within a class.

    Moving the org_data declaration out of the task scope gets rid of the error.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • archive
    archive over 17 years ago

    This is where nchelp comes in handy.


    % nchelp ncvlog BADRFA
            This task or function call actual argument cannot be connected to the
            specified formal reference argument because of the provided reason.
            E.G. Passing entire automatic arrays by reference is not supported,
            when the array is defined within a function. Move the array definition
            out of the function, or enclose the array within a class.

    Moving the org_data declaration out of the task scope gets rid of the error.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information