riscv-fast-interrupt icon indicating copy to clipboard operation
riscv-fast-interrupt copied to clipboard

SAIL implementation of CLIC

Open dansmathers opened this issue 3 years ago • 5 comments

SAIL implementation needed for Definition of Done. Creating an issue for tracking purposes.

dansmathers avatar Dec 21 '21 20:12 dansmathers

Replace pseudo-code in spec with SAIL code once SAIL code is implemented?

dansmathers avatar Jan 09 '22 20:01 dansmathers

FYI, smrnmi may be a good reference for how to implement clic in SAIL https://github.com/riscv/sail-riscv/pull/396

dansmathers avatar Feb 10 '24 04:02 dansmathers

another reference is an attempt at plic: https://github.com/saravanakumarsastra/sail-riscv

dansmathers avatar Feb 10 '24 15:02 dansmathers

if CLIC changes from mem-mapped clicint registers to using indirect csrs: https://github.com/adlr/sail-riscv/tree/smcsrindpr

dansmathers avatar Feb 10 '24 15:02 dansmathers

Initial sail-riscv clic implementation. Moving issue to post 1.0 - ecosystem phase as we work to get the pull approved.

https://github.com/riscv/sail-riscv/pull/420 Tested against Tests: https://github.com/riscv-non-isa/riscv-arch-test/pull/436

Note: pulls are not yet available for spike that support CLIC

Related pulls to run arch-tests against the sail-riscv model: https://github.com/riscv-software-src/riscv-config/pull/169 https://github.com/riscv-software-src/riscof/pull/106 https://github.com/riscv-software-src/riscv-isa-sim/pull/1596

To include m-mode CLIC interrupt tests in riscof testlist flow, add Smclic to riscof yaml file, e.g.: spike/spike_isa.yaml: ISA: RV32IMCZicsr_Zifencei_Smclic

dansmathers avatar Mar 01 '24 17:03 dansmathers