Page 205 - MDP2020-2
P. 205
················································································ 명장양성프로젝트 【MDP】 과제발표회 자료집 Ⅱ | 199
begin
case(state)
function_set : {lcd_rs, lcd_data} <= {1'b0, 8'b00111000};
display_on : {lcd_rs, lcd_data} <= {1'b0, 8'b00001100};
display_clear : {lcd_rs, lcd_data} <= {1'b0, 8'b00000001};
entry_mode : {lcd_rs, lcd_data} <= {1'b0, 8'b00000110};
display_data : begin
case(cnt_line)
0: {lcd_rs, lcd_data} <= 9'b010000000;
1: {lcd_rs, lcd_data} <= {1'b1, "S"};
2: {lcd_rs, lcd_data} <= {1'b1, "t"};
3: {lcd_rs, lcd_data} <= {1'b1, "u"};
4: {lcd_rs, lcd_data} <= {1'b1, "d"};
5: {lcd_rs, lcd_data} <= {1'b1, "y"};
6: {lcd_rs, lcd_data} <= {1'b1, "C"};
7: {lcd_rs, lcd_data} <= {1'b1, "a"};
8: {lcd_rs, lcd_data} <= {1'b1, "f"};
9: {lcd_rs, lcd_data} <= {1'b1, "e"};
10: {lcd_rs, lcd_data} <= {1'b1, " "};
11: {lcd_rs, lcd_data} <= {1'b1, "R"};
12: {lcd_rs, lcd_data} <= {1'b1, "o"};
13: {lcd_rs, lcd_data} <= {1'b1, "o"};
14: {lcd_rs, lcd_data} <= {1'b1, "m"};
15: {lcd_rs, lcd_data} <= {1'b1, " "};
16: {lcd_rs, lcd_data} <= {1'b1, "1"};
17: {lcd_rs, lcd_data} <= 9'b011000000;
18: {lcd_rs, lcd_data} <= {1'b1, "P"};
19: {lcd_rs, lcd_data} <= {1'b1, "a"};
20: {lcd_rs, lcd_data} <= {1'b1, "s"};
21: {lcd_rs, lcd_data} <= {1'b1, "s"};
22: {lcd_rs, lcd_data} <= {1'b1, "w"};
23: {lcd_rs, lcd_data} <= {1'b1, "o"};
24: {lcd_rs, lcd_data} <= {1'b1, "r"};
25: {lcd_rs, lcd_data} <= {1'b1, "d"};
26: {lcd_rs, lcd_data} <= {1'b1, " "};
27: {lcd_rs, lcd_data} <= {1'b1, "-"};
28: {lcd_rs, lcd_data} <= {1'b1, ">"};
29: {lcd_rs, lcd_data} <= {1'b1, " "};
30: {lcd_rs, lcd_data} <= {1'b1, (data[1:0] == 0)? "0" + data[5:2] : " "};
31: {lcd_rs, lcd_data} <= {1'b1, (data[1:0] == 1)? "0" + data[5:2] : " "};
32: {lcd_rs, lcd_data} <= {1'b1, (data[1:0] == 2)? "0" + data[5:2] : " "};
33: {lcd_rs, lcd_data} <= {1'b1, (data[1:0] == 3)? "0" + data[5:2] : " "};
endcase
end
endcase