SlideShare a Scribd company logo
Physical Address to DRAM Address
   Mapping
                                         2048 (16 pages)
64 KB aligned                            1920 (15 pages)
                     Bank 4m     Bank 4m+1 (m = 0 or 1) Bank 4m+2 Bank 4m+3              Unused Portion
                                                                                         1/16 for 1920*1080
                    System Adr    System Adr                System Adr     System Adr
                    (decimal)      (decimal)                 (decimal)     (decimal)     6/16 for 1280*720
     Row Adr n
                       0~127        128~256                  1792~1919     1920~2047     19/64 for 720*480
                    2048~2175      2176~2303                 3840~3967     3968~4095
                         |             |                         |             |
                         |             |     No bank             |             |        Dual 2KB page size
                   63488~63615   63616~63743 conflict      65280~65407    65408~65535   DRAM (4KB total)
 Line 0~31                                   case for
                  Bank 4m + 2    Bank 4m + 3 rectangular   Bank 4m       Bank 4m + 1    CA[4:0] = HA[6:2]
                                             DRAM                                       CA[9:5] = HA[15:11]
                    System Adr    System Adr                System Adr     System Adr
                       (hex)         (hex)
                                             access            (hex)          (hex)
                                                                                        BA[0] = HA[7]
                   10000~1007f   10080~100ff               10700~1077f    10780~107ff   BA[1] = HA[8]^HA[16]
    Row Adr n+4    10800~1087f   10880~108ff               10f00~10f7f    10f80~10fff   RA[1:0] = HA[10:9]
                         |            |                          |              |       RA[12:2] =HA[26 :16]
                         |            |                          |              |
 Line 32~63        1f800~1f87f   1f880~1f8ff               1ff00~1ff7f    1ff80~1ffff
Memory Holes for Video (Boda7503) Data
              1920*1080
              1280*720                            640*480
    0000000


                          Video Data                        Video Data
    1000000


    2000000


                          Memory hole with
    3000000
                          discontinuous address

    4000000


    5000000


    6000000


    7000000
Pros/Cons for the Address Mapping
   Advantage
      Simple DRAM memory address mapping
      All engines and processors see straight forward linear
       address layout
   Disadvantage
      Create unused scattered holes in system memory for
       video (Boda7503 generated) data
      The unused holes are difficult for software to utilize
Alternative Mapping to Reclaim Memory Holes
                                        2048 (16 pages)
64 KB aligned                           1920 (15 pages)
                     Bank 4m     Bank 4m+1 (m = 0 or 1) Bank 4m+2 Bank 4m+3             Continuous
                                                                                        address
                                 System Adr               System Adr    System Adr
                    System Adr
     Row Adr n         (hex)
                                     (hex)                    (hex)         (hex)
                                   100000~                  e00000~       f00000~
                       0~fff
                                    100fff                   e00fff        f00fff
                                                                                     Dual 2KB page size
                                                                                     DRAM (4KB total)

                  Bank 4m + 2    Bank 4m + 3              Bank 4m      Bank 4m + 1   CA[9:0] = HA[11:2]
                                                                                     BA[0] = HA[20]
                                                          System Adr
                                                                                     BA[1] =
                    System Adr
                                 System Adr
                                                              (hex)
                                                                        System Adr   HA[21]^HA[12]
    Row Adr n+4        (hex)
                                     (hex)
                                                            e01000~
                                                                            (hex)    RA[1:0] = HA[23:22]
                                   101000~                                f01000~
                    1000~1fff
                                    101fff
                                                             e01fff
                                                                           f01fff    RA[9:2] =HA[19:12]
                                                                                     RA[12:10] = HA[26:24]




                                                                        System Adr
                                                                            (hex)
                                                                          fff000~
                                                                           ffffff
Alternative Mapping to Reclaim Memory Holes

        Default Address Space                              Address Space of Extra Mapping
  00000000                                                      80000000



  01000000                 Same Video Data                      81000000
                           With different address
  02000000                                                      82000000



  03000000                                                      83000000


  04000000                                                      84000000


  05000000              Memory hole with                        85000000
                        discontinuous address
  06000000                                                      86000000


  07000000                                Memory hole with      87000000
                                          continuous address
