Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Begin with custom component

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

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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