TLSPI: address parameter must now be a sequence.
authorMegan Wachs <megan@sifive.com>
Wed, 22 Mar 2017 00:51:28 +0000 (17:51 -0700)
committerMegan Wachs <megan@sifive.com>
Wed, 22 Mar 2017 00:51:33 +0000 (17:51 -0700)
src/main/scala/devices/spi/TLSPI.scala

index b20b5246c3e5a813ee51e67f16d0712a56c6bede..5c5b9bfe5409fd91a1bd411e16d5cbc420a14283 100644 (file)
@@ -110,7 +110,7 @@ class SPITopModule[B <: SPITopBundle](c: SPIParamsBase, bundle: => B, outer: TLS
 abstract class TLSPIBase(w: Int, c: SPIParamsBase)(implicit p: Parameters) extends LazyModule {
   require(isPow2(c.rSize))
   val device = new SimpleDevice("spi", Seq("sifive,spi0"))
-  val rnode = TLRegisterNode(address = AddressSet(c.rAddress, c.rSize-1), device = device, beatBytes = w)
+  val rnode = TLRegisterNode(address = Seq(AddressSet(c.rAddress, c.rSize-1)), device = device, beatBytes = w)
   val intnode = IntSourceNode(IntSourcePortSimple(resources = device.int))
 }