bu-icsg / dana

Dynamically Allocated Neural Network Accelerator for the RISC-V Rocket Microprocessor in Chisel
Other
205 stars 36 forks source link

Add support for interrupts #4

Closed seldridge closed 8 years ago

seldridge commented 8 years ago

This covers definition of exceptional cases and integration with the Linux kernel to actually deal with them. Some of these may then be used by the kernel to deal with first time setup of the ASID--NNID Table.

At this point, I do not know what the exceptional cases are, but the assertions that come up in the ASID--NNID Table Walker would be a good place to start as these (which aren't architectural) include out of bounds accesses:

seldridge commented 8 years ago

@handong -- the issue-4-interrupts branch now includes some example programs which will generate interrupts, e.g., src/test/rv/trap-01-request-antp-not-set.c generates a request with an invalid ASID--NNID Table Pointer. The cause CSR will be set to 1 and can be read with xf_read_csr from the X-FILES supervisor library.