A_Manikanta
New Contributor
1 year agoHow to perform read/write to CSR registers in custom controller core through NIOS II processor?
Hi,
We have created a qsys system with NIOS II fast core processor.
We have integrated our custom controller core with NIOS processor.
How to perform read/write to CSR registers in custom controller core through NIOS II Software build tool eclipse?
I am specifically looking for functions, format to use from eclipse. Is there any tutorial, or documents for this ?
Thanks,
Manikanta.
We have created a qsys system with NIOS II fast core processor.
We have integrated our custom controller core with NIOS processor.
How to perform read/write to CSR registers in custom controller core through NIOS II Software build tool eclipse?
I am specifically looking for functions, format to use from eclipse. Is there any tutorial, or documents for this ?
Thanks,
Manikanta.
Hi
For the NiosII the CSR Registers are listed under the NiosII Processor Reference Guide.
https://cdrdv2-public.intel.com/666887/n2cpu-nii5v1gen2-683836-666887.pdf
To get the registers value it uses the built in function of NiosII to get the registers value.
If you are trying to get CSR Registers from another custom processor.
This will require the processor to get its own CSR register and send it to the NiosII processor. (through some other protocol).
CSR register is a status of the processor and usually not able to be read externally except for a debugger.
Regards
Jingyang, Teh