Skip to content

Commit

Permalink
Merge pull request #36 from clash-lang/lucas/add-Jtag-Idle
Browse files Browse the repository at this point in the history
Add `IdleCircuit` instance for `Jtag` Protocol
  • Loading branch information
lmbollen authored Sep 18, 2024
2 parents 390818c + 31e1b75 commit 0ac4a4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,14 @@ source-repository-package
source-repository-package
type: git
location: https://github.com/clash-lang/clash-protocols.git
tag: eb76cd1be746ae91beff60c0f16d8c1dd888662c
tag: 0832a422e77422739401896f6612620d17baa289
subdir: clash-protocols

source-repository-package
type: git
location: https://github.com/clash-lang/clash-protocols.git
tag: 0832a422e77422739401896f6612620d17baa289
subdir: clash-protocols-base

source-repository-package
type: git
Expand Down
5 changes: 5 additions & 0 deletions clash-vexriscv/src/VexRiscv.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import GHC.IO (unsafePerformIO, unsafeInterleaveIO)
import GHC.Stack (HasCallStack)
import Language.Haskell.TH.Syntax
import Protocols
import Protocols.Idle
import Protocols.Wishbone

import VexRiscv.ClockTicks
Expand Down Expand Up @@ -72,6 +73,10 @@ instance Protocol (Jtag dom) where
type Fwd (Jtag dom) = Signal dom JtagIn
type Bwd (Jtag dom) = Signal dom JtagOut

instance IdleCircuit (Jtag dom) where
idleFwd _ = pure $ JtagIn 0 0 0
idleBwd _ = pure $ JtagOut 0 0

vexRiscv ::
forall dom .
( HasCallStack
Expand Down

0 comments on commit 0ac4a4f

Please sign in to comment.