• 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. forcing signal to hierarchical connection in SystemVerilog...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 65
  • Views 18331
  • 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

forcing signal to hierarchical connection in SystemVerilog when in interactive mode

Almendrico
Almendrico over 9 years ago

Hi Cadence, all

I know it is possible to do hierarchical assigns/forces from the testbench. e.g:

assign clk   = chip_top.digital_core.some_clock;

I would like to do this kind of stuff from the ncsim interactive console. Can you please advice whether this is supported by ncsim and, if it is not, why ?

Thanks



  • Cancel
  • TAM1
    TAM1 over 9 years ago

    First, you need to have "write" access turned on when you elaborate your design.

    irun -accesss w ...

    Then you can use the TCL commands "deposit" and "force" to put values on internal wires and variables in the design. Look them up in the docs to see how the commands differ and what their options are.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Almendrico
    Almendrico over 9 years ago

    Hi TAM1,

    I should probably have explained better. I am familiar with what these commands do, and I am running with +rwc access. Problem is that ncsim does not like hierarchical references on the RHS of the assignment. I think it has to do with the fact that the hierarchical references are resolved at elaboration time, so they do not work in the TCL interactive console. Stuff like this can be done from the tcl console:

    force chip_top.digital_top.clk = 1'b0;

    But this does not work:

    force chip_top.digital_top.clk = tb.clk;

    (while it works if it is done inside an initial block in the testbench)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TAM1
    TAM1 over 9 years ago

    Well, this will do it. But it's really only a stop-gap. Coding the connection in the HDL will be much more efficient.

    stop -object top.sys_clk -exec {force top.t1.clk #top.sys_clk} -silent -continue

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Almendrico
    Almendrico over 9 years ago

    wow! That was hacky!

    Thanks

    • 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