MIPS Virtual to Physical Address Mapping
             Virtual Address                  Physical Address
 FFFFFFFF                                                         FFFFFFFF    Same Repetitive
             Kernal Mapped     kseg3                                          DRAM Mapping
 E0000000                                                                    (A[30:29] ignored)
 DFFFFFFF
            Supervisor Mapped kseg2
 C0000000                                      Alternative DRAM
 BFFFFFFF   Kernal Unmapped                         Mapping
                            kseg1
               Uncached                                                       Same Repetitive
 A0000000                                                                     DRAM Mapping
 9FFFFFFF
            Kernal Unmapped kseg0                                            (A[30:29] ignored)
                                                                  80000000
 80000000
                                                                  7FFFFFFF
 7FFFFFFF




                                                Default DRAM
              User Mapped      useg/kuseg         Mapping
                                                                              The upper 96MB
                                                                                DRAM space
                                                                  20000000
                                               SPI_Flash/Device 1A000000      overlapped with
                                       96MB
                                                   512MB                     SPI/Device can be
                                                                               accessed here
 00000000                                                         00000000
MIPS Virtual to Physical Address Mapping
   Kseg1/kseg0 cannot access alternate DRAM mapping
    region
   For 512MB DRAM, 96MB is wasted if software use only
    kseg1/kseg0
   Software must configure MMU for kseg3/kseg2/useg to
    access alternative DRAM mapping space or the 96MB
    DRAM space that conflicts with SPI_Flash/Device space
    on kseg1/kseg0.

More Related Content

