• 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 20340
  • 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
Parents
  • 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
Reply
  • 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
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