Forum Discussion
Hi,
I run enough cycles for simulation, but the PLL output c0, locked are "1'hz".
I have not seen any warning/error during Modelsim compilation.
Do I need to compile other files?
Hi
Are all signals that you have seen a Z is at the same hierarchy as input inclk0? Are you seeing Z for all the signals at lower hierarchy or they are at Top level of testbench?
If you can share a sample example that would be good.
Thanks.
Eng Wei
- EngWei_O_Intel4 years ago
Frequent Contributor
In your modelsim script can you try to add below lines:
add wave /<your_testbench_top>/<your_top_design>/<your_signal_hierarchy_level>/*view structure
view signals
run -all- sugi4 years ago
New Contributor
Hi,
Thank you for the advice.
I added a line to the modelsim script, but it didn't change.
The source code is a simple one created for the PLL test.
The pll_generate module is set to divide the 50MHz input clock into 25MHz.
The simulation results are also attached.
Below source code
///////////////////////////////////////////////////
module test_pll(
CLK50M,
RESET
);
input CLK50M;
input RESET;
wire CLK25M_pll;
wire locked;
pll_generate U_pll_generate (
.areset (RESET ),
.inclk0 (CLK50M ),
.c0 (CLK25M_pll ),
.locked (locked )
);
endmodule/////////////////////////////////////////////////
Below simulation result
- EngWei_O_Intel4 years ago
Frequent Contributor
Hi there
Are you able to share your sample proj? Would like to look at your entire setup including the testbench.
Thanks.
Eng Wei