Design And Implementation Of A Data Compression Scheme: A Partial

  • Uploaded by: Sujesh P Lal
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Design And Implementation Of A Data Compression Scheme: A Partial as PDF for free.

More details

  • Words: 923
  • Pages: 18
Design and Implementation of a Data Compression Scheme: A Partial Matching

Guided by: Prof H. R. Vishwakarma SUJESH P. LAL, VIT University, Vellore

PPM   

Predictive by Partial Matching (PPM) Altera FLEX10K FPGA device Followed by timing analysis,  circuit synthesis for the validation,  Functionality,  performance of the designated circuit. 

2

[email protected]

Prediction by Partial Matching 

“Finite-context” statistical modeling technique. Blending together several “fixed-order context” models to predict the next character in the input sequence.  Benchmark Version: PPMC  In 1999, Charles Bloom developed PPMZ 





In 2002, Dmitry Shkarin developed PPMII 

3

uses an adaptive second level model to estimate the optimum value as a function of the order, the total character count, number of unique characters, and the last one or two bytes of context. PPMII inherits the statistics of shorter contexts to set the initial estimate when a longer context is encountered for the first time

[email protected]

PPMONSTR and PPMD 

PPMONSTR is a variation of PPMD That trades compression rate for execution speed.  Ziv.Lempel coding are more commonly used in practice.  The PPM algorithm for binary data compression was successfully written and modeled in VHDL. 

4

[email protected]

VHDL 

VHDL - a hardware description language. VHSIC Hardware Description Language(VHDL)  Very High Speed Integrated Circuit(VHSIC) 



Strength Ability to model a digital system at many levels of abstraction.  Easy to design (Rapid prototyping)  Low cost  Faster time to market  Exploration of design space 

5

[email protected]

Field Programmable Gate Array (FPGA) Offers a potential alternative to speed up the hardware realization.  Strengths 

lower cost  higher density  shorter design cycle 



Building blocks 

Each block consist of  

6

Programmable look-up table Storage registers

[email protected]

Design Methodology 

Involves two steps 

The generation of the adaptive model 





7

Uses Markov modeling

The compression/decompression using arithmetic coding

Adaptive coding allows the model to be constructed dynamically by both encoder and decoder during the course of the transmission

[email protected]

block diagram of a complete data compression system

 Compression is dependent upon the fact that data is redundant and that its generation was based on a fixed set of rules  Data that has been compressed need to be decompressed to return it to its original form. Therefore a decompressor comes hand-inhand with a compressor

8

[email protected]

PPM Implementation  Generation of

an adaptive model  The compression or coding  What

is happening is counted and used as the basis of subsequent coding so that the counts only needs to be incremented in the event that a character is correctly predicted.

 The

adaptive model is generated using a Markov predictor.

9

[email protected]

Arithmetic Encoder and Decoder To generate variable length codes  Replaces a sequence of symbols with a coding range of real numbers between 0 and 1 (according to the probability of occurance)  Generates a tag(a floating point value) from that range for a sequence encoded  The first phase generates a unique identifier or tag for a given sequence of symbols  The second phase gives a unique binary code to the tag 

10

[email protected]

Algorithm for Arithmetic encoding and decoding The algorithm for decoding is:

Low=0 High=1 Loop for all symbols Range = High – Low High = Low + Range * Q(x) Low = Low + Range * Q(x – 1) where, Q(x) = high range of symbol being encoded Q(x- 1) = low range of symbol being encoded The algorithm for decoding is: Loop for all symbols. Range = Q(x) – Q(x – 1) = Tag – Q(x – 1) Tag = Tag / Range Where, Q(x)=high range of symbol being decoded Q(x-1)=low range of symbol being decoded 11

[email protected]

Flowchart of the Markov predictor

12

[email protected]

Software Implementation The whole design is described using IEEE compliant VHDL language  A bottom-up approach is adopted(PPM module is subdivided)  Three sub modules: 

 Markov

predictor  Arithmetic encoder  Arithmetic decoder 

The Markov predictor would be combined with the arithmetic encoder and referred to as the Markov mode.

13

[email protected]

Markov Model 

Builds the probability distribution from the input symbols seen and the arithmetic encoder generates a unique identifier or tag based on the probability distribution of symbols.

 Input to the Markov model sub-module is bit_stream1_1  Two output ports: prob0_0 and prob1_0  enable-1, clock-1  Outcome: The high and low range  The tag is generated and outputted at output_tag1  The sub-module would output a high bit to port trigger_decoder for the decoder 14 to start decoding. [email protected]

Arithmetic Decoder and ppm model

Block diagram of arithmetic decoder

15

[email protected]

Top-level view of PPM model

Hardware Implementation Hardware implementation is the unique abstract of this work  The physical hardware layout is generated using the synthesis tool Quartus II version 5.0  Software is configured and downloaded to the FLEX10K EPF10K30BC356-3 FPGA  The FLEX10K family provides the density, speed, and features to integrate entire systems, including multiple 32bit buses into a single chip 

16

[email protected]

Conclusions In this research project, the FPGA prototyping of data compression using partial matching algorithm that allows for efficient hardware implementation had been implemented.  The hardware implementation demonstrated complete, correct functionality and met all the initial system requirements  Comparison and results presented validate the successful compression of data using partial matching. 

17

[email protected]

Thank You

18

[email protected]

Related Documents


More Documents from "Sly"