• 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. vr_ahb read data when response is ERROR

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 66
  • Views 14011
  • 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

vr_ahb read data when response is ERROR

spark
spark over 16 years ago

Hi all,

I found the AHB eVC's read data has problem when the reponse is ERROR.

For testing a AHB master, I add an active AHB slave in eVC config file. For tracing the transfer I realize a simple scoreboard to recordthe transfer data like below. 

extend AHB SLAVE vr_ahb_agent_monitor {
    on tr_ended {
        if (cur_transfer.kind is not in [IDLE,BUSY]) {
            sys.scbd.record(cur_transfer);
        };
    };
};

I found when cur_transfer is READ and HRESP=ERROR, the HRDATA will become to zero but I checked the HDL waveform, the HRDATA is not zero, I dont know why eVC return the error read data when resp is ERROR. 

  • Cancel
  • Misha Moroshko
    Misha Moroshko over 16 years ago

    Hi,

    Response = ERROR means that the slave could not answer with data, i.e. the rdata value that you see on the bus is probably randomized.

    I would suggest you to collect transfers in the scoreboard only if the slave responded with a valid data, i.e. only when the response is OKAY.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • spark
    spark over 16 years ago

    Thank for your reply.

     

    Allthrough the rdata value may be randomized but I am strange that why the rdata collected by scoreboard is different with rdata in hardware. I think the rdata in hardware is also generated by eVC it should be same as data colected by scoreboar.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Misha Moroshko
    Misha Moroshko over 16 years ago

    I understand what you are saying.

    It seems reasonable that the monitor should collect the data that appears on the bus.

    I will open a CCR for that.

    Thanks !

    BTW, you are not stuck with implementing the scoreboard, right ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • spark
    spark over 16 years ago

    Thank for your reply.

    Misha Moroshko said:
    BTW, you are not stuck with implementing the scoreboard, right ?

    I can use the hardware signal directly but I think it is not good. Now I fix the reponse to OKAY to ignore this problem.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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