Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

NIOS V/m SC.W instruction generating Illegal Instruction Exception

Kevin26
Beginner
943 Views

I have ported the RTEMS RTOS over to the NIOS V/m processor.  During a context switch, there is a dummy sc.w instruction to clear any reservations.  When this instruction is executed, an illegal instruction exception occurs.  After reading the processor reference guide, I don't see anywhere that would say this is a problem.  Is the SC instruction illegal in the NIOS V/m processor?

0 Kudos
8 Replies
JingyangTeh
Employee
897 Views

Hi Kevin


Have you considered using FreeRTOS instead of RTEM RTOS?

Unfortunately we do not officially support RTEM RTOS but however maybe we could figure it out here.

Could you share the error message that you are seeing?


Regards

Jingyang, Teh


0 Kudos
Kevin26
Beginner
865 Views

I'm not receiving an error message.  I'm just getting an illegal instruction exception when the NIOS V/m is trying to execute a sc.w instruction.  I just need to know whether the NIOS V/m supports the LR/SC instructions and if so why would the NIOS V/m generate the exception. 

0 Kudos
JingyangTeh
Employee
848 Views

Hi Kevin


If you are running LR/SC instruction, the instruction set is part of the Atomic extension set for RiscV.

Sorry to inform that it is removed from NiosV, and it is the cause of the illegal instruction message that you are seeing now.

For now there is no plan to add in the RiscV Atomic extension into for NiosV.


Regards

Jingyang, Teh


0 Kudos
Kevin26
Beginner
833 Views

That makes sense now.  I just upgraded to Quartus Prime Lite 23.1 when this started happening.  I think in 22.1, the atomic instructions were supported.

0 Kudos
JingyangTeh
Employee
762 Views

Hi


Sorry for the confusion the Atomic extension have just recently removed and they have not updated the webpage on this.

Please refer the release note and the Reference Manual below:

Release Note

https://www.intel.com/content/www/us/en/docs/programmable/683098/23-1std/processor-v2-0-0-89647.html


Reference Manual

3. Nios® V/m Processor (intel.com)



Regards

Jingyang,Teh



0 Kudos
JingyangTeh
Employee
703 Views

Hi


Any more follow up question for this case?

If no, could i close the case?


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
677 Views

Hi


Since this thread been resolve, I shall set this thread to close pending. If you still need further assistance, you are welcome to reopen this thread within 20days or open a new thread, some one will be right with you. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 4 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.


Regards

Jingyang, Teh


0 Kudos
Reply