Get internal signals of vhdl design in ncvhdl (alternative to modelsim's signal spy)

前端 未结 2 684
悲哀的现实
悲哀的现实 2021-01-16 02:34

In ModelSim you can use something like

in modelsim we can use init_signal_spy(\"../.../sig\", mysignal);

to get deep hierarchy signals. Is there a way to get

2条回答
  •  猫巷女王i
    2021-01-16 03:04

    If Cadence tools support VHDL-2008, you can access signals, shared variables, or constants in other levels of your design via external names.

    Direct usage is as follows.

    A <= <>; 
    

    Note that the object must be elaborated before the reference. Since VHDL designs are elaborated in order of instantiation later designs may reference into earlier ones.

    Use an alias to create a local short hand name:

    alias u1_my_sig is <>; 
    

    Path starts with:

    • “.” = path starts at top level: “.tb_top.my_sig”
    • “u1” = path starts from current level: “u1.my_sig”
    • “^” = path starts from level above current: “^u2.my_sig”

提交回复
热议问题