Skip to content

CFS Interrupt Enable in mis or mie CSR #740

Answered by stnolting
SteveZ-Cal asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you so much for the reply !! :)

You're welcome!

(1) For CSRs, do we generally set bits in C or VHDL? If it's in C, what would be its corresponding API for it, and If my assumption is correct: (Ex: mip), if I want to clear manually for FIRQ 1, do I need to set CSR_MIP_FIRQ1P = 0 in C?

The VHDL code describes the digital circuit behind the CSRs on which the actual application software (C) is based upon. RISC-V defines special instructions to read/write/clear/set those CSRs. The NEORV32 software framework provides some simplified wrappers functions for this that are defined in sw/lib/include/neorv32_cpu.h. Here are some quick links to the Doxygen documentation of those functions:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SteveZ-Cal
Comment options

@stnolting
Comment options

Answer selected by SteveZ-Cal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants