加入phy层测试完成
This commit is contained in:
@@ -572,13 +572,16 @@ trait SlaveParserSync{ this: SlaveParserBase =>
|
||||
|
||||
val syncCnt = Reg(UInt(4.W))
|
||||
|
||||
when( isSync ){
|
||||
syncCnt := syncCnt + 1.U
|
||||
} .otherwise{
|
||||
syncCnt := 0.U
|
||||
when( downRecParser.io.rec.fire ){
|
||||
when( isSync ){
|
||||
syncCnt := syncCnt + 1.U
|
||||
} .otherwise{
|
||||
syncCnt := 0.U
|
||||
}
|
||||
}
|
||||
|
||||
when( isSync ){
|
||||
|
||||
when( isSync & downRecParser.io.rec.fire ){
|
||||
when( syncCnt === 0.U ){
|
||||
mstTimeStamp := Cat( mstTimeStamp(63, 8), downRecParser.io.data.bits )
|
||||
} .elsewhen( syncCnt === 1.U ){
|
||||
|
||||
Reference in New Issue
Block a user