FPGAZHAO 发表于 2014-11-23 21:46:50

在Quartus中用MegaWizard Plug-In Manager生成的PLL如何在Modelsim中仿真

我的波形出不来。。。。。

小梅哥 发表于 2014-11-24 15:02:47

首先,你得告诉我们你的PLL在生成的时候是怎么设置的,其次,你得让我们看看你的testbench,看是否是testbench写的有问题。

FPGAZHAO 发表于 2014-11-24 18:08:46

module PPPL(
         inclk0,
                        c0
                        );
input inclk0;
output c0;
PPL PPL(
         .inclk0(inclk0),
                        .c0(c0)
                        );
endmodule

FPGAZHAO 发表于 2014-11-24 18:17:27

testbench的代码
module PLL_tb;
reg                      inclk0            ;
wire                  c0         ;
initial begin
    inclk0   = 'b0;

end

always #10 inclk0 = ~ inclk0;

PPPL U_DIVIDE_0 (
                        //input
                     .inclk0    (inclk0    ),
                     
                     .c0(c0),
                                 
                  
                     );

endmodule
//end of RTL code   
页: [1]
查看完整版本: 在Quartus中用MegaWizard Plug-In Manager生成的PLL如何在Modelsim中仿真