Page 1
ML40x Getting Started Tutorial For ML401/ML402/ML403/ML405 Evaluation Platforms UG083 (v5.0) June 30, 2006...
Page 2
Xilinx does not assume any liability arising out of the application or use of the Design; nor does Xilinx convey any license under its patents, copyrights, or any rights of others. You are responsible for obtaining any rights you may require for your use or implementation of the Design.
Page 3
The following table shows the revision history for this document. Date Version Revision 11/22/04 Initial Xilinx release. 03/04/05 Renamed title from ML401 Getting Started Tutorial user guide to ML40x Getting Started Tutorial user guide. Expanded document from ML401-specific to include ML401, ML402, and ML403 evaluation platforms.
Page 4
ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
“ML40x Getting Started Tutorial,” page 9 Additional Resources To search the database of silicon and software questions and answers, or to create a technical support case in WebCase, see the Xilinx website at: http://www.xilinx.com/support. Conventions This document uses the following conventions. An example illustrates each convention.
Cross-reference link to a location Figure 2-5 in the Virtex-4 Red text in another document User Guide. Go to http://www.xilinx.com Blue, underlined text Hyperlink to a website (URL) for the latest speed files. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
USB keyboard (without a built-in USB hub) • Null modem serial cable • CompactFlash (CF) reader/writer for the PC For current information about ML40x evaluation platforms, visit the corresponding Web page: • ML401: http://www.xilinx.com/ml401 • ML402: http://www.xilinx.com/ml402 • ML403: http://www.xilinx.com/ml403 • ML405: http://www.xilinx.com/ml405...
Board Setup Board Setup Position the ML40x board so the Virtex™-4 and Xilinx logos are oriented near the top edge of the board. Make sure the power switch, located in the upper right corner of the board, is in the OFF position.
Page 11
In the 9600-HyperTerminal window, select File → Properties ♦ Select the Connect To tab Select COM1 in the Connect using box (see Figure Click Configure... UG083_02_021505 Figure 2: HyperTerminal Setup and Properties ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Page 12
Unzip the training lab files to a working directory, name the directory, and make note of the directory’s name. This directory with the extracted files is referred to as <LAB_DIR> in this tutorial. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
To return to the ML40x Bootloader at anytime, press the System ACE RST button. The bootloader runs only if the leftmost configuration address DIP switches are set to 000 and the configuration source selector switch (3-position slide switch) is set to SYS ACE. ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
For audio, try to extract a song from a CD into a WAV file. Copy the WAV file into the System ACE CF card and name it sound.wav. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
PC's operating system version. ♦ Right click My Network Places on your PC, and select Properties ♦ Right click Local Area Connection, and select Properties ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Page 16
Select Use the following IP address: (see Figure ♦ Enter this information: IP address = 1.2.3.9 and Subnet mask = 255.0.0.0 Click OK → OK to accept settings ♦ UG083_05_111004 Figure 5: IP Settings (ML401/ML402) www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
Page 17
PC. ♦ On the remote PC host, you can ping 1.2.3.4 to confirm that the network connection is alive. Restore your PC's network settings when finished. ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Right click My Network Places on your PC, and select Properties ♦ Right click Local Area Connection, and select Properties ♦ Select Internet Protocol (TCP/IP), and click Properties (Figure 6, page www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
Page 19
Select Use the following IP address: (see Figure ♦ Enter this information: IP address = 192.168.0.1 and Subnet mask = 255.0.0.0 Click OK → OK to accept settings ♦ UG083_11_022405 Figure 7: IP Settings ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Page 20
PC. ♦ On the remote PC host, you can ping 192.168.0.101 to confirm that the network connection is alive. Restore your PC's network settings if necessary when finished. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
(24 block RAMs), a test pattern generator, a VGA timing generator, and circuitry to switch between coefficients dynamically. The entire design uses 21 DSP48s, 36 block RAMs, and 1,258 4-input LUTs. ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Remember to logoff and shutdown using the GUI shutdown button or the shutdown –h now Linux command before turning off or resetting the board. This ensures the Linux file system is shut down correctly. The message system halted indicates the shutdown process has completed. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
Look at the waveform window. Select Window → Waveform - DEV:2 My…(ILA) Click the trigger immediate (T!) button. Use the magnifying glass icon to zoom in to see the individual 32-bit counter values. ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
UART. The Othello game that opens and appears in the X Window display can be played by using the PS/2 mouse. Remember to shutdown using right-click → Shutdown before turning off or resetting the Note: board. This ensures the file system is shut down correctly. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
Connect a standard USB keyboard to the ML40x board. Keys typed on the USB keyboard are then displayed on the character LCD and serial port. Note: This demonstration requires a USB keyboard without a built-in hub. ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Turn the power back on, if necessary, and press the System ACE RST button to restart the Bootloader. Select option 6 to start the My own ACE file program. You should now see ML40x displayed on the character LCD. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
XILINX directory of the CF card. Note: You can edit XILINX\flash.txt on the CF card to specify different directory locations or file names for the bitstreams that are to be loaded into the linear flash. While running, this program uses the serial terminal and LCD to display status information about its progress in programming the linear flash.
Now try to program a different bitstream into linear flash. Copy the hello_char_lcd_hw.bit bitstream from <LAB_DIR> to the CF card into the XILINX\flash directory. Rename system0.bit to system0.bak as backup. Then rename the hello_char_lcd_hw.bit file to system0.bit. Note: On the ML402 board, there might be insufficient space on the CF card to keep the old ACE file.
Page 29
CPLD (95144XL) reads the flash and configures the FPGA. DIP switches on the ML40x board select which bitstream to download. The FPGA is configured in slave-serial mode. Linear 95144XL Virtex-4 Flash CPLD FPGA UG083_07_022805 Figure 9: Linear Flash Configuration Process: Step 2 ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Press the Prog button to see a menu of demonstration programs stored on the Platform Flash and how to access them. The information is presented on the serial terminal, character LCD, and VGA screen. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
System ACE CF,” page 13, for more information. Setup Set the three leftmost configuration address DIP switches to the binary value 001. Press the Prog button to run the demonstration. ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Each sequence becomes increasingly complex. If a mistake is made, the score resets to 0 on the screen, and all the LEDs blink rapidly to signify a new game. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
System ACE CF,” page 13, for more information. Setup Set the three leftmost configuration address DIP switches to the binary value 001. Press the Prog button to run the demonstration. ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
This exercise might overwrite all the contents of the Platform Flash. Preparing PROM Files Load your own bitstreams into the Platform Flash on ML40x board: Open iMPACT: Start → Programs → Xilinx ISE → Accessories → iMPACT. ♦ At start up, iMPACT asks for an iMPACT Project file.
Page 35
ML40x Demonstrations in Platform Flash UG083_15_022406 Figure 10: Prepare PROM Files ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Page 36
ML40x Demonstrations in Platform Flash Under Specify Xilinx PROM Device (see “Specify Xilinx PROM Device”): ♦ Check the Enable Revisioning box ♦ From the Number of Revisions drop-down box, choose 4 ♦ From the Select a PROM drop-down boxes, choose xcfp and xcf32p, then click Note: The ML402 board supports only two revisions due to the larger bitstream size.
Page 37
Select hello_files.exo by clicking it, then click Open Right-click the xcf32p icon and select Program… Click Programming Properties under the Category section. The default options should look like Figure UG083_17_022406 Figure 12: Programming Properties ML40x Getting Started Tutorial www.xilinx.com UG083 (v5.0) June 30, 2006...
Page 38
Inside the sub box, select the Internal Clock radio button, and set the clock frequency to 40 MHz Your options should look like Figure UG083_18_022406 Figure 13: Advanced PROM Programming Properties www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...
Page 39
Revision 2 (Rev 0 on ML402) on the Platform Flash now loads a design that displays Hello2 (Hello0 on ML402) on the character LCD. Note: To restore the Platform Flash to its original contents, repeat these steps using the master image from the ML40x Web page: ♦ ML401: http://www.xilinx.com/ml401 ♦ ML402: http://www.xilinx.com/ml402 ♦ ML403: http://www.xilinx.com/ml403 ♦...
For the ML402 board, set the DIP switches to 001. Press the Prog button to run this demonstration. Select from the menu presented on the serial terminal to run various diagnostic tests. www.xilinx.com ML40x Getting Started Tutorial UG083 (v5.0) June 30, 2006...