Support using HarnessBinders without IOBinders

This commit is contained in:
Jerry Zhao
2023-10-25 11:49:16 -07:00
parent f80426ef9d
commit a5597fd32f
13 changed files with 38 additions and 17 deletions

View File

@@ -19,6 +19,10 @@ trait Port[T <: Data] {
val io: T
}
trait HasChipyardPorts {
def ports: Seq[Port[_]]
}
// These case classes are generated by IOBinders, and interpreted by HarnessBinders
case class GPIOPort (val io: Analog, val gpioId: Int, val pinId: Int)
extends Port[Analog]