Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- Hi, I have done something like this during the last days. My solution to that problem is as follows: I created an custom Avalon component which has two slave ports, lets call them AV0 and AV1. In this custom component I instantiated the SOPC SDRAM controller. The SDRAM controller is connected with the AV0 port by an multiplexer, and the AV1 slave input serves as an control for this multiplexer. If I send a "connect" instruction to AV1, the SDRAM controller is connected to the Avalon bus of the SOPC system. If I send a "disconnect" instruction to AV1, the SDRAM controller is disconnected from the SOPC Avalon Bus and my custom logic is connected to it. In my particular application, this allows me to write the SDRAM using the NIOS processor and use my custom logic to do a very fast playback of the SDRAM data. Hope this helps you, Markus --- Quote End --- Thanks! That does help, and can't wait to try it! Now here's a dumb question, my system already has an altera sdram controller instantiated in sopc, so if I create a new component that has the mux and controller built in, I should remove the other one (in sopc), correct?