Friday, May 17, 2019
RTL Implementation of MP3 Decoder IP Core
RTL IMPLEMENTATION OF MP3 DECODER IP COREAbstractionThe intent of this study is to look into the effectivity of the MP3 decodeing form in hardw be similitude to the more(prenominal) normal softw ar chassis stick out. Nowadays, the MP3 level format is the approximately popular criterion for audio compaction, apply in playback device such as audio participants and nomadic ph nonpargonils. While MP3 decryption is star of the indispensable portion in multimedia system, most of the decryption fancy are software- base, peculiarly because of the design of the system, which is easier compared to the hardware portion. However, the package design has high-pitcheder clock, wherefore higher power expenditure. This happens because of the design itself it has more iteration in the scheduling algorithm. There are lying-ins that faith both hardware and package design in the MP3 decrypting creative activity, but the standalone hardware rational place ( IP ) nucleus is still n on good explored.This writing testament present a brief part on the basicss of the undertaking, all bit good as the call for inside randomnesss needed in operative on the undertaking. Every inside informations presented in the study are both ga in that locationd from diaries, books and the online beginning available. The accentuate of this undertaking is to bombardment the bespeakd IP nucleus and implemented in Register Transfer Level ( RTL ) manner, in which it easy means utilizing the hardware descriptive linguistic communication ( high-density lipoprotein ) as the footing linguistic communication for the design.Table OF CONTENTSChapterTitlePageDedication2Recognitions3Abstraction4Table OF CONTENTS5List OF FIGURES71.0Introduction81.1Undertaking Background81.2Aim91.3Problem Statement91.4Scope of the Undertaking102.0Literature Review112.1Related Studies and Previous Work112.2Introduction to the MP3 Decoding Core132.2.1Synchro stage setting142.2.2Huffman Decoding152.2.3Requ antiser162.2.4Re influenceing172.2.5Antialiasing182.2.6Inverse Modified discrete Cosine veer ( IMDCT )192.2.7Synthesis Polyphase Filterbank203.0 explore Methodology223.1Introduction223.2Ocular Representation of Research Methodology223.2.1Altera DE2 Board243.2.2Altera Quartus II253.2.3NIOS II25List OF FIGURESFIGURE NO.TitlePage2.1The MP3 bitstream format192.2The three separate of frequence line202.3The reordering procedure ( the darker coloring material represents higher frequences )222.4The antialias butterfly232.5Types of windowpane sequences in a subband252.6The IMDCT operation persist273.1The undertaking flow flow3.2The Altera DE2 circuit board ( beginning hypertext transfer protocol //www.terasic.com.tw/ )293.3The Quartus II work bench environment303.4The NIOS II work bench environment31Chapter 1IntroductionUndertaking BackgroundMPEG-1/2 audio layer-3 ( MP3 ) is a most popular format for playback of high quality compressed sound. During the recent old ages the application o f MP3 sound codec has exploded. Typically MP3 files are played back utilizing package ( CPU or DSP ) , but recent tendencies bind since informant the upshot of portable device, such as nomadic phones and MP3 participants. While DSP architecture is the most efficient for running MP3 participant, the challenges of FPGA public presentation of MP3 decrypting are less understood.Field Programmable Gate Array, nevertheless known as FPGA, is one type of coordinated circuit that is consumer-programmable, therefore it is called field programmable . This incorpo locate circuit uses hardware descriptive linguistic communication ( HDL ) to configure. Nowadays, FPGA has since advanced into a high degree of efficiency during the past decennary. It has since become the major HP in different types of application, since it seat be employed as standalone System on Chip ( SoC ) or healthy gas pedals in multi-chip system.The mark of the undertaking is to implement the MP3 decrypting nucleus by u sing the FPGA be enormousingss. While utilizing the bing package codification to run the decipherer in package, efforts has been make to run the decipherer in hardware, which will go the chief way in this undertaking. Then, comparing the public presentation of these two methods will besides be the focal point of the undertaking.AimThe aim of this undertakings areTo plan the MP3 decipherer hardware based and can be implemented in portable based designTo measure the efficiency of the hardware based decipherer comparison to the common package based deciphererProblem StatementMost of the MP3 decryption designs are of in package. However, the hardware importance of the decryption design has since taken the popularity today. Therefore, several efforts feature been taken to make the to the full hardware architecture of the decryption nucleus. This paper will measure the efficiency of the hardware decipherer as per package decipherer and to look into the advantages of both methods.Scope o f the UndertakingThe range of the undertaking includes combination of several elements such as hardware, package and electronic parts. Below are the Scopess for the undertaking.Uses Verilog HDL linguistic communication as its chief footing for programmingExplore the application of Verilog utilizing Altera DE2 BoardInclude package programming such as C and C++Implement the application ( partial ) utilizing downloaded package for package execution ( Quartus II 9.1, Nios II 9.1 )Chapter 2LITERATURE REVIEWIn 1988, Hiroshi Yasuda ( Nippon Telegraph and Telephone ) and Leonardo Chiariglione had initiated the working conclave Traveling Pictures Experts Group ( MPEG ) to put the criterions for audio and video compaction and transmittal. The group, formed by International geological formation for Standardisation ( ISO ) and International Electrotechnical Commission ( IEC ) , has since developed into an organisation joined by members from assorted industries, universities and enquiry establ ishments. wholey of the criterions that have created is the MPEG-1 Layer 3, or good known as MP3. MP3 is the standard format used for digital audio compaction, in which the design have 121 compaction ratio, from 1.4Mbps 128kbps bitrate for compact phonograph bring down ( Cadmium ) music.Related Studies and Previous WorkIt is known that MP3 decrypting procedure is a hard procedure, but several research workers and industrialist have attempted to plan the decipherer for this specific format. For case, Faltmanet Al.( 2003 ) have stated that the designing of MP3 decrypting in portable and complete participants have gained in popularity. In the study, Faltmanet Al.( 2003 ) besides stated the importance in the public presentation of these hardware MP3 decrypting based on the clock rhythms and power use. It besides includes an effort to to make an MP3 decipherer in hardware, by utilizing Xilinx FPGA board. Thuonget Al.( 2005 ) have proposed the architecture of the MP3 decryption nucleus , in which the subcores of the architecture can be separately designed, coded and tested easy. However, the design of the nucleus is coded utilizing VHDL, the older version of RTL linguistic communication.Ko and Nicolici ( 2007 ) have tested the execution of the nucleus utilizing Altera DE2 board and Xilinx multimedia board. It besides has consequences including the figure of logic elements, reversals, memories and multipliers elusive. Bhargav and Yang ( 2008 ) have introduced the use of Linux-run interface on the decryption nucleus. Their research has besides opened the possibilities of animating the popular piece of consumer engineering utilizing bing hardware available in the lab. Still, the design utilizes both hardware and package constituent in their design architecture. It has few general lags due to system clock and debugging procedure.Singhet Al.( 2008 ) have proposed that the demand of hand-held participants and multimedia in nomadic phone have elevated a demand for a de dicated hardware to decrypt the file formats with low power ingestion and faster acceleration. Papakonstantinouet Al.( 2008 ) have researched instance survey on the execution of drifting point math in decipherer execution to accomplish existent clip and faster decrypting procedure. In the instance survey, the writers introduce floating-point ( FP ) unit in their architecture to measure the operation velocity therefore naming it the FP execution of MP3 decryption.In the latest research by Moslehpouret Al.( 2013 ) , the undertaking uses NIOS II system, which is a portion of package device, to read files and produces end growth from the decrypting procedure. By utilizing unafraid digital ( SD ) card as input devices, the system uses Altera DE2 board but combine different file format moving ridge files, or.wav extension files. Even so, the exposure of the study have shown that running the decipherer is possible, peculiarly because of package characteristics use Altera SOPC builder i n Altera Quartus 9.1 environment, in which the platform is for the most part used in third instruction degree.Some of the old work did even make the architectural design of MP3 decipherer, utilizing a VLSI cell-based attack. Tsaiet Al.( 2004 ) have proposed the specific architectural face of MP3 decipherer in which it achieves a high throughput with a decreased memory demand and hardware complexness. Meanwhile, Kalpanaet Al.( 2012 ) have tried to implement the algorithm on the decreased direction set computer science ( RISC ) based ARM mainframe computer, which is far more advanced, proficient wised.All of the old work did hold its important characteristics in edifice MP3 decryption nucleus, either in hardware or package. However, the execution of MP3 decrypting IP nucleus, which uses Verilog HDL as its hardware linguistic communication, as implementing it to the full hardware based is non good discovered. Therefore, the focal point is the study is to undertake the design of MP3 decrypting nucleus, on the surface at least.Introduction to the MP3 Decoding CoreHarmonizing to Kalpanaet Al.( 2012 ) , all MP3 files are divided into fragments called frames. Each frames shops 1152 samples, enduring for 26ms, which the frame rate is about 38 frame per second ( Federal Protective Service ) . The for the first time measure to decrypt MP3 file format is by happening the start of the frame, which is called synchronism procedure, or else called initial reading.SynchroscopeBefore decryption, the start of the frame must be frame. If the frame is interrupted, we can non happen the exact place of the following frame ( Thuonget Al., 2007 ) . The construction of the frame consists of 5 parts heading, cyclic redundancy cheque ( CRC ) , side information, chief informations and accessory informations.HeadingCRCSide InformationMain informationsAncillary data conception 2.1The MP3 bitstream formatThe inside informations about the frame heading is as followsFrame HeaderIt is a 32-bit foresighted and has description of the frame, unneurotic with the synchronism word to separate the get downing portion of the bitstreamCRCUse to look into if there is any transmittal mistake for the most sensitive informations. The CRC will merely exists when the protection spot in the heading is set.Side InformationIncludes the of import information needed to decrypt the chief information. This depends on the channel manner. For individual channel, 136 descry are allocated, while for double channel, 256 spot allocated ( this is tantamount to 17 bytes in individual channel, 32 bytes in dual-channel )Main DataThe chief informations portion consists of the frames that includes scalefactors, Huffman coded spots and accessory informationsAncillary DataThis information can keep user-defined information. This frame country can keep optional informations such as vocal name or song information.Huffman DecodingThis subdivision contains one of the most of import undertaking in MP3 d ecryption. The undertaking of Huffman decrypting is to transform and roleping the information into scalefactors and symbols stand foring the 576 sure frequence lines for all(prenominal) granule. These frequence line is divided into three divider Big- determine,Count1andRzero.Big-valuesCount1RzeroFigure 2.2The three parts of frequence lineDetailss on the Huffman codification divider are as followsBig-valuesRepresents the lowest frequence lines and are coded with the highest preciseness, measure from values between -15 to 15. When the decipherer finds the value 15, it assumes that the higher preciseness is needed. This can be done by utilizing the value 15 as an flight codification, so reads extra spots from the imput watercourse. The figure specify in the Huffman tabular array are called linbits.Count1Represent the higher frequence lines non necessitate the higher preciseness scaled value. Ranging from -1 to 1.RzeroRepresent the highest frequence lines, and non portion of the b itstream. It contains the the frequence lines that are removed by the encoder. These values are filled with zipper by the decipherer.RequantiserThe symbols generated from Huffman decrypting is so reconstructed into the original frequence line by utilizing the scalefactors provided in the side information of the frame. The low frequence scalefactor set contains less values than the high frequence.The descaling equation for both short thwarts and long blocks are defined asShort blocksLong blocksThe denoted scalefactorsscalefactor_sandscalefactor_lused by requantiser are provided by Huffman decipherer. Parametersglobal_gain,subblock_gainandpreflagcan be found in the frames provided by the Synchroniser block. The notaiondefines end proceeds from the Requantser block, whileis the Huffman decoded value at indexI.ReorderingThis block merely has one undertaking it reorders the frequence lines within a granule. When the short block is decoded, a short window will be used. The end product is so sorted into subbands, so on frequences and at last by Windowss to increase the efficiency of Huffman coding.Figure 2.3The reordering procedure ( the darker coloring material represents higher frequences )AntialiasingAntialiasing is the procedure where its map is to cut down the inevitable assumed name effects because of the use of non-ideal bandpass filtering. The alias Reconstruction is based on the butterfly computation, d wellheading of eight butterfly computation for each subband.Figure 2.4The antialias butterflyInverse Modified Discrete Cosine TransformInverse Modified Discrete Cosine Transform, known as IMDCT, reproduce clip samples from the frequence lines, together with synthesis polyphase filterbank. The clip samples can be obtained from the frequence lines by utilizing the undermentioned equation.The IMDCT operation flow begins by taking 18 input frequence lines and generates 36 polyphase filter subband samples. The samples so multiply with with a 36-point window bef ore passed into following decryption procedure. Windowing is the procedure of multiplying and overlapping add-on operation of IMDCTs end product with the sine window coefficient. Based on the length of each window, four types of block is used they arestart,halt,shortandlong. The determination of block type is based on the analysis of the psychoacoustic theoretical account.Figure 2.5Types of window sequences in a subbandHowever, bring forthing 36 samples from 18 input means that there are merely 18 samples are alone, therefore the IMDCT method uses a 50 % convergence. In this instance, the 36 end product samples is so divided into 2 groups, low group and high group, which has 18 samples each. The overlapping procedure is so carried out by adding values from the higher group, old frame with the lower group, matching frame. Then, the frequence eversion is so taken topographic point to accomplish right stage difference. This was done by multiplying every uneven subband with ( -1 ) .Fi gure 2.6The IMDCT operation flowSynthesis Polyphase FilterbankThis block is the last measure in decrypting procedure. It converts all 32 subbands to bring forth 32 Pulse Code Modulation ( PCM ) samples at a clip The filterbank exploits aliasing and windowing to be active the subbands back into their frequence sphere. This block is divided into two parts Modified Discrete Cosine Transform ( MDCT ) and windowing.Modified Discrete Cosine TransformEach clip frame of the subband samples are ordered so that the first 32 values are the first sub-sample from each subband, and so forth. The MDCT processes 32 values at a clip by utilizing the equationwhereThe end point end product values,is so stored in the barrel shifter.WindowingThe windowing procedure tallies by multiplying the valuesfrom the barrel shifter with the window map. This window map is specified in the ISO criterion. The PCM generated are so computed for each loop. The MDCT and windowing together run 18 times for each granule, bring forthing 576 PCM samples ( 27ms at 44.1kHz ) .Chapter 3RESEARCH METHODOLOGYIntroductionThis chapter discusses the well planned attack taken during the projects timeline to guarantee that the undertaking is good organized and run expeditiously. The methodological analysis is represented into a flow chart for easiness of apprehension.Ocular Representation of Research MethodologyThe designate work flow for the undertaking is shown below, in Figure 3.1.Figure 3.1The undertaking work flowThe undertaking begins by researching any old plants related to the MP3 decryption and FPGA-based architecture execution. Besides that, several resources on hardware descriptive linguistic communication and package programming tutorial have besides looked at. The procedure involved in constructing the nucleus is studied and briefly elaborated to give excess cognition in order to carry through the research. The importance and intent of the undertaking is besides discussed in the first phase.The har dware used for proving and implementing the undertaking is Altera DE2 Educational Development Board.Figure 3.2The Altera DE2 board ( beginning hypertext transfer protocol //www.terasic.com.tw/ )Altera DE2 BoardThe Altera DE2 board provides everything needed to develop many advanced digital designs utilizing Altera Cyclone II device, with utilizing application package Altera Quartus II. This development board is the first measure to present and larn basic FPGA devices easy, since it is accessible in the lab. It is suited for a broad scope of exercisings in classs on digital logic and computing machine organisation, from simple undertakings that illustrate cardinal constructs to make out designs.Altera Quartus IIFigure 3.3The Quartus II work bench environmentAltera Quartus II is a package incision produced by Altera for analysis and synthesis of HDL designs, which enables the user to roll up their designs, execute clocking analysis, psychoanalyse RTL diagrams, imitate a design s re action and configure the mark device with the coder.NIOS IIFigure 3.4The NIOS II work bench environmentNios II is the most widely used soft processor in the FPGA industry. Nios II incorporates many sweetenings over the original predecessor, Nios architecture, doing it more suited for a wider scope of embed computer science applications, from DSP to system-control. The development for Nios II consists of two separate stairss hardware coevals, and package creative activity.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.