projects
/
sifive-blocks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1af6ce1
)
spi: correct polarity of FIRRTL combo loop detection workaround.
author
Megan Wachs
<megan@sifive.com>
Fri, 31 Mar 2017 20:49:34 +0000
(13:49 -0700)
committer
Megan Wachs
<megan@sifive.com>
Fri, 31 Mar 2017 20:49:34 +0000
(13:49 -0700)
src/main/scala/devices/spi/SPIArbiter.scala
patch
|
blob
|
history
diff --git
a/src/main/scala/devices/spi/SPIArbiter.scala
b/src/main/scala/devices/spi/SPIArbiter.scala
index df87d9586cafd5c155463bd569eb166cdc623695..3c0c74a4e044885a16760d51c6d67d1e646dc76d 100644
(file)
--- a/
src/main/scala/devices/spi/SPIArbiter.scala
+++ b/
src/main/scala/devices/spi/SPIArbiter.scala
@@
-21,7
+21,7
@@
class SPIArbiter(c: SPIParamsBase, n: Int) extends Module {
io.outer.cnt := Mux1H(sel, io.inner.map(_.cnt))
io.outer.fmt := Mux1H(sel, io.inner.map(_.fmt))
// Workaround for overzealous combinational loop detection
- io.outer.cs := Mux(sel(
1
), io.inner(0).cs, io.inner(1).cs)
+ io.outer.cs := Mux(sel(
0
), io.inner(0).cs, io.inner(1).cs)
require(n == 2, "SPIArbiter currently only supports 2 clients")
(io.inner zip sel).foreach { case (inner, s) =>