allow bundle content params to be specified via a def (#29)
[sifive-blocks.git] / src / main / scala / devices / gpio / GPIO.scala
index e7a48299d132df91965224608386f61812b810f4..2bb04fe2a53a3760ebd047ef24495ef07956298d 100644 (file)
@@ -82,7 +82,7 @@ class GPIOPortIO(c: GPIOParams) extends GenericParameterizedBundle(c) {
 // It would be better if the IOF were here and
 // we could do the pinmux inside.
 trait HasGPIOBundleContents extends Bundle {
-  val params: GPIOParams
+  def params: GPIOParams
   val port = new GPIOPortIO(params)
 }