From: Bernhard Urban Date: Fri, 21 May 2010 18:08:21 +0000 (+0200) Subject: display: bei nullbyte space bitte! X-Git-Tag: abgabe~68 X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=commitdiff_plain;h=8df5c1463f67b799e33b6704bab7419cb90bf9b7 display: bei nullbyte space bitte! --- 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;