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

Illegal Instruction while using zlib in uCLinux environment

This may be completely irrelevant or very simple question. I'm trying to write a very simple application that uses the libz library functions to do compression. It should run in uCLinux environment on a NIOS CPU. My system runs busybox and busybox…
ilya1725
  • 4,496
  • 7
  • 43
  • 68
0
votes
1 answer

I can't read from a UART/Nios

I've included an UART component to my FPGA, and I've written this sample code to out a character(I want to test if its working) : #include #include #include #include…
Marwan Harb
  • 35
  • 1
  • 10
0
votes
2 answers

Is there a way to read WAV files off an SD card on a DE2-115 without using NIOS II?

I've been working on an SD card music player for a personal project and have been looking everywhere for an answer to this question. I simplified the Synthesizer example included with the board so that now all I need to do is get the audio data…
mightynifty
  • 149
  • 1
  • 13
0
votes
1 answer

guilliani framework do drag function

i'm working on altera board DE2-115 cyclone 4 and im using a framework called "Guilliani" dedicated for NIOS, the problem is i can't find any documentation no videos no forums nothing at all even google coudn't help me, hopefully some of you have…
MBA_BAT88
  • 55
  • 6
0
votes
1 answer

How to see samba shares when running a Nios II shell as administrator under Windows 7

I'm running into some problems with some Nios II code I'm trying to run using Quartus Web Edition 13.1 running under Windows 7. One of the problems I'm seeing is that if I launch the Nios II shell as an administrator and then run the "df" command, I…
Ciano
  • 554
  • 5
  • 16
0
votes
1 answer

Processing Array Data

I have an issue with passing data between arrays for processing that I can't seem to iron out. (I'm running the code on a Nios II processor) HAL Type Definitions: alt_u8 : Unsigned 8-bit integer. alt_u32 : Unsigned 32-bit integer. The core…
0
votes
0 answers

Cache-memory and C-functions

We have a function, strcpy, default optimization static void str_cpy( char *to, const char *from) { while( *from) { *to = *from; to = to + 1; from = from + 1; } *to = '\0'; } and…
Linuxxon
  • 411
  • 1
  • 3
  • 14
0
votes
1 answer

C - How to use Timers Interrupts in Nios II

In my project I am using a simple periodic interrupt in my Qsys design in Quartus. Below I need to make a counter that can count from a user defined value (which will be in seconds), but I am not sure how would I start writing the code. I have…
user3304099
  • 3
  • 2
  • 5
0
votes
2 answers

Why does compiling C take so long time?

When I compile a C project it can take about 90 seconds even though I use a fast Intel I7 CPU. Is it because compilation is a low-level task or why are my build times so long? My environment is the Nios 2 IDE for Altera DE2 FPGA.
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
1 answer

Where does output go when running the C program with the DE2?

When I run this program in the Nios 2 simulator I get the expected output (1.000000). #include int main () { float n=0; printf("%f\n", ++n); return 0; } But when I run the program on the board it doesn't output anything at all in…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
1 answer

Failing a very simple program in both ways

I'm surprised that Eclipse can fail to run the simplest program in not only one way but in many way at the same time. The program is #include int main () { int n; while (scanf("%d", &n) > 0) { printf("%d\n", n); } return…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
2 answers

Why is my serial communication not working?

I looked in the manual (page 177) for the DE2 and as far as I understand it should be possible to do serial communication for instance via putty and a usb-to-serial cable to the board, so I take the program from the manual: /* A simple program that…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
1 answer

Why unresolved inclusion?

I wonder why I get the error msg "unresolved inclusion" for stddef.h The background is this question: https://stackoverflow.com/questions/18754434/altera-de2-hardware-timer-usage where I try to solve the entire hw interrupt mechanism that I now…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
1 answer

Polling with C and assembly for Nios 2

I want to call the pollkey function once per millisecond and increment the time variable (timeloc) once per second. I think that it should work if I add a call pollkey to the delay subroutine so why is it not working? .equ delaycount, …
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
1 answer

How to develop this algorithm?

pollkey() should be called every millisecond and tick(&timeloc) should be called every second and I don't have a thread library. The obvious way would be to do it with threads but now it seems that I need advice how to perform both the updates. The…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424