完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
本帖最后由 随便说说、不必 于 2015-9-1 16:47 编辑
always @(posedge clkr) begin current<=next; case(current) set0: begin rs<=0; dat<=8'h38; next<=set1; end set1: begin rs<=0; dat<=8'h0C; next<=set2; end set2: begin rs<=0; dat<=8'h6; next<=set3; end set3: begin rs<=0; dat<=8'h1; next<=set4; end set4: begin rs<=0; dat<=8'h80; next<=dat0; end dat0: begin rs<=1; dat<="N"; next<=dat1; end dat1: begin rs<=1; dat<="W"; next<=dat2; end dat2: begin rs<=1; dat<="Y"; next<=dat3; end dat3: begin rs<=1; dat<=":"; next<=dat4; end dat4: begin rs<=1; dat<="8"; next<=dat5; end dat5: begin rs<=1; dat<="9"; next<=dat6; end dat6: begin rs<=1; dat<="0"; next<=dat7; end dat7: begin rs<=1; dat<="."; next<=dat8; end dat8: begin rs<=1; dat<="4"; next<=dat9; end nul: begin rs<=0; dat<=8'h00; begin e<=0;next<=set0;cnt<=cnt+1; end else begin next<=nul; e<=1; end end default: next<=set0; endcase end assign en=clkr|e; assign rw=0; endmodule |
|
相关推荐
7个回答
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
875 浏览 0 评论
矩阵4x4个按键,如何把识别结果按编号01-16(十进制)显示在两个七段数码管上?
1083 浏览 0 评论
877 浏览 0 评论
1940 浏览 0 评论
486 浏览 0 评论
1303 浏览 29 评论
5477 浏览 113 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-12 02:40 , Processed in 0.579688 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号