test pass
This commit is contained in:
@@ -10,7 +10,9 @@ class BackBoardSlvDigitalIO extends BackBoardSlvBase with BackBoardSlvDown with
|
||||
val oe = IO(Output(UInt(32.W)))
|
||||
|
||||
withClockAndReset( io.ides_pclk.asClock, io.reset ){
|
||||
val upReg = Reg(Vec(32, UInt(8.W))); upRegWire := upReg
|
||||
// val upReg = Reg(Vec(32, UInt(8.W)))
|
||||
val upReg = RegInit(VecInit((0 until 32).map{i => i.U(8.W)}))
|
||||
upRegWire := upReg
|
||||
out := Cat( (0 until 4).map{i => downRegWire(i)}.reverse )
|
||||
oe := Cat( (4 until 8).map{i => downRegWire(i)}.reverse )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user