From: Florent Kermarrec Date: Tue, 3 Mar 2015 23:55:35 +0000 (+0100) Subject: mibuild/sim/server_tb: use SERIAL_SINK_ACK X-Git-Tag: 24jan2021_ls180~2099^2~213 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d7f9fd6850e60b05f38902576933d9fcee4c6c9;p=litex.git mibuild/sim/server_tb: use SERIAL_SINK_ACK --- diff --git a/mibuild/sim/server_tb.cpp b/mibuild/sim/server_tb.cpp index 9e7139d7..f93e2962 100644 --- a/mibuild/sim/server_tb.cpp +++ b/mibuild/sim/server_tb.cpp @@ -137,8 +137,8 @@ int console_service(struct sim *s) /* console --> fpga */ SERIAL_SINK_STB = s->rx_serial_stb; SERIAL_SINK_DATA = s->rx_serial_data; - if (s->rx_serial_stb) - s->rx_serial_presented = 1; + if (SERIAL_SINK_STB & SERIAL_SINK_ACK) + s->rx_serial_presented = s->rx_serial_stb; return 0; }