X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=blobdiff_plain;f=src%2Fdisplay.vhd;h=fb6649f9d71e3fed56f01e428c4cf4cb938e679a;hp=ccb8ba3befae217af250e649d361bf56cd03f6a3;hb=8df5c1463f67b799e33b6704bab7419cb90bf9b7;hpb=cc4034555bcd150fbcb82e5b3610c3648d1ec617 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;