Questions tagged [nios]

Nios II is a 32-bit embedded-processor architecture designed specifically for the Altera family of FPGAs. Do not use this tag for Infblox NIOS appliances.

Nios II incorporates many enhancements over the original Nios architecture, making it more suitable for a wider range of embedded computing applications, from DSP to system-control.

Nios II is comparable to MicroBlaze, a competing softcore CPU for the Xilinx family of FPGA. Unlike Microblaze, Nios II is licensable for standard-cell ASICs through a third-party IP provider, Synopsys Designware. Through the Designware license, designers can port Nios-based designs from an FPGA-platform to a mass production ASIC-device.

Nios II is a successor to Altera's first configurable 16-bit embedded processor Nios.

Do not use this tag for Infoblox NIOS appliances.

145 questions
3
votes
0 answers

Nios 2 Gen 2 Extra Exceptions Information

I have created a design in Qsys in which I'm using a Nios II Gen2 processor. While running the software for that hardware in the Nios II Eclipse IDE, I'm getting an exception but the cause of the exception cannot be determined. I found out that I…
wahab
  • 797
  • 2
  • 6
  • 24
3
votes
1 answer

NIOS II error: invalid suffix on integer constant

So I've been making an SD card music player on a DE2-155 board for a while. I've finally finished the hardware and have moved into coding in C to finish it up. However, before I can build the project I keep getting the error: "Invalid suffix…
mightynifty
  • 149
  • 1
  • 13
3
votes
1 answer

In assembly language what does the line (r3)+ do?

I have some lines in assembly that I must be able to answer what the Effective Address (EA) of it is. The line are... (R3)+ +(R2) What do the plus signs do here? I know that (R3) would have an EA = [R3], but I do not understand the + signs and…
Jacob Stinson
  • 181
  • 1
  • 16
3
votes
1 answer

Delay in NIOS 2 Assembly

Description: I am making a ready set go! program in NIOS 2 assembly. The flow should look like this: start | One LED delay 1 Sec | Four LED delay 3 Sec | Eight LED Go! Question: I don't know how to program a delay in Nios…
user2444074
  • 137
  • 3
  • 6
  • 14
3
votes
1 answer

How to simply find a macro?

I got an asm macro that can't be found: puttime_asm.s:5: Error: can't open mymacro.s for reading: No such file or directory puttime_asm.s:8: Error: unrecognized instruction push puttime_asm.s:10: Error: unrecognized instruction…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
3
votes
3 answers

What is the "relationship" between addi and subi?

I'm supposed to answer this question. After some research it says that add and sub have the same opcode and differ only in the functional field. Is this the answer or something else? Update It's available in the Nios II CPU manual: subi subtract…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
2
votes
1 answer

How can you do a full range memory test on an SRAM test on the SRAM your application is using?

Working on a bear metal application in a Nios II embedded processor. A requirement of the product is that it does a full range memory test of the SRAM which the application code uses once up and running. How can I do this? Clearly, I can't blindly…
law53
  • 21
  • 2
2
votes
3 answers

How to check that microprocessor is Altera Nios?

I writes some C-program code for Altera/Nios II microprocessor (uP). This code will be different with Altera Arm 9 microprocessor. So I need to write 2 different code pieces for different uP-s. How can I check in execution time which uP is present.…
Yakov
  • 187
  • 1
  • 11
2
votes
0 answers

Micropython, Store binary file without a filesystem

I'm using Micropython on a Nios 2 Softcore from Altera. I somehow need to load a image file into a Flash. I've tried to wrap this file into a Python string which I then could load from the processor it self. However due to how a string is processed…
Ephreal
  • 1,835
  • 2
  • 18
  • 35
2
votes
0 answers

NIOS II Assembly Outputting to DE0-Nano JP2 Pins

what I am trying to accomplish is taking a 8-switch value from the JP1 pins and outputting a Hex value to two separate 7-seg displays hooked up to the JP2 Pins. I haven't got as far as writing the code for the certain LED segments, but was trying to…
Mark.B
  • 83
  • 6
2
votes
1 answer

NIOS II c++ string does need massive memory in Hello World application

I am currently working with the quartus prime (16.1) and NIOS II eclipse tool chain. I tried to compile a simple C++ Hello World application, but I get an error like this: "onchip_memory2_nios2' overflowed by 609088 bytes" My question now is: Is…
Litschi
  • 21
  • 3
2
votes
1 answer

How to detect on which Altera FPGA I am from software running on NIOS2 processor

I think my title says it all. I am running a software on a NIOS2 processor on an Altera FPGA. Is there some way to detect which is the FPGA that the software is running on? To answer the question in the comment: Why do I care which FPGA I am on? For…
2
votes
0 answers

NIOS II system consisting of multiple cores

What is the maximum number of cores in NIOS II system? I cannot find that info anywhere in Internet forums, documentation or tutorials provided by Altera.
Marcin Majewski
  • 1,007
  • 1
  • 15
  • 30
2
votes
1 answer

C to NIOS II program

I need to write the following C code in NIOS II assembly code. and know the stack state from the L1 label. struct lelt { int value; struct lelt* next; } struct lelt x = {3,NULL}; lelt* get_tail(lelt *ptr) { lelt* last; L1: last =…
jack bloom
  • 45
  • 3
2
votes
0 answers

MIPS asm to C: How to set .section directives

So I'm trying to make an exception handler for the NIOS II Audio Core in C. I'm wondering how do I convert... .section .exceptions, "ax" ... from MIPS asm to C? I know this... attribute ((section(".exceptions))) is equivalent to... .section…
1
2
3
9 10