From 2b5509009cee67f195c640f2cce80bbc4b97c8e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemens=20Sch=C3=B6lhorn?= Date: Thu, 19 Apr 2018 01:33:24 +0200 Subject: [PATCH] Increase gpio width to 8 --- src/main/scala/unleashed/u500ml507devkit/Config.scala | 2 +- src/main/scala/unleashed/u500ml507devkit/FPGAChip.scala | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/scala/unleashed/u500ml507devkit/Config.scala b/src/main/scala/unleashed/u500ml507devkit/Config.scala index dc6fb02..a7cb0af 100644 --- a/src/main/scala/unleashed/u500ml507devkit/Config.scala +++ b/src/main/scala/unleashed/u500ml507devkit/Config.scala @@ -30,7 +30,7 @@ class U500ML507DevKitPeripherals extends Config((site, here, up) => { case PeripherySPIKey => List( SPIParams(rAddress = BigInt(0x64001000L))) case PeripheryGPIOKey => List( - GPIOParams(address = BigInt(0x64002000L), width = 4)) + GPIOParams(address = BigInt(0x64002000L), width = 8)) case PeripheryMaskROMKey => List( MaskROMParams(address = 0x10000, name = "BootROM")) }) diff --git a/src/main/scala/unleashed/u500ml507devkit/FPGAChip.scala b/src/main/scala/unleashed/u500ml507devkit/FPGAChip.scala index 46c75bb..c10df12 100644 --- a/src/main/scala/unleashed/u500ml507devkit/FPGAChip.scala +++ b/src/main/scala/unleashed/u500ml507devkit/FPGAChip.scala @@ -60,9 +60,6 @@ class U500ML507DevKitFPGAChip(implicit override val p: Parameters) gpio_pins.pins.zipWithIndex.foreach { case(pin, idx) => led(idx) := pin.o.oval } - - // tie to zero - for( idx <- 7 to 4 ) { led(idx) := false.B } } }