I am simulating an EDK system and want to use some internal signals at the testbench level (without routing them up to external ports). I thought that you could simply do this by assigning signals using hierachry nomenclature. For a specific example, I want to use the clk0 output of a DCM as a clock at the testbench level. I have tried the following:
wire clk_150_mhz = system_tb.system.dcm_1.dcm_1.clk0 In ModelSim PE I get an error that clk0 could not be found in the hierarchy.
wire clk_150_mhz = ".system_tb.system.dcm_1.dcm_1.clk0" ModelSim does NOT give an error, but the signal is always static 0. The dcm clock is definitely toggling, by the way.
wire clk_150_mhz = "/system_tb/system/dcm_1/dcm_1/clk0" Same as above.
This is supposedly the correct hiearchy. I compiled and vsim'ed the design without trying to connect the lower level signal so I could get a working simulation. I then added the dcm_1 clk0 signal waveform to the window and the hierarchy was system_tb/system/dcm_1/dcm_1/clk0.
So what am I missing? This should be simple and I am grinding my gears here!
Thanks in advance!!