Forum Discussion
tcmichals_home
New Contributor
2 years agoNIOS V/g version 1.0 vs 2.0 Atomic instruction
Using NIOS/g 1.0 the following code works: 00001604: lw a5,-20(s0) 00001608: lw a4,-24(s0) 0000160c: fence iorw,ow 00001610: amoswap.w.aq zero,a4,(a5) Using NIOS/g 2.0 an exception occurs when ...
tcmichals_home
New Contributor
2 years agoOK, looking see link:
- RV32IAZicsr (Pipelined) & RV32IZicsr (Non-Pipelined)
Another web has:
- Pipelined
- Applies RV32IZicsr instruction set.
- Supports five-stages pipeline datapath.
- Non-pipelined
- Applies RV32IZicsr instruction set.
- Supports non-pipeline datapath.
This post is having the same issue.
So, Atomic is not supported? Or is it?
- tcmichals_home2 years ago
New Contributor
according to the toolchain.cmake generated by niosv-bsp-editor there is -march=rv32ia this should be rv32i if the processor does not support Atomic. Using this option the code now works.