Home
introduction of svga unit in leon3 processor
Contents
1. are turned off Five control signals The SVGA monitor is controlled by five signals red green blue horizontal synchronization and vertical synchroniza tion The three color signals collectively referred to as the RGB signal control the color of a pixel at a give location on the screen They are analog signals with voltages ranging from 0 7 to 1 V Different color intensities are obtained by varying the voltage For simplicity our circuit will treat these three color signals as digital signals so we can just turn each one on or off As a result the circuit is capable of displaying only eight colors 23 8 2 Sync timings HSYNC A row scan begins with the horizontal sync signal going low for 3 2 us see section B in fig 2 2 a A 2 2 us high on the signal follows this see section C in fig 2 2 a Next the data for three color signals is sent one pixel at a time for the 800 columns for 20 us Finally after the last column pixel there is another 1 us of inactivity on the RGB signal lines for the horizontal retrace before the horizontal sync signal goes low again for the next row scan The total time to complete one row scan is 26 4 ps For section B of the horizontal synchronization signal you need 3 2 which are approximately 128 clock cycles 3 2 025 For section C in Figure 2 2 a you need 2 2 us which is approximately 88 clock cycles similarly we need 800 clock cycles section D for 800 columns of pixels an
2. International Journal of Advanced Technology amp Engineering Research IJATER INTRODUCTION OF SVGA UNIT IN LEON3 PROCESSOR Prachi Tyagi SVITS INDORE prachi30tyagi rediffmail com Abstract Gaisler Research develops and supports the LEON SPARC V8 processor a synthesizable processor core for embedded applications It is of interest to introduce a SVGA Super Video Graphics Array in LEON3 to demonstrate the capa bilities of the processor The paper presents how SVGA is introduced in the LEON3 processor with additional cores from the GRLIB IP Intellectual Property library developed by Gaisler Research The complete work is realized as a System on Chip SOC design LEON has been pro grammed entirely in VHDL the main reason for the choice of this language for the work by Jiri Gaisler of the European Space Agency I Introduction The platform is based on the AMBA SoC bus protocol and incorporates a novel interfacing scheme which utilizes the bus hierarchy within AMBA in order to allow SVGA to be integrated to the SoC platform utilizing the LEON Proces sor The interface connects the IP cores directly to the AM BA bus hierarchy II LEONS3 Processor An Overview 1 The LEON3 is a 32 bit processor based on the SPARC V8 architecture Features of LEON3 are SPARC V8 integer unit with 7 stage pipeline e Hardware multiply divide and MAC units e Separate instruction and data caches e Support for 2 32 register windo
3. at is installed in the system Although one system might allow the whole palette of colors another might allow only 256 Pixels on screen To begin we need to understand how a SVGA monitor works The monitor screen for SVGA contains 800 columns by 600 rows of picture elements called pixels see fig 2 An image is displayed on the screen by turning on and off indi vidual pixels ISSN No 2250 3536 Volume 2 Issue 4 July 2012 157 International Journal of Advanced Technology amp Engineering Research IJATER 800 pixels per row Column 0 Column 799 Row 0 Norizontal Retrace Horizont al scan Vertical Retrace 600 pixels per column Row 599 Figure 2 The SVGA monitor has 800 columns and 600 rows Scanning starts from row 0 column 0 and moves to the right and down until reaching row 599 column 799 The monitor continuously scans through the screen rapidly turning individual pixels on and off Figure 2 shows scan ning starts from row 0 column 0 in the top left corner of the screen and moves to the right until it reaches to the last col umn When the scan reaches the end of row it retraces to the beginning of next row When it reaches the last pixel in the bottom right corner of the screen it retraces back to the top left corner and repeats the scanning process In order to re duce flicker on screen the entire screen must be scanned 60 times per sec during the horizontal and vertical traces all the pixels
4. d 40 clock cycles for section E The total no of clock cycles needed for each row scan is 1056 cycles 128 88 800 40 With 40 MHz clock section D requires exactly 800 cycles generating 800 columns per row VSYNC The timing for the vertical sync signal is analogous to the horizontal one The 105 6 us active low vertical sync signal resets the scan to the top left corner of the screen see sec tion P in Figure 2 2 b A 607 2 us high follows this on the signal Next there are the 800 26 4 us row scans giving a total of 15840 us 800x26 4 as shown in section R Finally after the last row scan there are another 26 4 us before the vertical sync signal goes low again to start another complete screen scan in the top left corner It takes a total of 16 579 2 us to complete one full screen scan Because the vertical sync signal is analogous to the horizon tal sync signal we can perform the same calculations as with the horizontal sync regions to obtain the number of cycles needed for each vertical region However instead of using the number of periods of a 40 MHz clock the times for each vertical region are multiples of the horizontal cycle For ex ample the time for a horizontal cycle is 26 4 us and section P requires 105 6 us which is approximately two horizontal cycles 4x 26 4 Section Q requires 607 2 us which equals 23 horizontal cycles 607 2 40 The calculation for section R is 600 horizontal cycles 15840 us 40 us Of c
5. he system is a LEON SPARC microproces sor This microprocessor is able to access SVGA via a spe cial bus for embedded applications called AMBA Ad vanced Microprocessor Bus Architecture To access memo ry LEON must use a special memory controller hence SDRAM controller is also designed and interfaced with AMBA bus Hence by externally interfacing SVGA we can easily display anything ISSN No 2250 3536 Volume 2 Issue 4 July 2012 159 International Journal of Advanced Technology amp Engineering Research IJATER SVGA AMBA BUS MEMORY LEON3 CONTROLLER PROCESSOR Fig 5 Block diagram depicting the interfacing VI Conclusion and future work This paper mainly describes the design and simulation of SVGA which is based on FPGA and ALTERA Quartus tool tools By using these tools time required to get desired results has become less VHDL has been used to enter hard ware description VHDL codes have been written synthe sized and mapped successfully SVGA designed and inter faced with LEON3 fully complies with design requirements While most of the set objectives have been achieved there is still room for further improvement and experimentation If more time was given to work on this project a number of different goals could be considered In this project SVGA which is only 800x600 display resolutions is taken We can further change the resolution like 1024x768 1024x600 and 1360x768 Additional features l
6. ike gaming can be done on SVGA Though the code is functional rewriting it could still be beneficial in respect to eliminating the residual timing errors References 1 Aeroflex Gaisler SPARC V8 32 bit Processor LEON3 LEON3 FT Companion Core Datasheet Copy right March 2010 Aeroflex Gaisler AB 2 Build a VGA monitor controller Enoch Hwang 3 Design Recipes for FPGAs Dr Peter R Wilson ELSEVIER publications 4 GRLIB IP Core User s Manual Version 1 1 0 B4113 January 2012 ISSN No 2250 3536 Volume 2 Issue 4 July 2012 160
7. mentation of SVGA SVGA has been coded using VHDL language Signals used as input and output can be viewed in the following RTL diagram clk r gt reset g gt SVGA hsyncy vsync Fig 4 RTL view of SVGA V Interfacing with LEON3 processor GRLIB The GRLIB IP library is developed for SOC designs and is a set of reusable IP cores The IP cores are bus centric around the AMBA AHB bus and use a coherent method for simula tion and synthesis The library is vendor independent and expandable with support for different CAD tools and target technologies Using GRLIB gives the developer great possi bilities to design our own SOC design GRLIB is organized as a collection of VHDL libraries where each IP vendor has its own library name A library usually consists of a number of packages declaring the IP cores as components and registers used by the core A unique plug amp play method gives the opportunity to configure and connect IP cores to fit the designers demands This without the need to change any global resources ensuring that changes in one vendor s library don t affect other vendor s libraries Simu lation and synthesis scripts are automatically generated by a global make file and have compatibilities to the following simulation tools Modelsim NcSIM and GHDL Synthesis tools from Synopsis Synplify Cadence Altera and Xilinx are also supported But here we are using Altera tool 4 At the heart of t
8. ourse it has ISSN No 2250 3536 Volume 2 Issue 4 July 2012 158 International Journal of Advanced Technology amp Engineering Research IJATER to be exactly 600 times because we need to have 600 rows per screen The number of horizontal cycles required by the four regions in the vertical sync signal is also summa rized in Table 1 Similarly we can use another counter for the vertical sync signal The clock for this counter is derived from the horizontal counter so that the vertical counter counts once for each horizontal cycle T 200 COLUMN PIXELS SYNC BP DISPLAY AREA iid PULSE HSYN B D 2 2 ps 20 ps 800 CYCLES 1 pp 3 2 us SCYCLES ACY 128 CYCLES 26 4 ps 1056 CYCLES a 600 HORIZONTAL CYCLES VSYN P Q R is To5ems 607 2 ms 1584 ms 600 CYCLES 26 4 ms CYCLES 23 CYC L CYCLE 1659 2 ms 628 CYCLES Fig 3 a Horizontal Sync Timings b Vertical Sync Timings TABLE 1 SVGA Timings HORIZONTAL PIXEL TIME us TIMING VISIBLE AREA 800 20 FRONT PORCH FP 40 1 SYNC PULSE 128 3 2 BACK PORCH BP 88 2 2 WHOLE LINE 1056 26 4 VERTICAL TIM LINE TIME ms ING VISIBLE AREA 600 15 84 FRONT 1 0 0264 PORCH FP SYNC PULSE 4 0 1056 BACK PORCH BP 23 0 6072 WHOLE LINE 628 16 5792 IV Imple
9. ws e Radix 2 divider non restoring Single vector trapping for reduced code size e Advanced debug support unit e Optional IEEE STD 754 compliant FPU e 20 DMIPS at 25 MHz system clock e Fault tolerant version available eSupport for Fusion IGLOO ProASIC3E L RT ProASIC3 Axcelerator and RTAX 3 Port Register File IEEE 754 FPU Trace Buffer LEON3 7 Stage Integer Pipeline Co Processor Debug port Debug support unit HW MULIDIV Interrupt port Interrupt controller Local IRAM Cache oat Loc ora AMBA AHB Master 32 bit Fig 1 Block diagram of LEON3 processor M SVGA An improved variation of the VGA Video Graphics Array display standard sometimes referred to as SVGA Super VGA Ultra VGA is a standard for computer screen display and resolution IBM introduced the VGA standard in 1987 in order to allow display of higher resolution images and a greater number of colors 256 out of a possible 16 million colors VGA is an analog format that replaced the preceding digital formats Although replacing digital with analog seems like it would not be considered progress VGA actual ly increased the capacity to make signal variations and pro vided the ability to offer more color combinations than digi tal would allow at the time The UVGA SVGA standard although it supports up to 16 million colors is limited in specific machines and graphics cards by the amount of video memory th
Download Pdf Manuals
Related Search
Related Contents
AXIS Q8414-LVS Installation Guide Samsung HT-XA100 Felhasználói kézikönyv Turbo 1988 Viewsonic X Series VP2650wb ダウンロード(PDF 0.52 MB) Corel Ventura Betriebsanleitung JUVO-Thermostat 特集 エンジンオイル - JAMA Philips Induction cooker HD4907 Bougies préchauffage Copyright © All rights reserved.
Failed to retrieve file