同步测试完成
This commit is contained in:
@@ -152,5 +152,14 @@ abstract class MasterParserBase extends Module{
|
||||
|
||||
|
||||
class MasterParser extends MasterParserBase{
|
||||
val deltaTimeStamp = Reg(UInt(32.W))
|
||||
dontTouch(deltaTimeStamp)
|
||||
|
||||
val txStamps = Reg(UInt(32.W))
|
||||
|
||||
when( io.downOut.fire & io.downOut.bits.tlast ){
|
||||
txStamps := io.timeStamp(31,0)
|
||||
} .elsewhen( io.upIn.fire & io.upIn.bits.tlast & ~io.upIn.bits.tuser ){
|
||||
deltaTimeStamp := io.timeStamp(31,0) - txStamps
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user