From 8df5c1463f67b799e33b6704bab7419cb90bf9b7 Mon Sep 17 00:00:00 2001 From: Bernhard Urban Date: Fri, 21 May 2010 20:08:21 +0200 Subject: [PATCH] display: bei nullbyte space bitte! --- src/display.vhd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/display.vhd b/src/display.vhd index ccb8ba3..fb6649f 100644 --- a/src/display.vhd +++ b/src/display.vhd @@ -182,7 +182,7 @@ begin when S_PUTCH1 => state_next <= S_PUTCH2; when S_PUTCH2 => - if free = '0' or (free = '1' and d_char = x"00") then + if free = '0' then state_next <= S_WAIT; end if; when S_WAIT => @@ -312,8 +312,10 @@ begin when S_GETCH => d_get_next <= '1'; when S_PUTCH1 => - if d_char /= x"00" then - command_next <= COMMAND_SET_CHAR; + command_next <= COMMAND_SET_CHAR; + if d_char = x"00" then + command_data_next <= x"ffffff" & x"20"; + else command_data_next <= x"ffffff" & std_logic_vector(d_char); end if; when S_PUTCH2 => null; -- 2.25.1