Skip to content

Commit

Permalink
MAGIC: 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rslawson committed Mar 4, 2025
1 parent f77b338 commit 3190157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bittide-instances/src/Bittide/Instances/Ugns.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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 + 1) -- MAGIC: seems to fix internal latency???

uncons :: (HasCallStack) => Vec (n + 1) a -> (a, Vec n a)
uncons (x :> xs) = (x, xs)
Expand Down

0 comments on commit 3190157

Please sign in to comment.