欢迎来到天天文库
浏览记录
ID:49171029
大小:50.50 KB
页数:9页
时间:2020-02-29
《基于fpga的点阵单向滚动显示程序.doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、基于FPGA的8*8点阵显示器设计基于FPGA的88点阵显示器(88点阵显示器选用的是列共阴显示器)FPGA与硬件连接时通过驱动电路实现汉字显示。以下为软件部分;通过逐列扫描来显示汉字。现实的为“08电气2”的字样。拓展功能为向左滚动由开关控制滚动红字为字库部分,控制所要显示的是什么汉字蓝字为分频模块,控制扫描频率与滚动速度绿字为逐列扫描模块,libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;useieee.std_logic_arith.all;entitydianisport(clk,k:
2、instd_logic;com:outstd_logic_vector(7downto0);lie:outstd_logic_vector(7downto0));enddian;architectureoneofdianissignalst:std_logic_vector(7downto0);signalosc:std_logic;signalosd:std_logic;signaldff:std_logic_vector(24downto0);signaldata:std_logic_vector(7downto0);signald0,d1,d2,d3,d4,d5,d6,d7:
3、std_logic_vector(7downto0);signallie0:std_logic_vector(7downto0);begincom<=data;lie<=st;d0<="00000000"whenlie0="00000000"else"01111100"whenlie0="00000001"else"10000010"whenlie0="00000010"else"10000010"whenlie0="00000011"else"01111100"whenlie0="00000100"else"00000000"whenlie0="00000101"else"011
4、01100"whenlie0="00000110"else"10010010"whenlie0="00000111"else"10010010"whenlie0="00001000"else"01101100"whenlie0="00001001"else"00000000"whenlie0="00001010"else"00111110"whenlie0="00001011"else"00101010"whenlie0="00001100"else"11111111"whenlie0="00001101"else"10101010"whenlie0="00001110"else"
5、10111110"whenlie0="00001111"else"11000000"whenlie0="00010000"else"00000000"whenlie0="00010001"else"00000100"whenlie0="00010010"else"00100010"whenlie0="00010011"else"00101011"whenlie0="00010100"else"00101010"whenlie0="00010101"else"00101010"whenlie0="00010110"else"11101010"whenlie0="00010111"el
6、se"10000000"whenlie0="00011000"else"11000000"whenlie0="00011001"else"00000000"whenlie0="00011010"else"11000100"whenlie0="00011011"else"10100010"whenlie0="00011100"else"10010010"whenlie0="00011101"else"10001100"whenlie0="00011110"else"00000000"whenlie0="00011111"else"00000000";d1<="01111100"whe
7、nlie0="00000000"else"10000010"whenlie0="00000001"else"10000010"whenlie0="00000010"else"01111100"whenlie0="00000011"else"00000000"whenlie0="00000100"else"01101100"whenlie0="00000101"else"10010010"whenlie0="00000110"else"10010010"whenlie0
此文档下载收益归作者所有