From 180a2ab4a8f01f301127257f6ad7f6183505234a Mon Sep 17 00:00:00 2001 From: abejgonzalez Date: Sun, 21 Apr 2019 16:07:30 -0700 Subject: [PATCH] harness builds with gpio tied off --- src/main/scala/example/Configs.scala | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/scala/example/Configs.scala b/src/main/scala/example/Configs.scala index 3ace5fb2..4326dadb 100644 --- a/src/main/scala/example/Configs.scala +++ b/src/main/scala/example/Configs.scala @@ -34,7 +34,7 @@ class WithBootROM extends Config((site, here, up) => { */ class WithGPIO extends Config((site, here, up) => { case PeripheryGPIOKey => List( - GPIOParams(address = 0x10012000, width = 4, includeIOF = true)) + GPIOParams(address = 0x10012000, width = 4, includeIOF = false)) }) // ------------------------------- @@ -94,6 +94,11 @@ class WithSimBlockDeviceRocketTop extends Config((site, here, up) => { class WithGPIORocketTop extends Config((site, here, up) => { case BuildRocketTop => (clock: Clock, reset: Bool, p: Parameters) => { val top = Module(LazyModule(new RocketTopWithGPIO()(p)).module) + for (gpio <- top.gpio) { + for (pin <- gpio.pins) { + pin.i.ival := false.B + } + } top } }) @@ -202,6 +207,11 @@ class WithSimBlockDeviceBoomTop extends Config((site, here, up) => { class WithGPIOBoomTop extends Config((site, here, up) => { case BuildBoomTop => (clock: Clock, reset: Bool, p: Parameters) => { val top = Module(LazyModule(new BoomTopWithGPIO()(p)).module) + for (gpio <- top.gpio) { + for (pin <- gpio.pins) { + pin.i.ival := false.B + } + } top } })