Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

Nios custom component I/0 in DE2

Altera_Forum
Honored Contributor II
1,243 Views

Hi , everybody 

 

I'm Nios Newbie. I will add component using SOPC Builder and then access it using C program.  

 

anyone can give example? 

 

regards 

faye
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
409 Views

Hardware: 

http://forum.niosforum.com/forum/index.php...ded&show=&st=&# (http://forum.niosforum.com/forum/index.php?showtopic=4979&pid=18913&mode=threaded&show=&st=&#

 

Software: 

use IOWR... and IORD... macros to avoid cache 

you can check some Altera provided drivers (SPI and PIO are simple examples) 

C:\altera\quartus60\sopc_builder\components
0 Kudos
Altera_Forum
Honored Contributor II
409 Views

 

--- Quote Start ---  

originally posted by iztok.jeras@Nov 30 2006, 04:39 AM 

hardware: 

http://forum.niosforum.com/forum/index.php...ded&show=&st=&# (http://forum.niosforum.com/forum/index.php?showtopic=4979&pid=18913&mode=threaded&show=&st=&#

 

software: 

use iowr... and iord... macros to avoid cache 

you can check some altera provided drivers (spi and pio are simple examples) 

c:\altera\quartus60\sopc_builder\components 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19706) 

--- quote end ---  

 

--- Quote End ---  

 

 

Hi , iztok.jeras 

 

thanks for your replies. 

 

Regards 

Faye
0 Kudos
Altera_Forum
Honored Contributor II
409 Views

Hi guys. 

I&#39;m a beginner using Nios II software and i need some advices for controlling an external camera connected to PROTO1 block in an Altera development board mounting EP2C35 FPGA. 

On SOPC i added a couple of PIO(??) for Ctrl bits and Data bits of the Camera,ABLE to Call IRQs. System Generation is ok,compilation is ok, software is ok , BUT: 

 

1)If i try to read the pio ports,these are always 0 (it seems no datas eventhough the oscilloscope show datas present); 

 

1) program stops when reach alt_irq_register(a,b,c) instruction; 

 

Have i to add an avalon tristate bridge for allowing pios&#39;s interface or it&#39;s enough to add pios on SOPC and use pin planner? I&#39;ve done the second but happen 1) and 2) 

 

Thank you very much 

 

Paolo
0 Kudos
Reply