classInterruptRegIfextendsComponent{ val io = newBundle{ val psc_done, pth_done, ssc_done, grp_done, scd_done, srch_finish = in Bool() val interrupt = out Bool() val apb = slave(Apb3(Apb3Config(16, 32))) }
val busif = Apb3BusInterface(io.apb, (0x000, 100Byte))
valM_SRCH_INT_EN = busif.newReg(doc="srch int enable register") val psc_int_en = M_SRCH_INT_EN.field(1 bits, RW, doc="psc interrupt enable register") val pth_int_en = M_SRCH_INT_EN.field(1 bits, RW, doc="pth interrupt enable register") ...
valM_SRCH_INT_MASK = busif.newReg(doc="srch int mask register") val psc_int_mask = M_SRCH_INT_MASK.field(1 bits, RW, doc="psc interrupt mask register") val pth_int_mask = M_SRCH_INT_MASK.field(1 bits, RW, doc="pth interrupt mask register") ...
valM_SRCH_INT_STATUS = busif.newReg(doc="srch int status register")
val psc_int_status = M_SRCH_INT_STATUS.field(1 bits, RC, doc="psc interrupt status register") val pth_int_status = M_SRCH_INT_STATUS.field(1 bits, RC, doc="pth interrupt status register") ...
classInterruptRegIf2extendsComponent{ val io = newBundle { val psc_done, pth_done, ssc_done, grp_done, scd_done, srch_finish = in Bool() val interrupt = out Bool() val apb = slave(Apb3(Apb3Config(16, 32))) } val busif = Apb3BusInterface(io.apb, (0x000, 100Byte))
val int = busif.FactoryInterruptWithMask("M_INT",io.psc_done, io.pth_done,io.ssc_done,io.grp_done,io.scd_done,io.srch_finish)