完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
大家好,
这是关于ps2鼠标协议的一个例子。 最高实体: entity mouse_led是 港口 ( clk,reset:in std_logic; ps2d,ps2c:inout std_logic; led:out std_logic_vector(7 downto 0) ); 结束mouse_led; 和我的constratints: 顶部的限制 #CLK声明并连接到C9 50 MHz时钟 NET“clk”PERIOD = 20.0ns HIGH 50%; NET“clk”LOC =“C9”| IOSTANDARD = LVTTL; NET“重置”LOC =“K17”| IOSTANDARD = LVTTL | 拉下; # #PS2 PINS NET“ps2c”LOC“G14”| IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8; NET“ps2d”LOC“G13”| IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8; ##################################### OUTPUTS ############ ################# #LED引脚 # NET“led”LOC =“F9”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; NET“led”LOC =“E9”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; NET“led”LOC =“D11”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; NET“led”LOC =“C11”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; NET“led”LOC =“F11”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; NET“led”LOC =“E11”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; NET“led”LOC =“E12”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; NET“led”LOC =“F12”| IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8; # #文件结束 # 翻译失败: 警告:ConstraintSystem:176 - 在文件中:contraints.ucf(8):语法错误。 确保先前的约束规范以';'终止。 警告:ConstraintSystem:176 - 在文件中:contraints.ucf(9):语法错误。 确保先前的约束规范以';'终止。 为什么? 我不明白。 针脚不在。 这是一个问题吗? 这是我第一次尝试输入引脚。 以上来自于谷歌翻译 以下为原文 Hi all, this is an example on ps2 mouse protocol. The top entity : entity mouse_led is port ( clk, reset: in std_logic; ps2d, ps2c: inout std_logic; led: out std_logic_vector(7 downto 0) );end mouse_led; and my constratints: Constraints for top# CLK declared and connected to C9 50 MHz clockNET "clk" PERIOD = 20.0ns HIGH 50%;NET "clk" LOC = "C9" | IOSTANDARD = LVTTL;NET "reset" LOC = "K17" | IOSTANDARD = LVTTL | PULLDOWN;## PS2 PINSNET "ps2c" LOC "G14" | IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8;NET "ps2d" LOC "G13" | IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8;##################################### OUTPUTS ############################## LED pins #NET "led<7>" LOC = "F9" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;NET "led<6>" LOC = "E9" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;NET "led<5>" LOC = "D11" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;NET "led<4>" LOC = "C11" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;NET "led<3>" LOC = "F11" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;NET "led<2>" LOC = "E11" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;NET "led<1>" LOC = "E12" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;NET "led<0>" LOC = "F12" | IOSTANDARD = LVTTL | SLEW = SLOW | DRIVE = 8;## End of File# The translation fail for : WARNING:ConstraintSystem:176 - In file: contraints.ucf(8): Syntax error. Ensure that the previous constraint specification was terminated with ';'. WARNING:ConstraintSystem:176 - In file: contraints.ucf(9): Syntax error. Ensure that the previous constraint specification was terminated with ';'. Why ? I don't understand it. The pins are inout. Is this a problem ? This is my first attempt on input pins. |
|
相关推荐
3个回答
|
|
flashman74写道:#PS2 PINSNET“ps2c”LOC“G14”|
IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8; NET“ps2d”LOC“G13”| IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8; 在LOC.Cheers之后,^^^^^^^^^需要“=”,Jim 干杯,吉姆 在原帖中查看解决方案 以上来自于谷歌翻译 以下为原文 flashman74 wrote: # PS2 PINS ^^^^^^^^^ needs "=" after LOC. Cheers, Jim Cheers, JimView solution in original post |
|
|
|
flashman74写道:#PS2 PINSNET“ps2c”LOC“G14”|
IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8; NET“ps2d”LOC“G13”| IOSTANDARD = LVCMOS33 | SLEW = SLOW | DRIVE = 8; 在LOC.Cheers之后,^^^^^^^^^需要“=”,Jim 干杯,吉姆 以上来自于谷歌翻译 以下为原文 flashman74 wrote: # PS2 PINS ^^^^^^^^^ needs "=" after LOC. Cheers, Jim Cheers, Jim |
|
|
|
谢谢!
我希望它只是疲惫:smileywink: flashman 以上来自于谷歌翻译 以下为原文 Thank you! I hope that it's only tiredness :smileywink: flashman |
|
|
|
只有小组成员才能发言,加入小组>>
2380 浏览 7 评论
2797 浏览 4 评论
Spartan 3-AN时钟和VHDL让ISE合成时出现错误该怎么办?
2262 浏览 9 评论
3335 浏览 0 评论
如何在RTL或xilinx spartan fpga的约束文件中插入1.56ns延迟缓冲区?
2428 浏览 15 评论
有输入,但是LVDS_25的FPGA内部接收不到数据,为什么?
756浏览 1评论
请问vc707的电源线是如何连接的,我这边可能出现了缺失元件的情况导致无法供电
545浏览 1评论
求一块XILINX开发板KC705,VC707,KC105和KCU1500
366浏览 1评论
1963浏览 0评论
682浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 05:41 , Processed in 1.167210 second(s), Total 52, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号