Page 3 - Revision History
www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Revision History The following table shows the revision history for this document. Date Version Revision 09/30/04 1.0 Initial Xilinx release. 11/11/04 1.1 Document updated to support SPI-4.2 core v7.1. 04/28/05 1.2 Document updat...
Page 5 - Table of Contents
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com UG154 March 24, 2008 Schedule of Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Schedule of Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 7 - Chapter 3: Quick Start Example Design; Chapter 4: Detailed Example Design; Schedule of Figures
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com UG154 March 24, 2008 Chapter 3: Quick Start Example Design Figure 3-1: Core Customization GUI Main Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Chapter 4: Detailed Example Design Figure 4-1: Example Design Configuration . ....
Page 9 - Schedule of Tables
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com UG154 March 24, 2008 Chapter 4: Detailed Example Design Table 4-1: Project Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Table 4-2: Component Name Directory . . . . . . . . . . ...
Page 11 - Preface; About This Guide; Contents
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 11 UG154 March 24, 2008 R Preface About This Guide This guide provides information about generating the Xilinx LogiCORE™ IP SPI-4.2 core, customizing and simulating the core using the provided example design, and running the design files through impl...
Page 13 - Chapter 1; Introduction; System Requirements; About the Core
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 13 UG154 March 24, 2008 R Chapter 1 Introduction The LogiCORE IP SPI-4.2 (PL4) core is a fully verified design solution that supports Verilog and VHDL. The example design in this guide is provided in both Verilog and VHDL. This chapter introduces the...
Page 14 - Additional Core Resources; Feedback; Core
14 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 1: Introduction R Contact your local Xilinx representative for a closer review and estimate of the effort required to meet your specific design requirements. Additional Core Resources For detailed information and updat...
Page 15 - Chapter 2; Licensing the Core; Before you Begin; License Options; Simulation-Only Evaluation
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 15 UG154 March 24, 2008 R Chapter 2 Licensing the Core This chapter provides instructions for obtaining a license for the core so that you can use the core in a design. The SPI-4.2 core is provided under the terms of the Xilinx LogiCORE Site License ...
Page 16 - Full; Obtaining Your License
16 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 2: Licensing the Core R be tested in the target device for a limited time before timing out . The core can be reactivated by reconfiguring the device after a time out. You can obtain the Full System Evaluation License ...
Page 17 - Installing Your License File
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 17 UG154 March 24, 2008 Installing Your License File R Follow the instructions in the lounge to fill out the license request form; then click Submit to automatically generate the license. An email containing the license and installation instructions ...
Page 19 - Chapter 3; Quick Start Example Design; Overview
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 19 UG154 March 24, 2008 R Chapter 3 Quick Start Example Design The quick start steps provide information to quickly generate a SPI-4.2 core, run the design through implementation with the Xilinx tools, and simulate the example design using the provid...
Page 21 - Implementing the Example Design; Running the Simulation; Setting up for Simulation
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 21 UG154 March 24, 2008 Implementing the Example Design R Implementing the Example Design After generating a core with a Full System Hardware Evaluation or Full license, the netlists and the example design can be processed by the Xilinx implementatio...
Page 22 - Timing Simulation
22 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 3: Quick Start Example Design R To run a VHDL or Verilog functional simulation of the example design using NCSIM: 1. Set the current directory to: <quickstart> /simulation/functional/ 2. Execute the simulation sc...
Page 25 - Chapter 4; Detailed Example Design
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 25 UG154 March 24, 2008 R Chapter 4 Detailed Example Design This chapter provides detailed information about the example design, including a description of files and the directory structure generated by the Xilinx CORE Generator, the purpose and cont...
Page 26 - Directory and File Contents
26 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 4: Detailed Example Design R Directory and File Contents The SPI-4.2 core directories and their associated files are defined in the following sections. <project directory> The project directory contains all the C...
Page 31 - Implementation and Simulation Scripts
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 31 UG154 March 24, 2008 Implementation and Simulation Scripts R simulation/timing The timing directory contains timing simulation scripts provided with the core. Implementation and Simulation Scripts The implementation script is either a shell script...
Page 32 - Simulation Script Details
32 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 4: Detailed Example Design R If the core was generated with the Full System Hardware Evaluation or the Full license, the implementation script is present and performs the following steps: 1. Synthesizes the example des...
Page 33 - Loopback Module
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 33 UG154 March 24, 2008 Example Design Configuration R connects to a SPI-4.2 PHY layer device or network processor. Figure 4-1 shows the example design modules architecture and interfaces to the SPI-4.2 core. Loopback Module The Loopback Module conne...
Page 34 - Demonstration Test Bench
34 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 4: Detailed Example Design R Demonstration Test Bench The demonstration test bench emulates a PHY device by generating and receiving packet data across the SPI-4.2 interface. The interface between the demonstration tes...
Page 35 - Clock Generator
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 35 UG154 March 24, 2008 Demonstration Test Bench R • Status Monitor • Testcase Clock Generator The Clock Generator creates all of the clocks that are used in the Design Example, including SysClk , RDClk2x , UserClk , TSClk , and SnkIdelayRefClk . The...
Page 36 - Startup Module; DCM Startup
36 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 4: Detailed Example Design R Startup Module The Startup Module contains three functions: DCM setup, calendar loading, and Dynamic Phase Alignment (DPA) Initialization. These functions are described in detail in the fol...
Page 37 - Calendar Loader; Stimulus Module
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 37 UG154 March 24, 2008 Demonstration Test Bench R • RDCLK_RST Holds DCMReset_RDClk for 8 cycles then releases it • RDCLK_LCK Waits for the Locked_RDClk signal. • TSCLK_RST Holds DCMReset_TSClk for 12 cycles then releases it. • TSCLK_LCK Waits for th...
Page 38 - Procedures Module; Data Monitor
38 www.xilinx.com SPI-4.2 v8.5 Getting Started Guide UG154 March 24, 2008 Chapter 4: Detailed Example Design R Procedures Module The procedures module is a package of functions instantiated in the testcase module to simplify sending data and status to the stimulus module. Using these functions, you ...
Page 39 - Customizing the Demonstration Test Bench
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 39 UG154 March 24, 2008 Demonstration Test Bench R Lastly, the signal SnkInFrame is created in the status monitor by inverting SnkOof . This signal is used by the stimulus module to send training. See Appendix C, “Data and Status Monitor Warnings.” C...
Page 41 - Testcase Module
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 41 UG154 March 24, 2008 Demonstration Test Bench R Testcase Module The testcase module generates data and sends it to the stimulus module, which in turn transmits data to the Sink core and status to the Source core. The following data is created in t...
Page 43 - Calendar Sequence Files (Sink and Source)
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 43 UG154 March 24, 2008 Demonstration Test Bench R and the status for that channel. This sends the status and the channel to the stimulus module for transmission to the core. The stimulus module ensures that the status is sent in the correct location...
Page 45 - Appendix A; VHDL Details
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 45 UG154 March 24, 2008 R Appendix A VHDL Details Procedures Module The procedures module is a package of functions instantiated in the testcase module to simplify the sending of data and status to the Stimulus module. By using these functions, the u...
Page 49 - Appendix B; Verilog Details
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 49 UG154 March 24, 2008 R Appendix B Verilog Details Procedures Module The procedures module is a package of functions instantiated in the Testcase module to simplify sending data and status to the Stimulus module. Use these functions to create any d...
Page 51 - Random Testcase Sample Code
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 51 UG154 March 24, 2008 Random Testcase Sample Code R The send_status procedure is used to change the status for a particular channel. The get_status procedure is called to check status of a specific channel. It will cause the status value of that ch...
Page 55 - Appendix C; Data and Status Monitor Warnings
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 55 UG154 March 24, 2008 R Appendix C Data and Status Monitor Warnings The Data and Status monitors continuously check data sent to and received from the demonstration test bench. There are several common warnings that occur when the Testcase module i...
Page 57 - Appendix D
SPI-4.2 v8.5 Getting Started Guide www.xilinx.com 57 UG154 March 24, 2008 R Appendix D Timing Simulation Warning and Error Messages There are several common simulation warnings and error messages when timing simulation is run on the example design. These warnings and messages are described in this a...