Compare commits

...

2 Commits

3 changed files with 5 additions and 4 deletions

@ -1 +1 @@
Subproject commit 5bcc4e82fdc65bcd25c92e4f11a9c8421bacdea8
Subproject commit 79b53cf2ae2478f20ef9716ed0b63444ee7e48d3

@ -1 +1 @@
Subproject commit 4ba8acb4aa26901899963136704d065a22e36460
Subproject commit 6df42fc36078d6ff60c1610b6fb89b24d668f134

View File

@ -55,9 +55,10 @@ class U500ML507DevKitFPGAChip(implicit override val p: Parameters)
GPIOPinsFromPort(gpio_pins, dut.gpio(0))
gpio_pins.pins.foreach { _.i.ival := Bool(false) }
gpio_pins.pins.zipWithIndex.foreach {
case(pin, idx) => led(idx) := pin.o.oval
case(pin, idx) =>
pin.i.ival := dip(idx)
led(idx) := pin.o.oval
}
}