Docstoc

DCM_CDR_VA20

Document Sample
DCM_CDR_VA20 Powered By Docstoc
					             Data Compression Module
                     ( DCM )
                                   CDR Status Report


                         Tong-Long Fu
      Laboratory of RF-MW Photonics, Department of Physics
         National Cheng Kung University, Tainan, Taiwan



NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   1
                                                               Outline


    - Status Review
    - Image analysis and compression ratio
      achieved
    - Hardware Review
    - Function Testing
    - Conclusions



NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001     Tong-Long Fu   2
                                                       Status Review

  Works have been done:
    Hardware       1.    All measurement instruments and tools ready
                   2.    Testing environment ready
                   1.    Interface with MMCB/DPU discussed/reviewed.
                   2.    Compete ETU version A.
   Software        1.    Carry out image testing and analysis
                   2.    Settle coding scheme.
                   3.    Check coding size and memory map.
                   4.    complete FPGA Design.
   future works:
    Hardware       Testing and Integration testing.

    Software       Code Optimization

NCKU_UCB_Tohoku     ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   3
                                                    Image Analysis


     • Image analysis
     • Coding work flow
     • Windowing method
     • Compression code and compression ratio
       achieved
     • Programming
          – Code size, …

NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   4
                                                 Image Analysis (1)
                                                  for Image Compression

   1.Typical Images are
     Sprite Image                                              Most critical

     Aurora Image                                 Typical 512x128 image
     Airglow Image                                will be directly compressed



   2.Other type of data (from SOH,SP,AP)
        - minor issue

NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu     5
                                                     Image Analysis (2)
                                                                    for sprite


x

                        y

     Star and lightning will also be picked up .               x
                 Threshold and window size are
                                                                                      y
                 critical.




          x


                                                       y
    NCKU_UCB_Tohoku    ISUAL-IFR : DCM (version 2.0) July 9, 2001      Tong-Long Fu       6
                                                        Image Analysis (3)
                                                                       for Sprite


x


                      y

                                               x
     Star and lightning will also be picked up .
                 Threshold and window size are                                           y
                 critical.



      x



                                             y
    NCKU_UCB_Tohoku       ISUAL-IFR : DCM (version 2.0) July 9, 2001      Tong-Long Fu       7
                                                     Image Analysis (4)
                                                                    for Sprite


x


                               y
                                                               x
        The background of image is too noisy.                                         y
                 Coding scheme and automatic window
                 selection are difficult.



    x



                                                              y
    NCKU_UCB_Tohoku    ISUAL-IFR : DCM (version 2.0) July 9, 2001      Tong-Long Fu       8
                                                      Image Analysis (4)
                                                                     for Sprite


x

                           y
        This image has two sprites simultaneously x
                                                                                        y
                Imaging should be compared every two
                 successive images.



    x


                                                                     y

    NCKU_UCB_Tohoku     ISUAL-IFR : DCM (version 2.0) July 9, 2001       Tong-Long Fu       9
                                                     Coding work flow


             IMAGE                 Store Image                           Store 2 images
             DATA



                                                         yes      Windowing
                                  Sprite image                      image
                                             No                              (windowing code)

                                  Coding Image
                                                         (range code)

              IMAGE
               DATA
                                       Packet


NCKU_UCB_Tohoku      ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu                  10
                                                 Windowing Method


          Image input              Store 2 images in the DCM



                                        Do low pass filtering


                                  Compare two images , search                 Store
                                  different parts (high value )               windowing
                                                                              parameters
                                      Set values outsize the
                                       windows to be zero


                                               Coding image


NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu                11
                                            Windowing Parameters

    -Windowing
        an optimized windowing need to optimize
        -Window Size
             -we need to determine 16x16,32x32,64x64)
        -Image ordering
             -we need to record the order of image stored
        - Threshold for windowing
      CDI Command or MMCB
      *  We need to include the selection of windowing parameter in CDI and/or
        MMCB

NCKU_UCB_Tohoku    ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu     12
                                             Compression Code (1)
                                                               range code


   BMP file Use range coding


                                              66K  19K           Compression ratio: 3.5




                                               66K  7K           Compression ratio: 9.4



   • range coding is only an 1D data compression coding.
    It is not a good compression algorithm for image coding.



NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001     Tong-Long Fu              13
                                             Compression Code (2)
                                             Predictor code and range code

   Use PGM file



                                                                 Predictor
                                                                  coding
   Rangecode : compression ratio  4

   Huffman code + Predictor code : compression ratio  4.85
   (Lossless JPEG standard method)

                                    No good data for coding and some data like noise.
                                    Call “weeds in a football field”.
                                    A problem for lossless compression coding



NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu             14
                                             Compression Code (3)
                                      comparison with a commercial Company




          A                     B                         C                       D


                                    Company code                    Range code

    A      Compression ratio         6.7:1 (order 4)                         5.0:1

    B      Compression ratio         2.1:1 (order 3)                         2.0:1

    C      Compression ratio         4.5:1 (order 3)                         3.2:1

    D      Compression ratio         2.0:1 (order 4)                         1.85:1


NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu            15
                                             Compression Code (4)
                                                          general image
     PGM file
                                                   We need to get the standard
                                                   sample image to do coding
                                                   optimization .
                                                   Typical image needs to have
                                                   the same parameters of image.
                                                   e.g. Histogram , pixel/bits.




   Range code : compression ratio  3

   Huffman code + Predictor code : compression ratio  6.9
   (Lossless JPEG standard method)


NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu        16
                                 Programming Consideration(1)
                                                       Memory Size



  Memory Size:
  1.   BIOS (EEPROM)
       32K x 48         (Control code and some compression code)

  2.   Program Memory (SRAM)
       128K x 48   --   Total 768 bytes



  3.   Data Memory (SRAM)
       128K x 40



NCKU_UCB_Tohoku    ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   17
                                  Programming Consideration(1)
                                                   Image Memory Size


                                            512 x 128 Pixel :
                                                                         128k byte
                                            (16bits / Pixel )

    (1) If we use C code to program DSP, we can only use the limited integer type.
       Type of Integer : ( 32bits / Pixel )
       So store two images = total Data memory of DCM
    (2) Suggested solution :
       1. Change to write the codes in assembler.




NCKU_UCB_Tohoku     ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu        18
                                    Programming Consideration(3)
                                                               code size


    -Range code
     only 24K bytes (without global data setup)




NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001     Tong-Long Fu   19
                                               Compression Coding
                                                                Summary


 1.   All simulation of image is 8 bits image. (Need to consider about 16 bits)
 2.   Range Code + Predictor Code + Windowing Code is the finial scheme of
      coding.
 3.   All Program size < 200 Kbytes.
 4.   PLB section in MMCB is to store the upload program. If we want to let
      DCM to have new upload program code, then DCM will load program from
      PLB in the MMCB.
 5.   If we need do movie compression coding of Aurora Image,we maybe need
      more memory for coding.



NCKU_UCB_Tohoku    ISUAL-IFR : DCM (version 2.0) July 9, 2001     Tong-Long Fu    20
                                                 Hardware Review


     •   Interface summary
     •   List of key parts
     •   Modification since IFR
     •   PCB
     •   Memory size



NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   21
                                                Hardware Review(1)
                                                       Interface summary



                                                   Interface
                                                   - Between DPU and DCM
                                                    1.DCM_BSY
                                                    2.DCM_ATN
                                                    3.CDI-CCLK
                                                    4.CDI-DAT
                                                    5.CDI-STB
                                                   - Between MM and DCM
                                                     1. Address Bus (26bits)
                                                     2. Data Bus    (16 bits)
                                                     3. Read/Write enable
                                                     4. DMACK
NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu     22
                                                  Hardware Review (2)
                                                                  Parts list


                   Flight            ETU                                  Notes
                   model
     DSP          RH21020      ADSP21020- ETU : 21020-133 Hz
                    -100          133     The DSP 21020 is 4x
    FPGA          RH1280           A1280             The first step ,we use A54SX to test
                                  (A54SX)            function since A1280A is too expansive

    SRAM          HX6228         IDT71024            Note:Power consumption is not the same
    PROM          27C256           27C256            ---------------------------------------------
   EEPROM         No Used        AT28C256            During testing, we also use EEPROM to
                                                     test our codes.
     TTL          74AC14           74LS14            ----------------------------------------------

NCKU_UCB_Tohoku      ISUAL-IFR : DCM (version 2.0) July 9, 2001    Tong-Long Fu                       23
                                                        Hardware (3)
                                                    Modification since IFR



     Due to the limit of ADI DSP chip, we have to
      make the following modifications

        -- Program Memory: (now 128K x 48)
        -- Data Memory: (now 128K x 40)
        -- EEPROM Memory: (now 128K x 48)


NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   24
                                                        Hardware (4)
                                                        PCB configuration


                                                                         -ADSP21020
                                                                          DIP and SMD


                                                                         -FPGA A1280A
                                                                          FPGA A54SX




                                                                        six ERPOM in this



NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu                 25
                                                        Hardware (5)
                                                                PCB




NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   26
                                                           Hardware (6)
                                                                  Memory Size


                                              Device          Size         Max Size         Notes
                                                             (Now)

       BIOS                                   27C256     32k                 128K        Testing
                                               5 Ea  (long words)        (long words)    code, initial
                                                                                         value

      Interface Memory of DCM                HX6228     128k                1024k        Program
      IPM (Internal Program                   6 Ea  (long words)         (long words)    temp
                                                       48bits               48 bits      Memory
      Memory)
      Interface Memory of DCM                HX6228          128k            1024k       Data temp
      IDM(Internal Data Memory)               5 Ea          (words)         (words)      Memory

      MM                                         ??        ~ support     Up to 32 bits   Program ;
                                                            26 bits      address line    data
                                                          address line


NCKU_UCB_Tohoku      ISUAL-IFR : DCM (version 2.0) July 9, 2001      Tong-Long Fu                        27
                                                  Function Testing


     • Testing tools
     • Testing ports




NCKU_UCB_Tohoku   ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   28
                                                  Function Testing (1)
                                                             Testing Tools



 -ICE:
 Coding debugging


                                                                                 -Silicon II:
                                                                                 FPGA Testing
                                                                           DCM




                                      - Board Testing:
                                      CDI Testing
                                      Interrupt Testing


NCKU_UCB_Tohoku     ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu                   29
                                                 Function Testing (2)
                                                           Tool Description

   (1) Using Testing Port : FPGA ALTERA EPF10
    1. Program function form LPT1.
    2. Support 10MHz and 2 MHz clock .
    3. Connect Testing Port .
   (2) Using ICE Testing :
       1.Testing Program Code.
       2. Testing Memory Save and Load.
   (3)Using FPGA Silicon Testing Port:
      Testing FPGA action function.



NCKU_UCB_Tohoku    ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   30
                                                                   Testing Function (3)
                                                                                   Testing Ports
                                   3   6   9   12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 62
                               3
                                   2                                                               59
                               1
                                                                                                   61


         (DCM)TEST PORT PIN NAME               TESTING BOARD                   17           DMA1        B8
               7       DMWR#                         A17                       21           DMD1        B9
               10      DMRD#                          A2                      20            DMA2        B10
               13      PMRD#                          A3                      24            DMD2        B11
               16      PMWR#                          A4                      23            DMA3        B12
               19      CDI_CCI#                       A5                      27            DMD3        B13

               22      IRQ2#                          A6                      26            DMA4        B14
                                                                              30            DMD4        B15
               25      IRQ3#                          A7
                                                                              39            DMA5        B16
               28      DMS0#                          A8
                                                                              33            DMD5        B17
Signal         31      DMS1#                          A9
                                                                              32            DMA6        B18
               34
               37
                       DMS2#
                       DMS3#
                                                     A10
                                                      A11
                                                                              36            DMD6        B19   Bus
                                                                              35            DMA7        B20
               40      DCM_CDAT                      A12
                                                                              39            DMD7        B21
               43      DCM_CSTB                      A13
                                                                              42            PMD0        B22
               49      DCM_CCLK                      A14
                                                                              45            PMD1        B23
               58      PMS0#                         A15                      48            PMD2        B24
               61      PMS1#                         A16                       51           PMD3        B25
               3       WDR_DSBL#                      B1                      54            PMD4        B26
               6       FLAG2                          B2                      57            PMD5        B27
               9       FLAG3                          B3                      60            PMD6        B28
               12      MM_BSY                         B4                      62            PMD7        B29
               15      DCM_ATN#                       B5                       1            VDD
               14      DMA0                           B6                       4            VCC
Bus            18      DMD0                           B7                       5            GND



 NCKU_UCB_Tohoku        ISUAL-IFR : DCM (version 2.0) July 9, 2001                      Tong-Long Fu           31
                                                         Conclusions

-Schedule
  July:      1. Hardware Testing and Software Testing.
             2. Check integration testing schedule. (build up a
                  testing environment in UCB during CDR.)
  August: 1.Optimize coding

              2. Finalize DCM ETU board testing.
  September: 1. Finalize all testing

NCKU_UCB_Tohoku     ISUAL-IFR : DCM (version 2.0) July 9, 2001   Tong-Long Fu   32

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:1
posted:8/15/2011
language:English
pages:32