博客首页 | 排行榜 |

zhangshuangqing的博客

个人档案
博文分类
[FPGA博客大赛]关于DCM在SPARTAN3E_100E上的使用  2010-03-13 17:10

CLKIN使用GCLK脚,基本无使用问题。
但由于板上的布线及管脚限制,第一板使用了LHCLK脚,使用ISE10.1相关附属工具 Architecture Wizard产生
DCM模块,在对管脚约束后,CLKIN使用LHCLK脚(XS3C100E-TQ144,P88 脚),用ISE综合后PALCE&ROUTE产生如
下错误(ISE版本:10.1 nt):
ERROR:Place:1012 - A clock IOB / DCM component pair have been found that are not placed at an
optimal clock IOB / DCM
   site pair.  The clock component is placed at site .  The clock IO/DCM
site can be paired if
   they are placed/locked in the same quadrant.  The IO component is placed at site
.  This will not
   allow the use of the fast path between the IO and the Clock buffer. If this sub optimal
condition is acceptable for
   this design, you may use the CLOCK_DEDICATED_ROUTE constraint in the .ucf file to demote this
message to a WARNING
   and allow your design to continue. However, the use of this override is highly discouraged as
it may lead to very
   poor timing results. It is recommended that this error condition be corrected in the design. A
list of all the
   COMP.PINs used in this clock placement rule is listed below. These examples can be used
directly in the .ucf file to
   override this clock rule.
   < NET "CLKIN_IN" CLOCK_DEDICATED_ROUTE = FALSE; >
   < PIN "DCM_SP_INST.CLKIN" CLOCK_DEDICATED_ROUTE = FALSE; >
错误原因:由于非GCLK脚不具有BUFG,在 PALCE&ROUTE由于为找到IBUFG而出错。
解决方法:
    不同的ISE版本对这个问题的error报告建议的解决 方式是不一样的,如7.1的error建议是修改环境变量,
“可以设置一个环境变量 XIL_PLACE_ALLOW_LOCAL_BUFG_ROUTING,将其设置为1,这样可以将error变为warning
”;10.1是 建议使用CLOCK_DEDICATED_ROUTE,语法是:NET "signal_name" CLOCK_DEDICATED_ROUTE = FALSE

    另有网友提出:“最好的办法是将每个dcm的buf输出变为两个以下,就不会出现这种错误了”。
    以 上几种方法都未尝试,不知是否可行。
    最后选则在Architecture Wizard生成的DCM模块中,将使用IBUFG的用BUFG替换,结果可行。
IBUFG {  .I( input_clk )
               .O( output_clk )
     }

BUFG {  .I( input_clk )
               .O( output_clk )
     }
但需要注意的是,时序不能太紧张,否则工程会有时满足时序,有时不满足。
实际测 试使用XS3C100E-4TQ144,P88脚输入12MHz,P14脚输出CLKFX_OUT,输出设置50MHz,用示波器测得结果
正确。
关 于CLK0的反馈问题,需要进一步实验、探讨。
其间参考http://www.edacn.net/bbs/redirect.php?tid=153277&goto=lastpost


http://www.xilinx.com/support/answers/30355.htm
DCM 产生参考XILINX文档:UG331(V1.5)
类别:默认 |
下一篇:[FPGA博客大赛]Xilinx Sdram controller核自动刷新改进
以下网友评论只代表其个人观点,不代表本网站的观点或立场