Page 203 - MDP2020-2
P. 203
················································································ 명장양성프로젝트 【MDP】 과제발표회 자료집 Ⅱ | 197
if(!rst)
begin
cnt_line <= 0;
end
else
begin
if(state == display_data) // display_data
begin
if(clk_cnt >= DIV - 1) //5ms
begin
if(cnt_line >= 34) //cnt_line17
begin
cnt_line <= 0;
end
else
begin
cnt_line <= cnt_line + 1;
end
end
else
begin
cnt_line <= cnt_line;
end
end
else
begin
cnt_line <= 0; //display_data
end
end
end
always @(posedge clk, negedge rst)
begin
if(!rst)
begin
lcd_en <= 0;
end
else
begin
if(state == delay_100ms || state == delay_20ms)
begin
lcd_en <= 0;
end
else
begin