|
|||||||||||||||||||||||||||||||||||||
This site uses Google Analytics to track visits.
Privacy Statement |
Xilinx EDK HOWTO 6 Under construction
Xilinx provide the IPIF and the Create Peripheral Wizard (discussed EDK HOWTO 2) to simplify the creation of custom peripherals. However, unless you are using the more advanced features of the IPIF (and even then) it can be simpler to bypass the IPIF and interface directly to the OPB. The OPB (On-chip Peripheral Bus) is quite straight forward to connect to, the following sections will describe creating a peripheral without using the wizard. Note: This HOWTO uses Xilinx EDK version 9.1i
• Files and DirectoriesWhen creating a new system within XPS, you can enter a repository location to tell the EDK tools where to find extra board definitions and peripherals. If you've followed EDK HOWTO 1, you will have used a third party library for the XUP-V2Pro board. The repository can hold multiple libraries each holding their own set of board definitions and peripherals. It's a good idea if you intend to create a number of peripherals to put them into your own library so that they can be included in any future EDK system. Below is the contents of an example user EDK repository.
The XUP-V2Pro directory is the library downloaded from Xilinx. The MyProcessorIPLib is the location for your own custom peripherals. You can see that they both contain a pcores directory which hold a number of different perpherals. When specifiying the repository path (see EDK HOWTO3) you just select the location of the edkLib directory and the EDK tools will find both the XUP-V2Pro data and your own. Custom peripheral layoutAs shown in the image above, the MyProcessorIPLib library contains a peripheral called prng_v1_00_a. This is a psuedo random number generator, and will be used to describe how to create your own OPB based peripheral. The image below shows the files and directories that make up the peripheral.
Either create the directory structure to be susequently filled in, or download the completed peripheral using the link below:
• The Pseudo Random Number Generator
• Test Application
|
||||||||||||||||||||||||||||||||||||