Professional Documents
Culture Documents
S32G2 Memory
S32G2 Memory
APRIL 2021
PUBLIC
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER W ORLD ARE TRADEMARKS OF NXP B.V.
ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RES PECTIVE OW NERS. © 2021 NXP B.V.
MEMORY OVERVIEW
Unlike the previous generation gateway family, the S32G2 has no internal flash
S32G2
Internal External
Memories Memory
Interfaces
8 MB SRAM DRAM –
DRAM Supports LPDDR4, DDR3L
32 KB Standby QuadSPI -
RAM QuadSPI Supports Octal, DDR, HyperFlash
BootROM
(~128K) SDHC Supports MMC, eMMC, SDXC
PUBLIC 1
MEMORY ARCHITECTURE
Isolated
Core 0 Coupled − Execute: System RAM
RAM Key1
Cortex
Cortex Crypto
M7 Key2
M7 Engine • High performance execution path
I-Cache Key3 − CPU to System RAM
... ENCRYPTED +
HSE RAM SIGNED
L1 I / D-Cache • Security built into architecture
CONTENT − External = Encrypted + Signed
(3) EXECUTE
PUBLIC 2
INTERNAL MEMORIES: SRAM
512KB
512KB
512KB
− Interleaved on a 64byte boundary
− Transaction splitting and reordering taken care of
by FlexNOC – entirely transparent to user
SRAM
Advantages of this approach:
• Accesses are shared across all 16 ports – lessening
the amount of bottlenecks on single ports
• No need for customer to manually partition code
between RAM controllers to optimize for multi master
accesses
PUBLIC 3
I N T E R N A L M E M O R I E S : S TA N D B Y R A M , B O O T R O M
PUBLIC 4
E X T E R N AL M E M O RY I N T E R FAC E S : D R AM
PUBLIC 5
E X T E R N AL M E M O RY I N T E R FAC E S : D R AM
• DRAM address space will be split into 8 regions for each DRAM channel
• Each region can separately enable inline ECC
• The 8th region is used for ECC storage and becomes unavailable for application
• Write example to ECC region – 8 data bursts will fill one additional ECC burst
Burst 1 (BL=16) Burst 1 (BL=16) Write data to
Burst 2 (BL=16) Write data w/o ECC into DRAM DRAM address
Transfer 1 Transfer
Burst 1
2 (BL=16)
Transfer region 1-7
Burst28 1(BL=16)
Transfer … 2
Transfer
Transfer 2
… Transfer 1 Generate ECC
Burst 8…(BL=16)
Transfer 2
…
TransferTransfer
16 2 per 64-bit Transfer
Burst 9 (ECC
… 16
Transfer 1
Burst)
Transfer 16 transfer and
… Store in buffer Transfer
ECC Transfer
for 2 (half)
Burst16
1 Write ECC to
… Transfer 16 Write ECC buffer … 1 (half)
ECC for Burst
DRAM address
region 8
to DRAM
WriteWay1:ECC Buffer when buffer is full … 16
Transfer
ECC for Burst 1 (half) ECC for Burst 8 (half)
ECC for Burst 1 (half)
8x ECC buffers for
…
optimized handling of Ideally, 12.5% bandwidth overhead if
ECC for Burst 8 (half)
interleaved write the parallel threads can fill the ECC
threads buffers (linear interleaved traffic). Up
to 100% for random traffic
PUBLIC 7
DRAM CONTROLLER: INLINE ECC (READ)
Initiate Read:
Read ECC first Read data Detect and
Burst 9 (ECC Burst) Burst 1 (BL=16) Corr. Burst 1 (BL=16)
if ECC buffer is bursts correct errors
Burst 2 (BL=16) Corr. Burst 2 (BL=16)
empty ECC for Burst 1 (half) Transfer 1 in data bursts Transfer 1
Transfer
Burst28 1(BL=16) Transfer
Corr. 1
Burst
ECC for Burst 1 (half) Transfer Transfer 2 8 (BL=16)
Transfer 2 Transfer 2
… … Transfer 1 … Transfer 1
… …
ECC for Burst 8 (half) TransferTransfer
16 2 TransferTransfer
16 2
Transfer 16
… Transfer 16
…
Transfer 16 Transfer 16
ReadWay1:ECC Buffer
ECC for Burst 1 (half) Ideally, 12.5% bandwidth
8x ECC buffers for ECC for Burst 1 (half) overhead if the parallel threads
optimized handling of … fully use the ECC buffers
interleaved read ECC for Burst 8 (half) (linear interleaved traffic). Up to
threads 100% for random traffic
PUBLIC 8
E X T E R N AL M E M O RY I N T E R FAC E S : Q U AD S P I
• All AHB accesses to flash devices are directly memory mapped to the chip system memory.
• Flexible sequence engine to support various flash vendor devices.
− Single, dual, quad and octal modes of operation
• There is no set standard for QuadSPI protocol. S32G2 supports:
− Cypress HyperFlash
− Macronix Octa Flash
− Micron Octal Flash
PUBLIC 9
E X T E R N AL M E M O RY I N T E R FAC E S : Q U AD S P I
Cypress HyperFlash
PUBLIC 10
E X T E R N AL M E M O RY I N T E R FAC E S : S D H C
PUBLIC 11
USE CASES: QUADSPI VS EMMC
Customers with external DRAM will typically use eMMC and copy full application at
boot.
If A53/DRAM not required, then QuadSPI is preferred due to memory mapping.
PUBLIC 12
USE CASES
CPU Platform
3x Dual-core Lockstep
Switch Fabric
x16
A53 Linux
A53 Linux M7 flash
image copied
M7 image flash image image
from SDHC
copied from
QuadSPI
+shared data
PUBLIC 13
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER WORLD ARE TRADEMARKS OF NXP B.V. ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RESPECTIVE OWNERS. © 2021 NXP B.V.