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++

Begin with custom component

Altera_Forum
Honored Contributor II
953 Views

Hello everybody ! 

 

I'm trying to use a new component with a nios II. For information, it is a simple counter which begin when chipselect = 1 and send interrupt when reaching 1000. I've written my VHDL code, created my component in SOPC Builder wich contains those signals : clk, rst_n, chipselect and irq. 

 

Now I want to use it with a C program. Does anybody know how to put chipselect on &#39;1&#39; ? Does exist any function for that ? I did&#39;nt find anything about it either in the forum nor in the altera&#39;s documentation... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif  

 

Thanks for help http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif  

 

Mister Guigui http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
270 Views

Hello, 

 

do you mean chipselect of the Avalon Interface? If this is the case, then the chipselect signal will automatically be set (by the Avalon Switch Fabric), if your hardware is addressed.  

As far as I know, is it not possible to control this signal by software directly; only as a side-effect in case you place the address of your component onto the Avalon Bus. 

 

Bye. 

 

 

--- Quote Start ---  

originally posted by misterguigui@Jul 3 2006, 04:05 AM 

hello everybody ! 

 

i&#39;m trying to use a new component with a nios ii. for information, it is a simple counter which begin when chipselect = 1 and send interrupt when reaching 1000. i&#39;ve written my vhdl code, created my component in sopc builder wich contains those signals : clk, rst_n, chipselect and irq. 

 

now i want to use it with a c program. does anybody know how to put chipselect on &#39;1&#39; ? does exist any function for that ? i did&#39;nt find anything about it either in the forum nor in the altera&#39;s documentation...  http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif  

 

thanks for help  http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/wink.gif  

 

mister guigui  http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/cool.gif  

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

--- quote end ---  

 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
270 Views

Hi, 

 

Thanks for your information. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif  

 

You&#39;re right. Today I found I can&#39;t acces chipselect directly by software. It seems to be managed automaticly by IO macros. 

 

Bye. 

 

Mister Guigui http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif
0 Kudos
Reply