bug清理完成
This commit is contained in:
@@ -42,7 +42,7 @@ class MacTileLinkTx extends Module with RequireAsyncReset{
|
|||||||
val TxStartFrm = RegInit(false.B); io.TxStartFrm := TxStartFrm
|
val TxStartFrm = RegInit(false.B); io.TxStartFrm := TxStartFrm
|
||||||
val TxEndFrm = RegInit(false.B); io.TxEndFrm := TxEndFrm
|
val TxEndFrm = RegInit(false.B); io.TxEndFrm := TxEndFrm
|
||||||
val TxData = RegInit(0.U(8.W)); io.TxData := TxData
|
val TxData = RegInit(0.U(8.W)); io.TxData := TxData
|
||||||
val LastWord = RegInit(false.B)
|
// val LastWord = RegInit(false.B)
|
||||||
val ReadTxDataFromFifo_tck = RegInit(false.B);
|
val ReadTxDataFromFifo_tck = RegInit(false.B);
|
||||||
|
|
||||||
// Generating delayed signals
|
// Generating delayed signals
|
||||||
@@ -63,17 +63,17 @@ class MacTileLinkTx extends Module with RequireAsyncReset{
|
|||||||
TxStartFrm := false.B
|
TxStartFrm := false.B
|
||||||
}
|
}
|
||||||
|
|
||||||
// Indication of the last word
|
// // Indication of the last word
|
||||||
when( (TxEndFrm | io.TxAbort) & Flop ){
|
// when( (TxEndFrm | io.TxAbort) & Flop ){
|
||||||
LastWord := false.B
|
// LastWord := false.B
|
||||||
} .elsewhen( io.txReq.fire ){
|
// } .elsewhen( io.txReq.fire ){
|
||||||
LastWord := io.txReq.bits.isLast
|
// LastWord := io.txReq.bits.isLast
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Tx end frame generation
|
// Tx end frame generation
|
||||||
when(Flop & TxEndFrm | io.TxAbort){
|
when(Flop & TxEndFrm | io.TxAbort){
|
||||||
TxEndFrm := false.B
|
TxEndFrm := false.B
|
||||||
} .elsewhen(Flop & LastWord){
|
} .elsewhen( io.txReq.fire & io.txReq.bits.isLast ){
|
||||||
TxEndFrm := true.B
|
TxEndFrm := true.B
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ class MacTileLinkTx extends Module with RequireAsyncReset{
|
|||||||
|
|
||||||
io.txReq.ready :=
|
io.txReq.ready :=
|
||||||
io.txReq.valid & io.txReq.bits.isStart & ~TxStartFrm |
|
io.txReq.valid & io.txReq.bits.isStart & ~TxStartFrm |
|
||||||
io.TxUsedData & Flop & ~LastWord |
|
io.TxUsedData & Flop & ~TxEndFrm |
|
||||||
TxStartFrm & io.TxUsedData & Flop
|
TxStartFrm & io.TxUsedData & Flop
|
||||||
|
|
||||||
when( io.txReq.fire ){
|
when( io.txReq.fire ){
|
||||||
|
|||||||
Reference in New Issue
Block a user