PDF
xvYCC_RGB
PDF
Extreme dxt compression
PDF
Regularised Cross-Modal Hashing (SIGIR'15 Poster)
PPT
Plc macconcept
PPTX
Memory mapping
PPT
Microcontroller 8051 soft
PDF
nullcon 2011 - Memory analysis – Looking into the eye of the bits
PDF
Looking in the eye of the bits
xvYCC_RGB
Extreme dxt compression
Regularised Cross-Modal Hashing (SIGIR'15 Poster)
Plc macconcept
Memory mapping
Microcontroller 8051 soft
nullcon 2011 - Memory analysis – Looking into the eye of the bits
Looking in the eye of the bits

Similar to Memory mapping plan (20)

PPT
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
PPT
verilog_case_study
PPT
Chapter1
PPTX
Computer design
PDF
Assembly language programming
PPT
Microprocessors 1-8086
DOCX
Instructionformatreport 110419102141-phpapp02
PPT
Tms320F2812 Digital I/0
PPT
Ch3
PDF
8051 microcontrollers ch3
PPT
C for Microcontrollers
PPT
Class12
PPT
microprocessors
PDF
Linux Symposium 2011 "Analysis of Disk Access Patterns on File Systems for Co...
PPTX
Sistema De Numeracion
PPTX
Ejemplos De Sistemas De Numeracion
PDF
Lecture.1
PPT
12 cache questions
PDF
Lect14
Embedded Systems Training & Live Projects @Technogroovy Systems India Pvt Ltd
verilog_case_study
Chapter1
Computer design
Assembly language programming
Microprocessors 1-8086
Instructionformatreport 110419102141-phpapp02
Tms320F2812 Digital I/0
Ch3
8051 microcontrollers ch3
C for Microcontrollers
Class12
microprocessors
Linux Symposium 2011 "Analysis of Disk Access Patterns on File Systems for Co...
Sistema De Numeracion
Ejemplos De Sistemas De Numeracion
Lecture.1
12 cache questions
Lect14
Ad

Recently uploaded (20)

PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
STKI Israel Market Study 2025 version august
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
August Patch Tuesday
PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
Modernising the Digital Integration Hub
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Hybrid model detection and classification of lung cancer
PPTX
Tartificialntelligence_presentation.pptx
PPT
What is a Computer? Input Devices /output devices
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
DP Operators-handbook-extract for the Mautical Institute
NewMind AI Weekly Chronicles – August ’25 Week III
A contest of sentiment analysis: k-nearest neighbor versus neural network
Group 1 Presentation -Planning and Decision Making .pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Web App vs Mobile App What Should You Build First.pdf
STKI Israel Market Study 2025 version august
O2C Customer Invoices to Receipt V15A.pptx
August Patch Tuesday
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Chapter 5: Probability Theory and Statistics
Modernising the Digital Integration Hub
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Module 1.ppt Iot fundamentals and Architecture
Hybrid model detection and classification of lung cancer
Tartificialntelligence_presentation.pptx
What is a Computer? Input Devices /output devices
Hindi spoken digit analysis for native and non-native speakers
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
DP Operators-handbook-extract for the Mautical Institute
Ad

Memory mapping plan

  • 1. Physical Address to DRAM Address Mapping 2048 (16 pages) 64 KB aligned 1920 (15 pages) Bank 4m Bank 4m+1 (m = 0 or 1) Bank 4m+2 Bank 4m+3 Unused Portion 1/16 for 1920*1080 System Adr System Adr System Adr System Adr (decimal) (decimal) (decimal) (decimal) 6/16 for 1280*720 Row Adr n 0~127 128~256 1792~1919 1920~2047 19/64 for 720*480 2048~2175 2176~2303 3840~3967 3968~4095 | | | | | | No bank | | Dual 2KB page size 63488~63615 63616~63743 conflict 65280~65407 65408~65535 DRAM (4KB total) Line 0~31 case for Bank 4m + 2 Bank 4m + 3 rectangular Bank 4m Bank 4m + 1 CA[4:0] = HA[6:2] DRAM CA[9:5] = HA[15:11] System Adr System Adr System Adr System Adr (hex) (hex) access (hex) (hex) BA[0] = HA[7] 10000~1007f 10080~100ff 10700~1077f 10780~107ff BA[1] = HA[8]^HA[16] Row Adr n+4 10800~1087f 10880~108ff 10f00~10f7f 10f80~10fff RA[1:0] = HA[10:9] | | | | RA[12:2] =HA[26 :16] | | | | Line 32~63 1f800~1f87f 1f880~1f8ff 1ff00~1ff7f 1ff80~1ffff
  • 2. Memory Holes for Video (Boda7503) Data 1920*1080 1280*720 640*480 0000000 Video Data Video Data 1000000 2000000 Memory hole with 3000000 discontinuous address 4000000 5000000 6000000 7000000
  • 3. Pros/Cons for the Address Mapping  Advantage  Simple DRAM memory address mapping  All engines and processors see straight forward linear address layout  Disadvantage  Create unused scattered holes in system memory for video (Boda7503 generated) data  The unused holes are difficult for software to utilize
  • 4. Alternative Mapping to Reclaim Memory Holes 2048 (16 pages) 64 KB aligned 1920 (15 pages) Bank 4m Bank 4m+1 (m = 0 or 1) Bank 4m+2 Bank 4m+3 Continuous address System Adr System Adr System Adr System Adr Row Adr n (hex) (hex) (hex) (hex) 100000~ e00000~ f00000~ 0~fff 100fff e00fff f00fff Dual 2KB page size DRAM (4KB total) Bank 4m + 2 Bank 4m + 3 Bank 4m Bank 4m + 1 CA[9:0] = HA[11:2] BA[0] = HA[20] System Adr BA[1] = System Adr System Adr (hex) System Adr HA[21]^HA[12] Row Adr n+4 (hex) (hex) e01000~ (hex) RA[1:0] = HA[23:22] 101000~ f01000~ 1000~1fff 101fff e01fff f01fff RA[9:2] =HA[19:12] RA[12:10] = HA[26:24] System Adr (hex) fff000~ ffffff
  • 5. Alternative Mapping to Reclaim Memory Holes Default Address Space Address Space of Extra Mapping 00000000 80000000 01000000 Same Video Data 81000000 With different address 02000000 82000000 03000000 83000000 04000000 84000000 05000000 Memory hole with 85000000 discontinuous address 06000000 86000000 07000000 Memory hole with 87000000 continuous address
  • 6. MIPS Virtual to Physical Address Mapping Virtual Address Physical Address FFFFFFFF FFFFFFFF Same Repetitive Kernal Mapped kseg3 DRAM Mapping E0000000 (A[30:29] ignored) DFFFFFFF Supervisor Mapped kseg2 C0000000 Alternative DRAM BFFFFFFF Kernal Unmapped Mapping kseg1 Uncached Same Repetitive A0000000 DRAM Mapping 9FFFFFFF Kernal Unmapped kseg0 (A[30:29] ignored) 80000000 80000000 7FFFFFFF 7FFFFFFF Default DRAM User Mapped useg/kuseg Mapping The upper 96MB DRAM space 20000000 SPI_Flash/Device 1A000000 overlapped with 96MB 512MB SPI/Device can be accessed here 00000000 00000000
  • 7. MIPS Virtual to Physical Address Mapping  Kseg1/kseg0 cannot access alternate DRAM mapping region  For 512MB DRAM, 96MB is wasted if software use only kseg1/kseg0  Software must configure MMU for kseg3/kseg2/useg to access alternative DRAM mapping space or the 96MB DRAM space that conflicts with SPI_Flash/Device space on kseg1/kseg0.