ISE Implementation .ucf 文件出错:

代码:
#######################KEY Pin Define #####################
NET key_in<0> LOC =P7|IOSTANDARD = “LVCMOS33”; ##KEY1
NET key_in<1> LOC =R5|IOSTANDARD = “LVCMOS33”; ##KEY2
NET key_in<2> LOC =T5|IOSTANDARD = “LVCMOS33”; ##KEY3
NET key_in<3> LOC =U5|IOSTANDARD = “LVCMOS33”; ##KEY4

#######################LED Pin Define#########################
NET led_out<0> LOC =V5|IOSTANDARD = “LVCMOS33”; ##LED1
NET led_out<1> LOC =R3|IOSTANDARD = “LVCMOS33”; ##LED2
NET led_out<2> LOC =T3|IOSTANDARD = “LVCMOS33”; ##LED3
NET led_out<3> LOC =T4|IOSTANDARD = “LVCMOS33”; ##LED4
报错:
ERROR:ConstraintSystem:300 - In file:
G:/fpga_project/key_test/rtl/key_test.ucf(12): Syntax error. Ensure that the
previous constraint specification was terminated with ‘;’.
ERROR:ConstraintSystem:300 - In file:
G:/fpga_project/key_test/rtl/key_test.ucf(13): Syntax error. Ensure that the
previous constraint specification was terminated with ‘;’.
ERROR:ConstraintSystem:300 - In file:
G:/fpga_project/key_test/rtl/key_test.ucf(14): Syntax error. Ensure that the
previous constraint specification was terminated with ‘;’.
ERROR:ConstraintSystem:300 - In file:
G:/fpga_project/key_test/rtl/key_test.ucf(15): Syntax error. Ensure that the
previous constraint specification was terminated with ‘;’.
ERROR:ConstraintSystem:300 - In file:

解决办法:引脚后一定要加空格,比如:
修改前:NET key_in<0> LOC =P7|IOSTANDARD = “LVCMOS33”; ##KEY1
修改后:
NET key_in<0> LOC =P7 |IOSTANDARD = “LVCMOS33”; ##KEY1

你可能感兴趣的:(fpga开发)