推荐星级:
  • 1
  • 2
  • 3
  • 4
  • 5

基于FPGA设计的字符VGA LCD显示实验Verilog逻辑源码Quartus工程文件+文档说明

更新时间:2021-04-13 11:32:14 大小:11M 上传用户:xzxbybd查看TA发布的资源 标签:fpgavgalcd 下载积分:9分 评价赚积分 (如何评价?) 收藏 评论(0) 举报

资料介绍

基于FPGA设计的字符VGA  LCD显示实验Verilog逻辑源码Quartus工程文件+文档说明,通过字符转换工具将字符转换为 8 进制 mif 文件存放到单端口的 ROM IP 核中,再从

ROM 中把转换后的数据读取出来显示到 VGA 上,FPGA型号Cyclone4E系列中的EP4CE6F17C8,Quartus版本17.1。

module top(

input                       clk,

input                       rst_n,

//vga output        

output                      vga_out_hs, //vga horizontal synchronization         

output                      vga_out_vs, //vga vertical synchronization                  

output[4:0]                 vga_out_r,  //vga red

output[5:0]                 vga_out_g,  //vga green

output[4:0]                 vga_out_b   //vga blue

);


wire                            video_clk;

wire                            video_hs;

wire                            video_vs;

wire                            video_de;

wire[7:0]                       video_r;

wire[7:0]                       video_g;

wire[7:0]                       video_b;


wire                            osd_hs;

wire                            osd_vs;

wire                            osd_de;

wire[7:0]                       osd_r;

wire[7:0]                       osd_g;

wire[7:0]                       osd_b;



assign vga_out_hs = osd_hs;

assign vga_out_vs = osd_vs;

assign vga_out_r  = osd_r[7:3]; //discard low bit data

assign vga_out_g  = osd_g[7:2]; //discard low bit data

assign vga_out_b  = osd_b[7:3]; //discard low bit data


//generate video pixel clock

video_pll video_pll_m0(

.inclk0                (clk                        ),

.c0                    (video_clk                  )

);


color_bar color_bar_m0(

.clk                   (video_clk                  ),

.rst                   (~rst_n                     ),

.hs                    (video_hs                   ),

.vs                    (video_vs                   ),

.de                    (video_de                   ),

.rgb_r                 (video_r                    ),

.rgb_g                 (video_g                    ),

.rgb_b                 (video_b                    )

);

osd_display  osd_display_m0(

.rst_n                 (rst_n                      ),

.pclk                  (video_clk                  ),

.i_hs                  (video_hs                   ),

.i_vs                  (video_vs                   ),

.i_de                  (video_de                   ),

.i_data                ({video_r,video_g,video_b}  ),

.o_hs                  (osd_hs                     ),

.o_vs                  (osd_vs                     ),

.o_de                  (osd_de                     ),

.o_data                ({osd_r,osd_g,osd_b}        )

);


endmodule



image.png

部分文件列表

文件名大小
19.字符显示实验.pdf
19_1_vga_char/
19_1_vga_char/PLLJ_PLLSPE_INFO.txt
19_1_vga_char/db/
19_1_vga_char/db/.cmp.kpt
19_1_vga_char/db/altsyncram_1s91.tdf9KB
19_1_vga_char/db/altsyncram_mn91.tdf9KB
19_1_vga_char/db/logic_util_heursitic.dat
19_1_vga_char/db/vga_char.(0).cnf.cdb2KB
19_1_vga_char/db/vga_char.(0).cnf.hdb1KB
19_1_vga_char/db/vga_char.(1).cnf.cdb2KB
...

全部评论(0)

暂无评论