• 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. eVC AHB: use of get_first_address()

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 64
  • Views 15203
  • 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

eVC AHB: use of get_first_address()

archive
archive over 18 years ago

Hello,

I'm using the eVC AHB. I would send a write burst starting from a random address and read back the data starting from the same address of the write transaction. I saw that in the vr_ahb_master_driven_burst.e there is the method get_first_address(). I tried to use it in the following way:
        
         var rd_first_addr : vr_ahb_address;
         rd_first_addr = burst.get_first_address();


but I get the error message: Cannot access method 'get_first_address' of package 'vr_ahb'.
While using :  rd_first_addr = write_burst.first_address; works fine.
The method get_first_address(); returns the firs_address, I do not understand why I get the error message when I compile the e code.
In the same test I call a different method defined in the same file (e.g. .get_transaction_bursts()) that works properly.

Many thanks,

David.
   



Originally posted in cdnusers.org by dvincenz
  • Cancel
  • archive
    archive over 18 years ago

    Hello David,

    you need to add the statement

    package vr_ahb;

    on top of the file where you use burst.get_first_address().

    This is because the method was defined using the package statement:
    package get_first_address() :vr_ahb_address is empty; (in vr_ahb_burst.e)

    For more info, please search for "package" in the Specman documentation.

    Regards,
    -hannes


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

    hi guys,

    can any one help me on vr_ahb_evc, i'm trying to create testcase for arbiter. in this i need to take full control on busrequest and i want to create more scenarious for hbusreq. any possible way to control hbusreq in AHB evc( vr_ahb_evc) by using sequences.

    Thanks.


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

    Hi dude,

    If you look at your coverage reports in your regressions, do you see any relevant areas in which coverage is limited or zero? In that case, you could write a testcase for this, with a master sequence or two that steer traffic in the direction you need more coverage.

    Can you describe on a high level how you've set up your AHB environment?

    Hilmar


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

    Hi Hilmar,
    Thanks a lot. 2 master and one slave AHB environment. i configured AHB evc with hdl source directory. actually my intension is to check AHB bus ( Arbiter, mastermux and decoder). I configured 2 master evc and 1 slave evc, then my dut is AHB bus. now i'm doing testcase for the same. My intension to control hbusreq signal. because i couldn't seen hbusreq signal details in ahb_evc pdf. probably, i think that req_delay, but i'm not getting proper deatils abt this. if possible can u give me brief abt this.


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

    Hi dude,

    If I understand you correctly, you've got the following in RTL:
    - Arbiter
    - Decoder
    - Muxes

    That would mean you need the following passive agents:
    - Arbiter
    - Decoder

    And of course the following active agents:
    - 2 Masters
    - 1 Slave

    If this is correct, then that's a setup I'd pick too, if you're verifying the arbiter, decoder and bus muxes.

    Once again, I'd start with not defining any specific sequences! The reason for this, is that you may be doing double work which the standard constrained randomly generated sequences would already cover. I'd set up a number of runs in a vmanager regression, let's say 100, to get some feeling for the coverage that'll already be generated for your vplan. You'll find that many of the special AHB traffic coverage demands in your vplan can already be covered by what you get out of the box.

    Analyzing your regression may give you a number of coverage holes which need to be filled. This is where you should put your focus in writing specific sequences. If your arbiter needs to be exposed to specific scenarios which are very difficult to reach with pure random sequences, you can steer your masters towards this behaviour.

    You mention the hbusreq signals. Instead of doing low-level hacking into these signals, set up master sequences that will generate the request patterns your looking for. This can be found on page 5-40 of the AHB eVC documentation. You may find that you need to have specific behaviour for both of your masters which is closely related. In that case you can define a virtual sequence, with a virtual sequence driver, in your environment that controls both masters. You can find more on this in the Specman documentation, by searching for virtual sequences. This can be found in the eRM section, in the sequences subsection.

    Most of all, I can recommend asking your local Cadence AE to visit to show you around and provide hands-on help with your problems.

    Good luck!
    Hilmar


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

    Hi Hilmar,

    Thanks a lot.


    Originally posted in cdnusers.org by vlsi_dude
    • 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