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

How to run this code as Nios hardware?

I got a Nios 2 project that is supposed to be able to run as hardware on my FPGA but how? I've built it and I can run it in the simulator: I've chose the uart0 in the BSP editor But then when I run it as Nios hardware nothing happens Can you tell…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
2
votes
0 answers

Subversion pre-commit hook filtering unwanted files (most generated by quartus & nios)

I wonder if there's any way the pre-commit hook used in svnserve can "filter" files based on a list of extensions. I have prepared the list which is similar to the global ignore list as in "%APPDATA%/subversion/config" with my own added patterns…
Peng
  • 21
  • 4
2
votes
1 answer

Hardware or software interrupt or exception by trap instruction?

The manual says Trap Instruction When a program issues the trap instruction, the processor generates a software trap exception. A program typically issues a software trap when the program requires servicing by the operating system. The general…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
2
votes
0 answers

Mac address for DM9000a on Nios ii

I have an assignment to communicate between computer and DE2 board by using Nios ii and module DM9000A. I found in file DM9000A.c /* store MAC address into NIC */ for (i = 0; i < 6; i++) iow(16 + i, ether_addr[i]); and in file…
nhuanvd
  • 163
  • 1
  • 3
  • 6
2
votes
2 answers

How to print a number using Verilog and Altera DE2 board's VGA?

I am using Altera DE2 FPGA board and verilog, designed a simple CPU using these. I need to print the value of a register using the VGA output of the board. How should I go about this?
Salih Erikci
  • 5,076
  • 12
  • 39
  • 69
1
vote
1 answer

How to set and use a random number in launch.json

TL;DR I'm looking for a way to set and use a random environment variable each time I launch the debugger. Specifically, I'd like to be able to use a random port number for the GDB server and client. My configuration currently looks like this: { …
Zapho
  • 87
  • 9
1
vote
0 answers

Problem with using division operator in Quartus using VHDL

We need to divide two integers using VHDL and run on FPGA. Below is the the code we wrote for integer addition and it compile in the Quartus but when we try to compile the division code it gave error as "Error (10327): VHDL error at…
1
vote
2 answers

NIOS II IDE unsuably slow

I've installed Quartus and NIOS II IDE on my Linux machine. Originally I tried importing an existing NIOS II Project into Eclipse, but it just sits there spinning away and eventually tells me it can't import the project because it already exists. I…
DiBosco
  • 838
  • 8
  • 21
1
vote
0 answers

Intel MAX10 I2C doesn't send any signals. how can i fix it?

I use DE10-LITE board. I try to use I2C for connect with external ROM. In QSYS, I set up NIOS and I2C Master Core. there is no error with compile. it is my code GPIO(0) <= '0' WHEN SDA_OE = '1' ELSE 'Z'; GPIO(1) <= '0' WHEN SCL_OE = '1' ELSE…
Skasmero
  • 11
  • 1
1
vote
0 answers

Use example of Intel University program in Intel Quartus - problem with Board support package?

I want to use a example from the Intel FPGA Monitor Program 18.1 and use it in Quartus 18.1. It is the video example, which creates a blue box on the HDMI output and writes a littel String with white letters on top of it. I want to use it in Intel…
jela
  • 11
  • 2
1
vote
0 answers

How to access data from accelerometer connected through SPI with FPGA

I am stuck on what I think is quite easy task for anyone with experience and good understanding of low-level programming and/or interfaces. The problem is - I can't quite get the communication with my LIS3DH accelerometer done. The setup I'm working…
Kacper S.
  • 11
  • 2
1
vote
1 answer

NIOS II Assembly, How to set 2 different variables using one register location

What I am trying to accomplish is setting a decimal value to variables A and B. The decimal value is determined based on an input given by an external DIP switch. The DIP has 8 switches and the first switches 1-4 are supposed to control the A…
Mark.B
  • 83
  • 6
1
vote
1 answer

How to loop in NIOS II Assembly

So what I am trying to accomplish is to get the LEDs on my micro controller to flash back and forth using a loop. So far I have been able to get the LEDs to flash from right to left using this code .equ LEDS, 0x10000010 .text .global _start _start:…
Mark.B
  • 83
  • 6
1
vote
0 answers

Why is this inline asm not compiling with a newer GCC (matching constraints)?

I am porting some code from that originally compiles with a GCC 3 series compiler for the NIOS2 architecture. Porting it to GCC 4.8.2. I get errors: "error: matching constraint references invalid operand number" from a lot of inline asm code. The…
Dago
  • 1,349
  • 1
  • 11
  • 19
1
vote
1 answer

What must I change to boot Linux 4.9 with Nios2?

I read the manual and used buildroot the create the images $ ls buildroot/output/images/ rootfs.cpio rootfs.jffs2 rootfs.tar Then I built u-boot: ~/nios2/u-boot-socfpga$ ls -al u-boot -rwxrwxr-x 1 developer developer 852924 apr 8 14:00…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
1 2
3
9 10