Xilinx MP3 NG Application Note

Manual is about: Xilinx Inc. MP3 Player User Manual

Summary of MP3 NG

  • Page 1

    Xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 1 1-800-255-7778 summary this application note illustrates the use of xilinx spartan-ii fpga and an idt rc32364 risc controller in a handheld, consumer electronics platform. Specifically the target application is an mp3 audio player with advanced user ...

  • Page 2

    2 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r mp3 technology mp3 refers to the mpeg layer 3 audio compression scheme that was defined as part of the international standards organization (iso) moving picture experts group (mpeg) audio/v...

  • Page 3

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 3 1-800-255-7778 r idt rc32364 riscontroller™ the processor chosen for this design is the idt rc32364. The features of this device that are leveraged in this application are: • paged memory management unit. •...

  • Page 4

    4 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r the variable page size lets each mapping independently represent memory regions that can range from 4 kb to 16 mb. This feature lets the system designer adjust the address mapping granulari...

  • Page 5

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 5 1-800-255-7778 r the rc32364 interfaces to the system through a 32-bit multiplexed address/data bus. The bus offers a rich set of signals to control transfers of which only a subset was required for this ap...

  • Page 6

    6 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r crystal cs4343 stereo dac the digital-to-analog converter chosen for this design is the crystal cs4343 from cirrus logic. This device features: • 1.8v to 3.3v operation. • 24-bit conversion...

  • Page 7

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 7 1-800-255-7778 r the serial port can be configured for several operating modes. The mode of operation chosen for this application is referred to in the cs4343 documentation as "serial audio format 2". Figur...

  • Page 8

    8 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r samsung flash memory the flash memory chosen for this design is the km29u64000t 8m x 8 device from samsung semiconductor. This device is based on nand flash technology and is popular in mp3...

  • Page 9

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 9 1-800-255-7778 r micron sdram memory the sdram memory chosen for this design is the mt48lc1m16a1s - 512k x 16 x 2 bank device from micron semiconductor. This device is available in speed grades from 125 to ...

  • Page 10

    10 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r 11 11 11 ras# refresh controller 2,048 refresh counter cas# 256 256 (x16) 8 column- address buffer burst counter row- address mux clk cs# we# cke 256 (x16) bank1 memory array (2,048 x 256 ...

  • Page 11

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 11 1-800-255-7778 r national semiconductor usbn9602 usb function controller the usb interface in the design is based on a national semiconductor usbn9602 controller. This device, packaged in a 28-pin soic pac...

  • Page 12

    12 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r system implementation this section describes how all of these pieces are integrated into a complete system. First described is the software architecture and the functionality of the key mo...

  • Page 13

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 13 1-800-255-7778 r the rtos provides process scheduling and memory allocation functions. The rtos could be any of the commercially available packages. Probably more of a factor than any technical issue is th...

  • Page 14

    14 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r the reference code that was developed for the standard is available from the fraunhofer institute at the following url: http://www.Iis.Fhg.De/amm/techinf/layer3/index.Html a commercial dec...

  • Page 15

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 15 1-800-255-7778 r while most of the blocks are fairly independent, the flash, sdram, and compactflash interfaces share common address and data busses. While this results in a fairly complex muxing scheme fo...

  • Page 16

    16 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r cpu interface the cpu interface block performs three functions: protocol conversion, cpu initialization and address de-multiplexing. Figure 16 shows a block diagram of this block. The cpu ...

  • Page 17

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 17 1-800-255-7778 r there is no direct software support required for this block, but the usb interface itself requires considerable software for operation. This software consists of the usb protocol stack, wh...

  • Page 18

    18 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r the lcd controller is an ip bus master and fetches data for screen refresh independently of cpu activities. The display data that is fetched is loaded into a fifo using a block transfer ac...

  • Page 19

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 19 1-800-255-7778 r the only software support required for this block is the screen bios which consists of functions to generate screen images by manipulating the frame buffer memory. This buffer appears as a...

  • Page 20

    20 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r sdram controller the sdram controller design ( figure 19 ) is based on the design developed by xilinx in application note xapp134: virtex synthesizable high performance sdram controller. T...

  • Page 21

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 21 1-800-255-7778 r when the architecture for this system was being planned, one issue that needed to be addressed was whether to execute the program image directly from flash or to copy it to sdram. There we...

  • Page 22

    22 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r software support required for this block consists of the flash bios which implements low level primitives for programming, erasing, and checking validity of memory blocks. Irda controller ...

  • Page 23

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 23 1-800-255-7778 r audio dac interface the interface for the cs4343 consists of two separate functional blocks, one for each of the serial interfaces that are required to support this device. Figure 22 shows...

  • Page 24

    24 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r like the irda controller, an interrupt is generated every time the fifos transfer their last word into the shift registers. Assuming a 48 khz audio sampling rate, this will result in an in...

  • Page 25

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 25 1-800-255-7778 r spartan device selection spartan devices are available in a range of densities and packages. The following criteria were used to select the device used in this application: • i/o pins. The...

  • Page 26

    26 www.Xilinx.Com xapp169 (v1.0) november 24, 1999 1-800-255-7778 mp3 ng: a next generation consumer platform r references rc32364 riscontroller, hardware user’s manual, april 1999, integrated device technology xilinx spartan-ii fpga data sheet, january 2000, xilinx irms6100 1.15 mb/s irdt data tran...

  • Page 27

    Mp3 ng: a next generation consumer platform xapp169 (v1.0) november 24, 1999 www.Xilinx.Com 27 1-800-255-7778 r revision history © 1999 xilinx, inc. All rights reserved. All xilinx trademarks, registered trademarks, patents, and disclaim- ers are as listed at http://www.Xilinx.Com/legal.Htm . All ot...