• 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. Parameter Configuration-UVM help!!

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 65
  • Views 14210
  • 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

Parameter Configuration-UVM help!!

Nhatt
Nhatt over 10 years ago

Hi everyone

I'm a newbie on UVM verification, I'm building a environment to verify my design. In my design It has a clock input whose the clock frequency can change from user. I intend to test the design with with different clock frequency. How can I configure this? 

Please have a look at my testbench top

module wdt_top_tb;

// `include "uvm_macros.svh"
parameter cycle_1 = 15.625;
parameter cycle_2 = 20;

//Interface declaration
wdt_if vif();
wdt_clock_mux_if wdt_clk_mux_if0();

//Connects the Interface to the DUT
wt_top dut(vif.clk1,
vif.clk2,
vif.rst_b,

...)

How can I change the cycle_2 parameter with the configuration from testcase?

Thank you!

  • Cancel
Parents
  • StephenH
    StephenH over 10 years ago

    Hello.

    You cannot change a parameter procedurally, because parameters are fixed at elaboration time. You could replace it with a variable instead. However you should consider using the Cadence clock and reset package for this task, it has a really good structure for controlling clocks and resets (!) from UVM sequences. Best of all, it's designed to perform well in large environments and even if you move over to an accelerated testbench setup where your DUT goes onto an emulator you won't have to make code changes to get optimal performance.

    You can find the clock and reset package in our testbench accelleration rapid adoption kit, here:

    Specifically you need the one title "Developing a single environment for software simulation and hardware acceleration"

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • StephenH
    StephenH over 10 years ago

    Hello.

    You cannot change a parameter procedurally, because parameters are fixed at elaboration time. You could replace it with a variable instead. However you should consider using the Cadence clock and reset package for this task, it has a really good structure for controlling clocks and resets (!) from UVM sequences. Best of all, it's designed to perform well in large environments and even if you move over to an accelerated testbench setup where your DUT goes onto an emulator you won't have to make code changes to get optimal performance.

    You can find the clock and reset package in our testbench accelleration rapid adoption kit, here:

    Specifically you need the one title "Developing a single environment for software simulation and hardware acceleration"

    • 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