Use HomogenousBag to handle lists of peripherals
authorMegan Wachs <megan@sifive.com>
Fri, 17 Feb 2017 01:52:24 +0000 (17:52 -0800)
committerMegan Wachs <megan@sifive.com>
Fri, 17 Feb 2017 01:52:24 +0000 (17:52 -0800)
commit03be9aba67b185b5454e9013901e6f873f62ac9d
tree817e9e66e8c9786ca3dc3f5f3d3d96f435d9d1f9
parent348bbb97f4522e0cb30fe7eee46e631b8ac5b6e2
Use HomogenousBag to handle lists of peripherals

Previously we had to do weird things to make non-homogenous
lists of items (e.g. PWM Peripherals where ncmp were different from one to
the other) into a vector. But now Chisel supports a Record type,
and we use the HomogenousBag utility to do this more naturally.
This also deletes all the cruft which was introduced to get
around the limitation which doesn't exist anymore.
src/main/scala/devices/pwm/PWM.scala
src/main/scala/devices/pwm/PWMPeriphery.scala
src/main/scala/devices/spi/SPIPeriphery.scala
src/main/scala/devices/spi/TLSPI.scala