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