完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
那位大哥帮忙看下这个编译警告怎样解决啊;谢谢了!
Warning (10631): VHDL Process Statement warning at action.vhd(163): inferring latch(es) for signal or variable "data1", which holds its previous value in one or more paths through the process |
|
相关推荐
8个回答
|
|
代码贴上来,IO信号接得有问题
|
|
|
|
p2: process(cnt,see_temp)
begin if see_temp='0' then data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; else case cnt is --The robot perform actions data when 0 => data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; when 1 => data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; when 2 => data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; when 3 => data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; when 4 => data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; when 5 => data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; when 6 => -- data1 <=30000; -- data2 <=40000; -- data3 <=50000; -- data4 <=60000; -- data5 <=70000; -- data6 <=80000; -- data7 <=90000; -- data8 <=100000; -- data9 <=110000; -- data10<=120000; -- when 7 => -- data1 <=30000; -- data2 <=40000; -- data3 <=50000; -- data4 <=60000; -- data5 <=70000; -- data6 <=80000; -- data7 <=90000; -- data8 <=100000; -- data9 <=110000; -- data10<=120000; -- when 8 => -- data1 <=30000; -- data2 <=40000; -- data3 <=50000; -- data4 <=60000; -- data5 <=70000; -- data6 <=80000; -- data7 <=90000; -- data8 <=100000; -- data9 <=110000; -- data10<=120000; -- when 9 => -- data1 <=30000; -- data2 <=40000; -- data3 <=50000; -- data4 <=60000; -- data5 <=70000; -- data6 <=80000; -- data7 <=90000; -- data8 <=100000; -- data9 <=110000; -- data10<=120000; when others=> data1 <=30000; data2 <=40000; data3 <=50000; data4 <=60000; data5 <=70000; data6 <=80000; data7 <=90000; data8 <=100000; data9 <=110000; data10<=120000; end case; end if; end process p2; |
|
|
|
data1,data2,data3.......data10都是数据,see_temp是使能信号
|
|
|
|
data1,data2,data3.......data10都是输出端口,see_temp是使能信号
|
|
|
|
明显data1....是信号,不能直接赋整数值.只能是二进制,8进制,16进制的字符串.也就是说<=两边的数据类型不匹配啊.
|
|
|
|
例如:data1<="010101",或者data1<=O"176",或者data1<=x"AD0"等.
|
|
|
|
我输出定义的是integer型啊
|
|
|
|
哦,我理解错了,呵呵.
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1367 浏览 1 评论
助力AIoT应用:在米尔FPGA开发板上实现Tiny YOLO V4
1046 浏览 0 评论
2442 浏览 1 评论
2146 浏览 0 评论
矩阵4x4个按键,如何把识别结果按编号01-16(十进制)显示在两个七段数码管上?
2408 浏览 0 评论
1898 浏览 50 评论
6018 浏览 113 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 03:10 , Processed in 0.563284 second(s), Total 55, Slave 48 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号