iCE40 Ultra Plus 5k -- 如何设置 PLL(无专有 GUI 工具) [英] iCE40 Ultra Plus 5k -- how to set PLL (without propietary GUI tools)

查看:55
本文介绍了iCE40 Ultra Plus 5k -- 如何设置 PLL(无专有 GUI 工具)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么方法可以配置 iCE40 Ultra Plus 5k PLL,而无需使用 Lattice Icecube2/Radiant 软件等花哨的专有工具.

Is there any way to configure the iCE40 Ultra Plus 5k PLL without using the fancy propietary tools like Lattice Icecube2 / Radiant software.

官方 PLL 编程指南(source)只展示了如何使用提到的专有 GUI工具(第 4 章)

Official PLL programming guide (source) only shows how to use mentioned propietary GUI tools (ch. 4)

推荐答案

那些工具简单地生成所需的文件.最后看起来是这样的:

Those tools simple generate the files needed. In the end it looks like this:

module main_pll(REFERENCECLK,
            PLLOUTCORE,
            PLLOUTGLOBAL,
            RESET);

input REFERENCECLK;
input RESET;    /* To initialize the simulation properly, the RESET signal (Active Low) must be asserted at the beginning of the simulation */ 
output PLLOUTCORE;
output PLLOUTGLOBAL;

SB_PLL40_CORE main_pll_inst(.REFERENCECLK(REFERENCECLK),
                            .PLLOUTCORE(PLLOUTCORE),
                            .PLLOUTGLOBAL(PLLOUTGLOBAL),
                            .EXTFEEDBACK(),
                            .DYNAMICDELAY(),
                            .RESETB(RESET),
                            .BYPASS(1'b0),
                            .LATCHINPUTVALUE(),
                            .LOCK(),
                            .SDI(),
                            .SDO(),
                            .SCLK());

//\\ Fin=13.56, Fout=40.68;
defparam main_pll_inst.DIVR = 4'b0000;
defparam main_pll_inst.DIVF = 7'b0101111;
defparam main_pll_inst.DIVQ = 3'b100;
defparam main_pll_inst.FILTER_RANGE = 3'b001;
defparam main_pll_inst.FEEDBACK_PATH = "SIMPLE";
defparam main_pll_inst.DELAY_ADJUSTMENT_MODE_FEEDBACK = "FIXED";
defparam main_pll_inst.FDA_FEEDBACK = 4'b0000;
defparam main_pll_inst.DELAY_ADJUSTMENT_MODE_RELATIVE = "FIXED";
defparam main_pll_inst.FDA_RELATIVE = 4'b0000;
defparam main_pll_inst.SHIFTREG_DIV_MODE = 2'b00;
defparam main_pll_inst.PLLOUT_SELECT = "GENCLK";
defparam main_pll_inst.ENABLE_ICEGATE = 1'b0;

endmodule

但是,建议使用工具正确设置所有参数.有什么理由反对使用免费提供的工具来生成文件然后以其他方式使用它?

However, the use of the tools is recommended to correctly set all the parameters. Any reason against using the freely available tools to generate the files and then use it elsewise?

这篇关于iCE40 Ultra Plus 5k -- 如何设置 PLL(无专有 GUI 工具)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