ISE 約束文件 *.ucf的寫法
后來(lái)才發(fā)現(xiàn),原來(lái)是約束的問(wèn)題,看來(lái)對(duì)于FPGA設(shè)計(jì)來(lái)說(shuō),約束真的很重要啊。
本文引用地址:http://m.butianyuan.cn/article/201611/319314.htm下面介紹幾種常用的約束語(yǔ)句,以備查閱。
NET "clk0"
#使用TIMESPEC約束sys_clk_grp的周期
TIMESPEC "TS_ sys_clk_grp " = PERIOD " sys_clk_grp " 9.9 ns HIGH 50 %;#周期9.9ns,HIGH指出時(shí)鐘周期里的第一個(gè)脈沖是高電平,如果是LOW表示是低電平,占空比50%
# FROM_TO用來(lái)定義兩個(gè)邏輯組之間的時(shí)序約束
#語(yǔ)法:TIMESPEC "TS_name " = FROM "group1" TO " group2" value;
TIMESPEC "TS_p2s" = FROM "pads" TO "ffs" 10;
#最大偏移約束MAXSKEW用于說(shuō)明同一點(diǎn)驅(qū)動(dòng)的時(shí)鐘信號(hào)經(jīng)過(guò)路徑傳播后,到達(dá)兩個(gè)或多個(gè)終點(diǎn)的時(shí)間差
NET “AC97_Bit_Clk” MAXSKEW =10ns;
NET clk0 IOSTANDARD = LVCMOS33;#IO電平標(biāo)準(zhǔn)有LVCMOS25、LVTTL、SSTL2_I、LVDCI_33等
NET sys_rst_in LOC = D6;
NET sys_rst_in PULLUP;# PULLUP、 PULLDOWN上拉和下拉設(shè)置
NET sys_rst_in TIG;# TIG(Timing Ignore)不進(jìn)行時(shí)序約束
#通配符
NET gpio_char_lcd<6> LOC = AE13;
NET gpio_char_lcd<5> LOC = AC17;
NET gpio_char_lcd<4> LOC = AB17;
NET gpio_char_lcd<3> LOC = AF12;
NET gpio_char_lcd<2> LOC = AE12;
NET gpio_char_lcd<1> LOC = AC10;
NET gpio_char_lcd<0> LOC = AB10;
NET gpio_char_lcd<*> IOSTANDARD = LVCMOS33;
NET gpio_char_lcd<*> TIG;
NET gpio_char_lcd<*> PULLDOWN;
# Locate DCM/BUFG - Tools can probably figure them out automatically
#
INST dcm_0/dcm_0/DCM_ADV_INST LOC = DCM_ADV_X0Y1;
INST dcm_1/dcm_1/DCM_ADV_INST LOC = DCM_ADV_X0Y2;
INST dcm_2/dcm_2/DCM_ADV_INST LOC = DCM_ADV_X0Y0;
INST dcm_0/dcm_0/CLK0_BUFG_INST
INST dcm_0/dcm_0/CLK90_BUFG_INST LOC = BUFGCTRL_X0Y1;
INST dcm_0/dcm_0/CLKDV_BUFG_INST LOC = BUFGCTRL_X0Y2;
INST dcm_1/dcm_1/CLK0_BUFG_INST
INST dcm_1/dcm_1/CLK90_BUFG_INST LOC = BUFGCTRL_X0Y30;
例如:
INST
又例如,X,Y,Z是對(duì)應(yīng)的是寄存器?,F(xiàn)在想把它們放在一個(gè)指定的區(qū)域中,我可以這樣寫,
INST
INST
INST
AREA_GROUP
評(píng)論