From d8649fca5f77830fdde79d7a5eee441e4aa80092 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 23 Jun 2017 10:50:08 +0200 Subject: [PATCH] software/dump/sigrok: add limitation to 8 bits, will be fixed later --- litescope/software/dump/sigrok.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litescope/software/dump/sigrok.py b/litescope/software/dump/sigrok.py index 4d3e760..026215e 100644 --- a/litescope/software/dump/sigrok.py +++ b/litescope/software/dump/sigrok.py @@ -40,6 +40,8 @@ samplerate = {} KHz f.close() def write_data(self): + # TODO: study bytes/bits ordering to remove limitation + assert len(self.variables) < 8 data_bits = math.ceil(len(self.variables)/8)*8 data_len = 0 for variable in self.variables: