From b421d50b4054fcd677c6bc82616d68d1127cb9dc Mon Sep 17 00:00:00 2001 From: David Lattimore Date: Thu, 3 Dec 2020 13:38:05 +1100 Subject: [PATCH] lxterm: Increase maximum payload size to match BIOS sfl_frame (in sfl.h) already had a payload size of 255. This should give about a 10% speed gain due to reduced overhead. 8 bytes of header per 251 bytes sent, as opposed to 8 bytes of header per 60 bytes sent --- litex/tools/litex_term.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/tools/litex_term.py b/litex/tools/litex_term.py index 2d025c7bc..c521c0f4e 100755 --- a/litex/tools/litex_term.py +++ b/litex/tools/litex_term.py @@ -58,7 +58,7 @@ sfl_prompt_ack = b"\x06" sfl_magic_req = b"sL5DdSMmkekro\n" sfl_magic_ack = b"z6IHG7cYDID6o\n" -sfl_payload_length = 64 +sfl_payload_length = 255 # General commands sfl_cmd_abort = b"\x00"