Lab 7: DE2 Control Panel
73
SRAM/SDRAM/Flash. Once the content is downloaded to the SDRAM/Flash,
users can configure the memory controllers so that their IP can read/write the
SDRAM/Flash via the asynchronous ports connected.
Repeat the following steps to exercise the multi-port Flash controller – we will
implement a Flash Music Player as example here.
Refer to Figure 11.4 and 11.6, use the Flash Programmer to erase the Flash
memory and then write a music file into the Flash memory. Please use the
1Mbyte music file (cdda1m) in C:\DE2\Binary_Raw_Data
Figure 11.11 shows the concept of the multi-port SDRAM/Flash controller.
In the DE2 Control Panel, click on the TOOLS button to reach the window in
Figure 11.12.
As illustrated in Figure 11.12, select the Asynchronous 1 for Flash
Multiplexer and then click on the Configure button to activate the port. Note
that you need to click the Configure button to enable the connection from
the Flash Memory to the Asynchronous Port 1 of the Flash Controller
indicated in Figure 11.11.
Set SW1 and SW0 to OFF (Lower position) and ON (upper position)
respectively.
Plug in your headset of speaker and you should hear the music played from
the Audio DAC circuit. Please refer to Figure 6.11. You should see the
Asynchronous Port 1 is connected to the Audio DAC part. Once you
selected Asynchronous Port 1 and click the Configure button, the
AUDIO_DAC will talk to the Flash Memory directly. In this example, the
AUDIO_DAC Verilog Module will read the content of the Flash memory and
send it to the external audio chip.
Figure 11.11. Block Diagram of The Multi-Port Flash Controller integration