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
12
votes
1 answer

Difference between load word and move?

What is the difference between ldw r8,0(r4) and mov r8, r4 Load word says "copy from memory" but when load word copies from r4, it is copying from register and not from memory right?
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
10
votes
3 answers

Compile Date and Time in FPGA

Can I uses in VHDL something similar to the C-Sourcecode-Macros __DATE__ and __TIME__ to make the compile time available in the FPGA as a kind of version time stamp? As a >>>new-comer<<< to VHDL I want to modify the following existing code, which…
Helmholtz42
  • 185
  • 5
  • 10
7
votes
1 answer

Execution time for loops

I'm analysing and measuring and getting different results fom my analysis and the measurement. The code is two loops with a data cache with a size of 512 bytes and a block size of 32 bytes: int SumByColRow (int matrix[M][M], int size) { int i, j,…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
7
votes
4 answers

Why some part of an os has to be written in assembly?

The scheduler of my mini os is written in assembly and I wonder why. I found out that the instruction eret can't be generated by the C compiler, is this somthing that can be generalized to other platforms than Nios and also x86 and/or MIPS…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
6
votes
3 answers

How to enable SD card with Nios II MMU and Linux 4.9

I fetched and built the linux-socfpa for my Altera DE2-115. I used buildroot and u-boot to build it. It starts but there is no filesystem. I have an SD card plugged into the FPGA, is there some way I can use the SD card as a filesystem? System…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
5
votes
1 answer

NIOS II - Resetting FPGA from software (reload FPGA configuration, don't just reset processor)

Context I'm writing code that runs in uClinux on a NIOS II processor. The FPGA is a Stratix II. The FPGA design was done by someone else who is no longer at the company and I'm not a firmware designer, just a software programmer. Problem The FPGA…
Sonic Atom
  • 436
  • 5
  • 15
5
votes
2 answers

How to convert from 4-bit hexadecimal to 7-bit ASCII?

The assigment is to learn assembly programming by writing a subroutine that can convert between 4-bit hexadecimal and 7-bit ASCII. At first I had no idea but after some research I could make and effort and draw a flowchart and make a program but it…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
4
votes
1 answer

Assembler instructions bne and br (NIOS II). How is their offset calculated?

I have this assembler code, which I'm supposed to translate into machine code in binary form: .text .align 2 .global main .equ val,0x4712 main: movi r16,val movi…
keyser
  • 18,829
  • 16
  • 59
  • 101
4
votes
1 answer

Running NIOS2 on QEMU

I found in QEMU NIOS IP https://wiki.qemu.org/Documentation/Platforms/Nios2 I have downloaded intel tool chain from their website : https://www.intel.com/content/www/us/en/programmable/products/boards_and_kits/dev-kits/altera/kit-niosii-2s60.html I…
yehudahs
  • 2,488
  • 8
  • 34
  • 54
4
votes
2 answers

How to transfer two 64 bit from the nios to VHDL using the avalon bus?

First some backstory on this problem. In my current project I'm trying to create a Mandelbrot calculator which is optimized by using a FPGA. At this point I have attempted to establish a bridge between the nios processor and the FPGA (sadly with no…
Robin Hermans
  • 1,579
  • 1
  • 24
  • 52
4
votes
4 answers

Nios 2 "Hello World"?

I've managed to run a complicated project on the Nios 2 Altera DE2 board where I created a timer with assembly and C code using the input and output. With the Nios 2 IDE I can download the project to the DE2 FPGA and the clock runs as expected. But…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
4
votes
3 answers

Why does my producer - consumer pattern have unexpected output?

In this excercise (producer - consumer), 3 producers are one thread each and produce prime numbers. But when I run the program, the first prime number that is consumed is not the first that it produces, so I don't get the expected output. Can you…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
4
votes
2 answers

What does the assembly instruction trap do?

A program typically issues a software trap when the program requires servicing by the operating system. The general exception handler for the operating system determines the reason for the trap and responds appropriately. Is the assembly…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
3
votes
1 answer

Gcc/G++ compilation into NIOS 2 Assembly

I am trying to have gcc/g++ convert C or C++ code into assembly using the -S and -march commands but I am unable to find an exact answer as to whether it supports NIOS 2. --target shows a list of architectures but no obvious NIOS 2. THe GNU compiler…
3
votes
1 answer

problems writing to an avalon slave module

I'm woring on a project for an assingment where I need to be able write data to an avalon slave module to select data from 2 different inputs on a nios system running on a DE0 board. After much toiling, I've been unable to write data from the C app…
Andrew Ellis
  • 129
  • 2
  • 11
1
2 3
9 10