中断接入
This commit is contained in:
@@ -17,6 +17,8 @@ abstract class TLCDRBase(val edge: TLEdgeIn)(implicit p: Parameters) extends Bac
|
||||
|
||||
val tla = Flipped(new DecoupledIO(new TLBundleA(edge.bundle)))
|
||||
val tld = new DecoupledIO(new TLBundleD(edge.bundle))
|
||||
|
||||
val interrupt = Output(Vec(5, Bool()))
|
||||
}
|
||||
|
||||
val io: TLCDRIO = IO(new TLCDRIO)
|
||||
@@ -190,6 +192,16 @@ class TLCDR(edge: TLEdgeIn)(implicit p: Parameters) extends TLCDRBase(edge) with
|
||||
io.tla.ready := tlAReady
|
||||
io.tld.valid := tlDValid
|
||||
|
||||
io.interrupt(0) := intTxError
|
||||
io.interrupt(1) := intTxFifoFull
|
||||
io.interrupt(2) := intTxFinish
|
||||
|
||||
io.interrupt(3) := intRxError
|
||||
io.interrupt(4) := intRxValid
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
when( io.tla.fire ) {
|
||||
tlaInfo := io.tla.bits
|
||||
|
||||
Reference in New Issue
Block a user