1 // See LICENSE for license details.
2 package sifive.blocks.devices.spi
8 val Single = UInt(0, width)
9 val Dual = UInt(1, width)
10 val Quad = UInt(2, width)
12 val cases = Seq(Single, Dual, Quad)
13 def decode(x: UInt): Seq[Bool] = cases.map(_ === x)
18 val Rx = UInt(0, width)
19 val Tx = UInt(1, width)
24 val MSB = UInt(0, width)
25 val LSB = UInt(1, width)
30 val Auto = UInt(0, width)
31 val Hold = UInt(2, width)
32 val Off = UInt(3, width)