From 22110cb2f349a3a21d98eb8912ed9946b480bce2 Mon Sep 17 00:00:00 2001 From: Ryan Slawson Date: Tue, 4 Mar 2025 16:00:58 +0100 Subject: [PATCH] MAGIC: 2 --- bittide-instances/src/Bittide/Instances/Ugns.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bittide-instances/src/Bittide/Instances/Ugns.hs b/bittide-instances/src/Bittide/Instances/Ugns.hs index ac8387752..408716c79 100644 --- a/bittide-instances/src/Bittide/Instances/Ugns.hs +++ b/bittide-instances/src/Bittide/Instances/Ugns.hs @@ -94,7 +94,7 @@ toCounterMap fpgaIndexed = goSrc <$> indicesI goSrcDst src dst | src == dst = Nothing goSrcDst src dst = let (srcCycle, dstCycle) = fpgaIndexed !! dst Map.! src - in Just (dst, srcCycle - dstCycle) + in Just (dst, srcCycle - dstCycle + 2) -- MAGIC: seems to fix internal latency??? uncons :: (HasCallStack) => Vec (n + 1) a -> (a, Vec n a) uncons (x :> xs) = (x, xs)