Skip to content

Commit

Permalink
Use unsafeToActiveHigh for Clash >= 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnbastiaan committed Oct 11, 2023
1 parent 156a34e commit 9451690
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clash-vexriscv/src/VexRiscv/JtagTcpBridge.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
-- SPDX-FileCopyrightText: 2023 Google LLC
--
-- SPDX-License-Identifier: Apache-2.0
{-# LANGUAGE CPP #-}

module VexRiscv.JtagTcpBridge where

Expand Down Expand Up @@ -67,7 +68,11 @@ jtagTcpBridge' port rst jtagOut = do
-- {-
(n2m, m2n) <- server port

#if MIN_VERSION_clash_prelude(1,7,0)
let resets = boolToBit <$> unsafeToActiveHigh rst
#else
let resets = boolToBit <$> unsafeToHighPolarity rst
#endif

jtagIn <- client n2m m2n MDisconnected jtagOut

Expand Down

0 comments on commit 9451690

Please sign in to comment.