加入phy层测试完成
This commit is contained in:
@@ -572,13 +572,16 @@ trait SlaveParserSync{ this: SlaveParserBase =>
|
||||
|
||||
val syncCnt = Reg(UInt(4.W))
|
||||
|
||||
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 ){
|
||||
|
||||
@@ -514,6 +514,7 @@ initial begin
|
||||
#50000
|
||||
#50000
|
||||
#50000
|
||||
#50000
|
||||
|
||||
begin
|
||||
|
||||
@@ -628,7 +629,21 @@ initial begin
|
||||
|
||||
|
||||
// 同步
|
||||
#200000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
#90000
|
||||
|
||||
|
||||
begin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user