• 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. How to probe a signal in verilog and VHDL.

Stats

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

How to probe a signal in verilog and VHDL.

stanleyao
stanleyao over 16 years ago

Hi all,

I encounter a problems.

My design hierarchy is

TOP(VHDL) - MODULE_VHD

                      |-MODULE_VERILOG

I try to probe signal of MODULE_VHD in the MODLE_VERILOG, but the signal path doesn't work.

 

I use the following description to assign SIG to PROBE_SIG.

initial $nc_mirror("PROBE_SIG",":TOP:MODULE_VHD:SIG","");

But it shows the message, ncsim: *E,PNOOBJ: Path element could not be found: TOP.

How to solve problem? Thanks.:)

  • Cancel
  • Mickey
    Mickey over 16 years ago

    Hi,

    Sounds like you have defined the items correctly.  Do you have a simple example?  If so please send it to me (jrodrig@cadence.com).

    As another option you can try to place the ncmirror code in the vhdl block.  To do that add the following to the vhdl:

    library ncutils;

    use ncutils.ncutilities.all;

    then include the nc_mirror line in a process block (and don't include the $ sign):

    process

    begin

      nc_mirror (":path:to:verilog:item", ":path:to:vhdl:item", "");

    end process;

    Best regards,

    Mickey

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

    Hi Mickey,

     Thanks.

    I wrote a simple sample as below.

     

    entity TOP is
        ....

    end entity TOP;

     

    architecture Beh of TOP is

     

      component MODULE_VHDL is

      end component MODULE_VHDL;
     

      component MODULE_VERILOG is

      end component MODULE_VERILOG;



    end architecture Beh

     

    in the MODULE_VERILOG.

    module MODULE_VERILOG();

      reg probe_sig;

      initial $nc_mirror("prob_sig",":TOP:MODULE_VHDL:sig","");

    endmodule

     

    but it will show the message "ncsim: *E,PNOOBJ: Path element could not be found: TOP."

    I want to probe the signal in the MODULE_VHDL, but it looks like only signal below the hierarchy of MODULE_VERILOG could be probed.

    Is it correct?

     

    BR,

    Stanley

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

    Hi Stanleyao,

    Don't include TOP in the VHDL path.  in VHDL the ":" indicates the top and then everything else is relative to that instance.  So the path for the vhdl item is ":<instance of MODULE_VHDL>:sig"

     For example:

    test.vhd

    -------------------------------------------

    library ieee;
    use ieee.std_logic_1164.all;

    entity test is
    end test;


    architecture vhdl of test is

    component dff
           port (d: in std_logic;
                 clk: in std_logic;
                 q: out std_logic);
    end component;

    component nc_mirror_example
    end component;

    signal clk: std_logic := '0';
    signal d: std_logic;
    signal q: std_logic;

    begin
     clk <= not clk after 20 ns;

     process
     begin
      wait for 3 ns; 
      d <= '0';
      wait for 5 ns;
      d <= '1';
      wait for 13 ns;
      d <= '0';

     end process;


     inst:dff port map (d, clk, q); 
     ncmirror_test_inst:nc_mirror_example;

    end vhdl;

    ------------------------------------------------------------------

    dff.vhd

    ------------------------------------------------------------------

    library ieee;
    use ieee.std_logic_1164.all;

    entity dff is
     port ( d, clk: in std_logic;
      q: out std_logic);
    end dff;


    architecture behave of dff is
    begin
       process (clk)
       begin
          if (clk = '1' and clk'event) then
             q <= d;
          end if;
       end process;

    end behave;

    ----------------------------------------------------

    nc_mirror_example.v

    --------------------------------------------------- 

    module nc_mirror_example;
    reg probe_sig;
    initial
      $nc_mirror ("probe_sig", ":inst:q", "");

    endmodule
    -------------------------------------------------

     

    Let me know if that helps.

    Best regards,
    Mickey

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

    Hi Mickey,

     

    It works!

    I mistake the meaning of ":" in VHDL.

    Thanks a lot!! :)

    Best Regards,

    Stanley

    • 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