Skip to content

Commit

Permalink
Switch Fwd and Bwd to make M/S relation consistent
Browse files Browse the repository at this point in the history
All protocols in `clash-protocols` follow the convention that if a
circuit is formed as `Circuit a ()` it is a subordinate, and when it is
formed as `Circuit () a`, it is a manager instead. This commit aligns
the `Jtag` protocol in a similar way.
  • Loading branch information
martijnbastiaan committed Apr 7, 2024
1 parent 8c7f90a commit 5bf5998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clash-vexriscv/src/VexRiscv.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ data CpuOut = CpuOut
data Jtag (dom :: Domain)

instance Protocol (Jtag dom) where
type Fwd (Jtag dom) = Signal dom JtagOut
type Bwd (Jtag dom) = Signal dom JtagIn
type Fwd (Jtag dom) = Signal dom JtagIn
type Bwd (Jtag dom) = Signal dom JtagOut


-- When passing S2M values from Haskell to VexRiscv over the FFI, undefined
Expand Down

0 comments on commit 5bf5998

Please sign in to comment.