Avnet SysaceEmac Tutorial

advertisement
EDK 7.1 Tutorial -SystemACE and
EthernetMAC on Avnet
Virtex II pro Development
Boards
Chia-Tien Dan Lo
Department of Computer Science
University of Texas at San Antonio
1
Goals
 Avnet Virtex II pro Development is equipped
with compact flash memory and gigabit
Ethernet interface.
 To build a working platform:
 Store system in the compact flash
 Configure FPGAs from compact flash
 Retrieve network packets directly from the Ethernet
interface
 Store results back to compact flash
 Use XMD to assist software development and test
2
Premise
 Software
 Using EDK 7.1 and ISE 7.1
 Download Avnet XBD file for EDK 7.1
 Using Windows XP
 Hardware
 Using Avnet Virtex-II pro development board
(XC2VP30-6)
 Xilinx Parallel Cable IV (DLC7)
 ADS-DB9-MD7 Cable
3
Setup
 Connect Xilinx Parallel Cable IV from
PC’s printer port to JTAG4 on Avnet
board
 Omit this if using PCI interface
 Connect ADS-DB9-MD6-Cable from PC’s
Com1 port to JS1 on Avnet board
 Connect J8 to a Ethernet router
4
Using EDK7.1 BSB Wizard
 In case Base System Builder Wizard
won’t create a new directory, manually
create a project directory, say
“c:\download\SysaceEthernetTest”
 Start EDK 7.1 and check Base System
Builder Wizard
5
Use Base System Builder
Wizard
6
Browse the directory
“SystemaceEthernetTest”
created early
7
Create a new design
8
Select Avnet Virtex-II pro
Board
Note: the Avnet XBD file has to be stored in the directory:
C:\EDK7.1i\board\Xilinx\boards\Avnet_V2P30_FF896
9
Select PowerPC
10
Configure Processor




Set processor clock to 300 MHz
Set FPGA JTAG
Enable cache
On-Chip Memory
 Data: 64K
 Instruction: 128K
11
Configure Processor
(cont.)
12
Set I/O Interface
 Set RS232 to





OPB UARTLITE
19200 bps
8 data bits
No parity
Use interrupt
 Uncheck
 SDRAM_64Mx16
 SRAM
13
Set I/O Interface (cont.)
14
Set System ACE and
Ethernet
 Uncheck
 FLASH_4Mx32
 Check
 SysACE_CompactFlash
 OPB SYSACE
 Use Interrupt
 Ethernet_MAC
 PLB ETHERNET
 No DMA
 Use Interrupt
15
Set System ACE and
Ethernet (cont.)
16
Set Internal Peripheral
 Set PLB BRAM IF CNTLR
 plb_bram_if_cntlr_1
 16K
17
Set Internal Peripheral
(cont.)
18
Set Internal Peripheral
(cont.)
19
Software Setup
 Set standard I/O to RS232
 Check
 Memory Test
 Peripheral SelfTest
20
Software Setup (cont.)
21
Configure memory for test
applications
 Set instructions to on-chip instruction
memory (iocm_cntlr)
 Set data and stack/heap to on-chip data
memory (docm_cntlr)
22
Configure memory for test
applications (cont.)
23
Configure memory for test
applications (cont.)
24
Create System
25
Configure Drivers and
Libraries
26
Check xilfatfs
27
Set PROC_INSTANCE to
ppc405_0 for xilfatfs
28
Build Hardware: Toos->Update
Bitstream
This step may take hours subject to the performance of
the PC!
29
Build Software: Tools -> Build All User
Applications
30
Download Hardware
Design to FPGAs
 Start iMPACT from XP’s start menu
(EDK’s download function may not work!)
 Assign implementation/download.bit to
XC2VP30 device
31
Download Hardware
Design to FPGAs (cont.)
32
Download Hardware
Design to FPGAs (cont.)
33
Start a 19200 hyper
terminal
34
Start XMD: Tools -> XMD
35
Download Test
Applications
 In XMD console
 Change directory to applications
 “cd TestApp_Peripheral”
 Download the design
 “dow executable.elf”
 Run the application
 “run”
 Monitor the output in the hyper terminal
 Some messages should be shown if everything is
okay
36
References
 Xilinx Platform Studio User Guide, Embedded
Development Kit EDK 7.1
 Xilinx Embedded System Tools Reference
Manual, Embedded Development Kit EDK 7.1i
 Xilinx Platform Specification Format Reference
Manual, Embedded Development Kit EDK 7.1i
 Xilinx OS and Libraries Document Collection
 Xilinx EDK PowerPC Tutorial
 Avnet User’s Guide, Xilinx Virtex-II Pro
Development Kit
37
Download