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