资源描述:
《ISE约束UCF编辑的操作介绍.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、摘要:本文主要通过一个实例具体介绍ISE中通过编辑UCF文件来对FPGA设计进行约束,主要涉及到的约束包括时钟约束、群组约束、逻辑管脚约束以及物理属性约束。Xilinx FPGA设计约束的分类Xilinx定义了如下几种约束类型:•“AttributesandConstraints”•“CPLDFitter”•“GroupingConstraints”•“LogicalConstraints”•“PhysicalConstraints”•“MappingDirectives”•“PlacementConstraints”•“
2、RoutingDirectives”•“SynthesisConstraints”•“TimingConstraints”•“ConfigurationConstraints”通过编译UCF(userconstraintsfile)文件可以完成上述的功能。还是用实例来讲UCF的语法是如何的。图1RTLSchematic13/13图1是顶层文件RTL图,左侧一列输入,右侧为输出,这些端口需要分配相应的FPGA管脚。1:NET"pin_sysclk_i"LOC=AD12
3、TNM_NET=pin_sysclk_i;2:TIMES
4、PECTS_pin_sysclk_i=PERIOD"pin_sysclk_i"15nsHIGH50%;3:#4:NET"pin_plx_lreset_n_i"LOC=B18;5:#6:NET"pin_plx_lhold_i"LOC=C17;7:NET"pin_plx_lholda_o"LOC=D17
5、SLEW=FAST;8:#9:NET"pin_plx_ads_n_i"LOC=E18;10:NET"pin_plx_ads_n_i"OFFSET=IN6.3nsAFTER"pin_sysclk_i"HIGH;11:#12:NE
6、T"pin_plx_lw_r_n_i"LOC=E9;13:NET"pin_plx_lw_r_n_i"OFFSET=IN6.3nsAFTER"pin_sysclk_i"HIGH;14:#15:NET"pin_plx_blast_n_i"LOC=D18;16:NET"pin_plx_blast_n_i"OFFSET=IN6.3nsAFTER"pin_sysclk_i"HIGH;17:#18:NET"pin_plx_lad_io<0>"LOC=AD13
7、SLEW=FAST
8、TNM=LAD;19:NET"pin_plx_lad_i
9、o<1>"LOC=AC13
10、SLEW=FAST
11、TNM=LAD;20:NET"pin_plx_lad_io<2>"LOC=AC15
12、SLEW=FAST
13、TNM=LAD;21:NET"pin_plx_lad_io<3>"LOC=AC16
14、SLEW=FAST
15、TNM=LAD;22:NET"pin_plx_lad_io<4>"LOC=AA11
16、SLEW=FAST
17、TNM=LAD;23:NET"pin_plx_lad_io<5>"LOC=AA12
18、SLEW=FAST
19、TNM=LAD;24:NET"pin_plx_lad_io<6>
20、"LOC=AD14
21、SLEW=FAST
22、TNM=LAD;25:NET"pin_plx_lad_io<7>"LOC=AC14
23、SLEW=FAST
24、TNM=LAD;26:NET"pin_plx_lad_io<8>"LOC=AA13
25、SLEW=FAST
26、TNM=LAD;27:NET"pin_plx_lad_io<9>"LOC=AB13
27、SLEW=FAST
28、TNM=LAD;28:NET"pin_plx_lad_io<10>"LOC=AA15
29、SLEW=FAST
30、TNM=LAD;29:NET"pin_plx_lad_io<11>"L
31、OC=AA16
32、SLEW=FAST
33、TNM=LAD;30:NET"pin_plx_lad_io<12>"LOC=AC11
34、SLEW=FAST
35、TNM=LAD;31:NET"pin_plx_lad_io<13>"LOC=AC12
36、SLEW=FAST
37、TNM=LAD;32:NET"pin_plx_lad_io<14>"LOC=AB14
38、SLEW=FAST
39、TNM=LAD;33:NET"pin_plx_lad_io<15>"LOC=AA14
40、SLEW=FAST
41、TNM=LAD;34:NET"pin_plx_lad_io<16>"
42、LOC=D12
43、SLEW=FAST
44、TNM=LAD;35:NET"pin_plx_lad_io<17>"LOC=E13
45、SLEW=FAST
46、TNM=LAD;36:NET"pin_plx_lad_io<18>"LOC=C16
47、SLEW=FAST
48、TNM=LAD;37:NET"pin_plx_lad_io<