mst test pass
This commit is contained in:
@@ -29,11 +29,11 @@ class SpiSlv extends Module with RequireAsyncReset{
|
||||
|
||||
io.CDRIn.ready := io.CS
|
||||
io.interrupt := false.B
|
||||
io.MISO := centReg.asUInt.extract( 6+8+32+2+16-1 )
|
||||
io.MISO := RegNext(centReg.asUInt.extract( 6+8+32+2+16-1 ))
|
||||
|
||||
when( ~io.CS ){
|
||||
|
||||
centReg := Cat(centReg.asUInt << 1, io.MOSI).asTypeOf(new CDR_Master_Interface_Bundle)
|
||||
centReg := Cat(centReg.asUInt( 6+8+32+2+16-2, 0 ), io.MOSI).asTypeOf(new CDR_Master_Interface_Bundle)
|
||||
} .otherwise{
|
||||
|
||||
when( io.CDROut.fire ){
|
||||
@@ -59,7 +59,7 @@ class SpiSlv extends Module with RequireAsyncReset{
|
||||
|
||||
when( io.CDROut.fire ){
|
||||
CDROutValid := false.B
|
||||
} .elsewhen( centReg.op === OPMSTT & ~CDROutValid ){
|
||||
} .elsewhen( io.CS & centReg.op === OPMSTT & ~CDROutValid ){
|
||||
CDROutValid := true.B
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user