Introduction - If you have any usage issues, please Google them yourself
module lcd_driver(clk,rst,LCD_DATA,RS,RW,EN)
input clk,rst //rst is the signal of reset,active low(0).
output RS,RW,EN //RS=0 时为写指令;RS=1 时为写数据
//RW=0 时对 LCD 模块执行写操作;
//RW=1 时对 LCD 模块执行读操作
//EN 为 LCD 模块的使能信号(下降沿触发)
output[7:0] LCD_DATA // LCD_DATA is the data ports
reg RS,rw_int,en_int
reg[7:0] LCD_DATA,count
reg[127:0] first_line_buff,second_line_buff //液晶显示的数据缓存
…………