spi: correct polarity of FIRRTL combo loop detection workaround.
This commit is contained in:
		@@ -21,7 +21,7 @@ class SPIArbiter(c: SPIParamsBase, n: Int) extends Module {
 | 
				
			|||||||
  io.outer.cnt := Mux1H(sel, io.inner.map(_.cnt))
 | 
					  io.outer.cnt := Mux1H(sel, io.inner.map(_.cnt))
 | 
				
			||||||
  io.outer.fmt := Mux1H(sel, io.inner.map(_.fmt))
 | 
					  io.outer.fmt := Mux1H(sel, io.inner.map(_.fmt))
 | 
				
			||||||
  // Workaround for overzealous combinational loop detection
 | 
					  // 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")
 | 
					  require(n == 2, "SPIArbiter currently only supports 2 clients")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  (io.inner zip sel).foreach { case (inner, s) =>
 | 
					  (io.inner zip sel).foreach { case (inner, s) =>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user