From 0c4d0f45050effa1db46f0244d18ba0e9f3e3fa6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 22 Jun 2017 18:45:15 +0200 Subject: [PATCH] software/dump/sigrok: fix samplerate generation (2x since we are doubling data to show capture clk) --- litescope/software/dump/sigrok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litescope/software/dump/sigrok.py b/litescope/software/dump/sigrok.py index 00f3c06..c8a095b 100644 --- a/litescope/software/dump/sigrok.py +++ b/litescope/software/dump/sigrok.py @@ -32,7 +32,7 @@ total probes = {} samplerate = {} KHz """.format( len(self.variables), - self.samplerate//1000, + self.samplerate//1000*2, ) for i, variable in enumerate(self.variables): r += "probe{} = {}\n".format(i + 1, variable.name)