在 lcd_fct 的FPGA 设计中,主要采用的VHDL 语言的程序设计[7]、MAX Plus-II 仿真以及SOC 和LCD 的实际连接调试。lcd_fct 的HVDL 设计框架如下:
Library
Entity lcd_fct is
Port( );
End lcd_fct;
Architecture struct of lcd_fct is
Signal
Constant
Begin
Res: process;
Clk :clk_div;
LCD: process;
Begin
If init then
Initialization;
Elsif clr then
Clear LCD;
Elsif addr then
Write address to LCD RAM;
Elsif data then
Write data to LCD RAM;
End if;
End process;
Us: ustimer;
Ms: mstimer;
End struct;
LCD 控制器IP 模块lcd_fct 的仿真结果如图3 所示。在图中左侧的信号就是lcd_fct 的输入/
输出信号。