gaph-pucrs / RS5

RV32I[M][C][V][_Zihpm][_Zkne][_Xosvm]_Zicsr processor
MIT License
9 stars 1 forks source link

changed 'auto' ack from plic to periph, to a specific write addr #23

Closed LucasDamo22 closed 4 months ago

LucasDamo22 commented 4 months ago

This removes the "auto ack" plic used to provide the peripherals as soon as it receives his own "ack". This also registers the interruption id at the moment "his own" ack goes up, enabling cpu to handle multiple interruptions via software. The peripheral ack signal its only provided by the plic when the cpu writes to the register address that handles ack control. At this moment the ack goes to the registered peripheral id, but this feature could be enhanced in the near future to have the cpu choose wich peripheral will receive the ack signal.