http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
Of course you can have a lot of chipselects. i do this very often to get different memoryspaces, datawidths, multiple interrupts ...
how ? as i had posted that before, it is mentioned inside alteras literature ...
first thing is you must use the signal naming as altera recommends them.
biggest goal if you do so is that you will never get problems again with the interface and signal tabs inside the component editor.
start the nameming with avs (avalon valid slave) or avm (avalon valid master) or gls (global signal) or .... there is another one for tristate but can't get it right out of my head ... excercise read the manual :-)))
then follows a _custominterfacename_ like _myinterface_ or _anotherinterface_
after this you type the signal name like address or data or byteenable.
so you module can be like this
gls_reset
gls_clk
avs_my1device_chipselect
avs_my1device_address
avs_my1device_readdata
avs_my1device_read
avs_my1device_waitrequest
avs_my1device_int
avs_my2device_chipselect
avs_my2device_address
avs_my2device_readdata
avs_my2device_read
avs_my2device_waitrequest
avs_my2device_int
and if you want to have signales outside sopc just insert an "export" like
avs_my2device_export_thissignalsistobeexported
if you do so, sopc will automatically generate 2 interfaces for the above modul
my1device
my2device
the only thing that is anoying is that each interface can have only 1 int signal.
i wish altera will remove this and enable it .... nios2_60 seems to be very near :-))) ....
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif
remember ... always obay the waitrequest. ... always include signals that need to be used .... avm needs its own clock avm_mymaster_clk if you use any other clock you will have problems.
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif