From a5cca24d5d1597c5ce985b65ed519ac222d098fe Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 9 Oct 2019 23:44:19 +0800 Subject: [PATCH] glasgow: fix FPGA FIFO overflow --- glasgow-applet.diff | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/glasgow-applet.diff b/glasgow-applet.diff index 00c24ac..eaaaa73 100644 --- a/glasgow-applet.diff +++ b/glasgow-applet.diff @@ -1,3 +1,16 @@ +diff --git a/software/glasgow/access/direct/demultiplexer.py b/software/glasgow/access/direct/demultiplexer.py +index 3df8c2e..c1b0591 100644 +--- a/software/glasgow/access/direct/demultiplexer.py ++++ b/software/glasgow/access/direct/demultiplexer.py +@@ -52,7 +52,7 @@ _max_packets_per_ep = 1024 + # To try and balance these effects, we choose a medium buffer size that should work well with most + # applications. It's possible that this will need to become customizable later, but for now + # a single fixed value works. +-_packets_per_xfer = 32 ++_packets_per_xfer = 256 + + # Queue as many transfers as we can, but no more than 10, as the returns beyond that point + # are diminishing. diff --git a/software/glasgow/applet/all.py b/software/glasgow/applet/all.py index 35b8960..3f37b9f 100644 --- a/software/glasgow/applet/all.py