U of U CS 3710 - CS 3710 Lecture Notes

Unformatted text preview:

Initial DesignforSpartan-3E Starter Kit (LCD Display Control)Ken ChapmanXilinx Ltd16thFebruary 2006Rev.2PicoBlaze Spartan-3E Starter Kit Initial Design 2Limited Warranty and Disclaimer. These designs are provided to you “as is”. Xilinx and its licensors make and you receive no warranties or conditions, express, implied, statutory or otherwise, and Xilinx specifically disclaims any implied warranties of merchantability, non-infringement, or fitness for a particular purpose. Xilinx does not warrant that the functions contained in these designs will meet your requirements, or that the operation of these designs will be uninterrupted or error free, or that defects in the Designs will be corrected. Furthermore, Xilinx does not warrant or make any representations regarding use or the results of the use of the designs in terms of correctness, accuracy, reliability, or otherwise.Limitation of Liability. In no event will Xilinx or its licensors be liable for any loss of data, lost profits, cost or procurement of substitute goods or services, or for any special, incidental, consequential, or indirect damages arising from the use or operation of the designs or accompanying documentation, however caused and on any theory of liability. This limitation will apply even if Xilinx has been advised of the possibility of such damage. This limitation shall apply not-withstanding the failure of the essential purpose of any limited remedies herein.This design module is not supported by general Xilinx Technical support as an official Xilinx Product.Please refer any issues initially to the provider of the module.Any problems or items felt of value in the continued improvement of KCPSM3 or this reference design would be gratefully received by the author.Ken ChapmanSenior Staff Engineer – Spartan Applications Specialistemail: [email protected] author would also be pleased to hear from anyone using KCPSM3 or the UART macros with information about your application and how these macros have been useful.PicoBlaze Spartan-3E Starter Kit Initial Design 3Design OverviewThis design is provided on the Spartan-3E Starter Kit when it is dispatched from the factory. It confirms that the board is operational by scrolling a simple message across the LCD display and allowing the LED’s to be controlled by the rotary knob, press buttons and slide switches.The principle purpose of this document is to illustrate how PicoBlaze can be used to control the LCD display. It is hoped that the design may form the basis for future PicoBlaze designs as well as provide a general introduction to the board. Some exercises are suggested to encourage further self study. If your board has be reprogrammed since it arrived, you can still try the design quickly. As well as the source design files, a compiled configuration bit file is provided which you can immediately download into the Spartan XC3S500E device on your board. To make this task really easy the first time, unzip all the files provided into a directory and then…. double click on ‘install_s3esk_startup.bat’. Assuming you have the Xilinx software installed, your board connected with the USB cable and the board powered (don’t forget the switch), then this should open a DOS window and run iMPACT in batch mode to configure the Spartan-3E with the design.Try it now – it only takes 30 seconds!It is recommended that you try this to become familiar with what the design does before continuing to read. If your board is ‘fresh out of the box’, then simply connect the power supply, switch on and see the design come to life. If it doesn’t work (XC-DONE LED remains unlit), check that all 3 jumpers are installed in J30 and press the PROG button again.Scrolling messageRotate knob to control position of the illuminated LED4 slide switches8 LEDs4 press buttonsPress and release knob to toggle between control modesSW0SW1SW2SW3EastSouthNorthWestOperate buttons and switches to illuminated each LEDPicoBlaze Spartan-3E Starter Kit Initial Design 4PicoBlaze Design SizeThe images and statistics on this page show that the design occupies just 113 slices and 1 BRAM. This is only 2.5% of the slices and 5% of the BRAMs available in an XC3S500E device and would still be less than 12% of the slices in the smallest XC3S100E device. Number of occupied Slices: 113 out of 4,656 2%Number of Block RAMs: 1 out of 20 5%Total equivalent gate count for design: 75,945PicoBlaze makes extensive use of the distributed memory features of the Spartan-3E device leading to very high design efficiency. If this designwas replicated to fill the XC3S500E device, it would represent the equivalent of over 1.5 million gates. Not bad for a device even marketing claims to be 500 thousand gates MAP reportFPGA Editor view Floorplanner viewXC3S500EPicoBlaze Spartan-3E Starter Kit Initial Design 5Design FilesThe source files provided for the reference design are…..s3esk_startup.vhdTop level file and main description of hardware.Contains I/O required to disable other StrataFLASH memory device on the board which may otherwise interfere with the LCD display.PicoBlaze program source assembler codekcpsm3.vhd PicoBlaze processor for Spartan-3E devices.control.vhds3esk_startup.ucf I/O constraints file for Spartan-3E Starter Kit and timing specifications for 50MHz clock.control.psmAssembled program for PicoBlaze (stored in a Block memory) Note: The file shown in green is not included with the reference design as it is provided with PicoBlaze download. Please visit the PicoBlaze Web site for your free copy of PicoBlaze, assembler, JTAG_loader and documentation. www.xilinx.com/picoblazeHint - If you only want to write new programs for PicoBlaze using the existing hardware design, then simply use the JTAG_Loader utility supplied with PicoBlaze. The design supplied is already equipped with the JTAG loading circuit (see schematic on next page).s3esk_startup_rev2.mcsPROM programming file for this design for use with any of the FLASH storage devicesPicoBlaze Spartan-3E Starter Kit Initial Design 6PicoBlaze Circuit Diagramstrataflash_oestrataflash_cestrataflash_weVcc**** StrataFLASH memory must be disabled to prevent interference with the LCD display.interrupt_control‘JTAG_loader’ allows rapid PicoBlaze code


View Full Document
Download CS 3710 Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view CS 3710 Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view CS 3710 Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?