在xps的ucf文件中,除了Microblaze的时钟,我还要再添加一个我的设计时钟。我无法理解如何做到这一点。 它给了我警告:
警告:ConstraintSystem:56 - 约束[system.ucf(13)]:无法找到活动的“TNM”或“TimeGrp” 约束名为'clk'。
这是我发出警告的ucf文件。
NET "CLK_N" LOC = AD11 | IOSTANDARD = DIFF_SSTL15;
NET "CLK_P" LOC = AD12 | IOSTANDARD = DIFF_SSTL15;
NET RESET LOC = "AB7" | IOSTANDARD = "LVCMOS15";
NET RS232_Uart_1_sin LOC = "M19" | IOSTANDARD = "LVCMOS25";
NET RS232_Uart_1_sout LOC = "K24" | IOSTANDARD = "LVCMOS25";
NET sm_fan_pwm_net_vcc LOC = "L26" | IOSTANDARD = "LVCMOS25";
NET "CLK" TNM_NET = sys_clk_pin;
TIMESPEC TS_sys_clk_pin = PERIOD sys_clk_pin 200000 kHz;
CONFIG DCI_CASCADE = "33 32 34";
#######custom ip clk##########
NET "clk" TNM_NET = "clk";
TIMESPEC TS_clk = PERIOD "clk" 5 ns HIGH 50 %;
如何在ucf文件中定义userip时钟?我想给Microblaze和我的Verilog设计提供相同的时钟。
答案 0 :(得分:1)
您必须将时序约束分配给时钟引脚。时钟引脚为clk_p
(我们通常使用正引脚用于差分),同时尝试将约束分配给不存在的clk
。
此外,您对时间网clk
有重复约束。这个UCF应该更好用:
NET "CLK_N" LOC = AD11 | IOSTANDARD = DIFF_SSTL15;
NET "CLK_P" LOC = AD12 | IOSTANDARD = DIFF_SSTL15;
NET RESET LOC = "AB7" | IOSTANDARD = "LVCMOS15";
NET RS232_Uart_1_sin LOC = "M19" | IOSTANDARD = "LVCMOS25";
NET RS232_Uart_1_sout LOC = "K24" | IOSTANDARD = "LVCMOS25";
NET sm_fan_pwm_net_vcc LOC = "L26" | IOSTANDARD = "LVCMOS25";
NET "CLK_P" TNM_NET = sys_clk_pin;
TIMESPEC TS_sys_clk_pin = PERIOD sys_clk_pin 200000 kHz;
CONFIG DCI_CASCADE = "33 32 34";