完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
使用modelsim进行仿真时,在延一拍处理过程中,出现数据采集不到,pix_data_1d的数据采集不到,代码如下:reg fram_h1d;
reg fram_h2d; reg fram_h3d; reg fram_h4d; reg fram_h5d; reg fram_hpose_2d; reg fram_hnege_1d; reg fram_hnege_2d; reg fram_hnege_3d; reg [ 9:0] pix_data_1d; reg [ 9:0] pix_data_2d; reg [ 9:0] pix_data_3d; reg [ 9:0] pix_data_4d; always@( posedge CLK or negedge RST_N ) begin if( RST_N == 1'b0 ) begin fram_h1d <= 1'b0 ; fram_h2d <= 1'b0 ; fram_h3d <= 1'b0 ; fram_h4d <= 1'b0 ; fram_h5d <= 1'b0 ; fram_v1d <= 1'b0 ; fram_v2d <= 1'b0 ; fram_v3d <= 1'b0 ; fram_v4d <= 1'b0 ; fram_v5d <= 1'b0 ; fram_v6d <= 1'b0 ; fram_hpose_2d <= 1'b0 ; fram_hnege_1d <= 1'b0 ; fram_hnege_2d <= 1'b0 ; fram_hnege_3d <= 1'b0 ; end else begin fram_h1d <= FRAME_HI ; fram_h2d <= fram_h1d ; fram_h3d <= fram_h2d ; fram_h4d <= fram_h3d ; fram_h5d <= fram_h4d ; fram_v1d <= FRAME_VI ; fram_v2d <= fram_v1d ; fram_v3d <= fram_v2d ; fram_v4d <= fram_v3d ; fram_v5d <= fram_v4d ; fram_v6d <= fram_v5d ; fram_hnege_2d <= fram_hnege_1d ; fram_hnege_3d <= fram_hnege_2d ; fram_hpose_2d <= fram_h1d && ( !fram_h2d ) ; fram_hnege_1d <= fram_h1d && ( !FRAME_HI ) ; end end
|
|
相关推荐
1个回答
|
|
pix_data_1d的数据采集不到可能没调好
|
|
1 条评论
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1634 浏览 1 评论
1396 浏览 0 评论
矩阵4x4个按键,如何把识别结果按编号01-16(十进制)显示在两个七段数码管上?
1608 浏览 0 评论
937 浏览 0 评论
2404 浏览 0 评论
1490 浏览 37 评论
5691 浏览 113 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 06:18 , Processed in 0.590829 second(s), Total 83, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号