Springer Series in Advanced Microelectronics
Flash Memories
Economic Principles of Performance, Cost and Reliability Optimization
2014
Inside Solid State Drives (SSDs)
2013 (PDF)
Inside NAND Flash Memories
2010 (PDF)
Tuesday, October 29, 2013
Friday, October 25, 2013
Wednesday, October 16, 2013
802.11ac Benchmark
Broadcom
Qualcomm Atheros
Realtek
EW-7822UAC 802.11ac USB 3.0 adapter uses the 2T2R RTL8812AU chipset, and has a foldaway antenna for optimum signal performance.
MTK RalinkWednesday, October 9, 2013
ARM Cache, MMU, and TLB
TLB
TLB maintenance and configuration operations are controlled through CP15 coprocessor. This coprocessor provides a standard mechanism for configuring the level one memory system.
The Cortex-A9 processor implements a 2-level TLB structure. Four entries in the main TLB are lockable.
Main TLB: The main TLB catches the misses from the micro TLBs. It also provides a centralized source for lockable translation entries.
MMU
The Virtual Memory System Architecture version 7 (VMSAv7) features include the following:
Enable MMU:
TLB maintenance and configuration operations are controlled through CP15 coprocessor. This coprocessor provides a standard mechanism for configuring the level one memory system.
The Cortex-A9 processor implements a 2-level TLB structure. Four entries in the main TLB are lockable.
- Instruction side micro TLB
- Data side micro TLB
- Unified main TLB
Main TLB: The main TLB catches the misses from the micro TLBs. It also provides a centralized source for lockable translation entries.
MMU
The MMU works with the L1 and L2 memory system (L1 and L2 Cache) to translate virtual addresses to physical
addresses. It also controls accesses to and from external memory.
- page table entries that support 4KB, 64KB, 1MB, and 16MB
- 16 domains
- global and address space identifiers to remove the requirement for context switch TLB flushes
- extended permissions check capability.
Example: Identity Mapping (Virtual Address = Physical Address)
Init Page Table:
Init MMU:
Init Page Table:
init_pagetable:
ldr r2, =0b00000000000000000000110000000010
ldr r0, =PAGE_TABLE_ADDR
ldr r1, =0xfff @ loop 4096
write_descriptor:
orr r3, r2, r1, LSL #20
str r3, [r0, r1, LSL #2]
subs r1, r1, #1
bpl write_descriptor
/* Set different cacheable attributes */
@ inner write back, write allocate
@ set TEX as write back, write allocate
orr r3, r2, #1 << 20
bic r3, r3, #0b1100 @ clear CB bits
orr r3, r3, #0b0100
bic r3, r3, #0b111000000000000 @ clear TEX bits
orr r3, r3, #0b101000000000000
str r3, [r0, #0x4]
@ inner non-cacheable
@ set TEX as write back, write allocate
orr r3, r2, #2 << 20
bic r3, r3, #0b1100
orr r3, r3, #0b0000
bic r3, r3, #0b111000000000000
orr r3, r3, #0b101000000000000
str r3, [r0, #0x8]
@ inner write back, write allocate
@ outer non-cacheable
orr r3, r2, #3 << 20
bic r3, r3, #0b1100
orr r3, r3, #0b0100
bic r3, r3, #0b111000000000000
orr r3, r3, #0b100000000000000
str r3, [r0, #0xc]
@ inner non-cacheable
@ outer non-cacheable
orr r3, r2, #4 << 20
bic r3, r3, #0b1100
orr r3, r3, #0b0000
bic r3, r3, #0b111000000000000
orr r3, r3, #0b100000000000000
str r3, [r0, #0x10]
Init MMU:
@ Write Translation Table Base Control Register
mov r0, #0x0
mcr p15, 0, r0, c2, c0, 2
@ Write Translation Table Base Register 0
ldr r0, =PAGE_TABLE_ADDR
mcr p15, 0, r0, c2, c0, 0
@ Write Domain Access Control Register
@ Set Domains 0 to Client
mov r0, #0x01
mcr p15, 0, r0, c3, c0, 0
Enable MMU:
@ Read Control Register configuration data
mrc p15, 0, r0, c1, c0, 0
orr r0, r0, #0x1
mcr p15, 0, r0, c1, c0, 0
Monday, September 23, 2013
LLVM
LLVM (Low Level Virtual Machine)
Compiler Technology Components
ClooG:
CLooG is a free software and library to generate code for scanning Z-polyhedra. Install CLoog for Polly.
Polly:
Polly is a polyhedral optimizer for LLVM.
Clang:
Clang is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.
lld:
The LLVM Linker.
LLDB:
LLDB is a high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.
libcxx:
libc++ is a new implementation of the C++ standard library, targeting C++11.
How to build LLVM on MacBook Air
$ mkdir LLVM
$ cd LLVM
$ wget http://llvm.org/releases/3.4/llvm-3.4.src.tar.gz
$ wget http://llvm.org/releases/3.4/clang-3.4.src.tar.gz
$ wget http://llvm.org/releases/3.4/compiler-rt-3.4.src.tar.gz
$ tar zxf llvm-3.4.src.tar.gz
$ tar zxf clang-3.4.src.tar.gz
$ tar zxf compiler-rt-3.4.src.tar.gz
$ mv clang-3.4/ llvm-3.4/tools/clang/
$ mv compiler-rt-3.4/ llvm-3.4/projects/compiler-rt/
$ mkdir llvm-3.4.build
$ cd llvm-3.4.build
$ ../llvm-3.4/configure --enable-shared
$ time make
. . . . . . wait . . . . . .
$ make check-all
Before starting to use LLVM, please remember to include the LLVM binaries in our path.
#(?) Now, you can compile C code by using the clang -- the C front-end for the LLVM compiler.
Compiler Technology Components
ClooG:
CLooG is a free software and library to generate code for scanning Z-polyhedra. Install CLoog for Polly.
Polly:
Polly is a polyhedral optimizer for LLVM.
Clang:
Clang is to create a new C, C++, Objective C and Objective C++ front-end for the LLVM compiler.
lld:
The LLVM Linker.
LLDB:
LLDB is a high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.
libcxx:
libc++ is a new implementation of the C++ standard library, targeting C++11.
How to build LLVM on MacBook Air
$ mkdir LLVM
$ cd LLVM
$ wget http://llvm.org/releases/3.4/llvm-3.4.src.tar.gz
$ wget http://llvm.org/releases/3.4/clang-3.4.src.tar.gz
$ wget http://llvm.org/releases/3.4/compiler-rt-3.4.src.tar.gz
$ tar zxf llvm-3.4.src.tar.gz
$ tar zxf clang-3.4.src.tar.gz
$ tar zxf compiler-rt-3.4.src.tar.gz
$ mv clang-3.4/ llvm-3.4/tools/clang/
$ mv compiler-rt-3.4/ llvm-3.4/projects/compiler-rt/
$ mkdir llvm-3.4.build
$ cd llvm-3.4.build
$ ../llvm-3.4/configure --enable-shared
$ time make
. . . . . . wait . . . . . .
real 88m6.255s
user 82m21.556s
sys 4m25.115s
$ make check-all
Before starting to use LLVM, please remember to include the LLVM binaries in our path.
#(?) Now, you can compile C code by using the clang -- the C front-end for the LLVM compiler.
Thursday, September 12, 2013
Intel Bay Trail Atom processor family
Intel
Bay Trail-T
Bay Trail-M
Celeron N2805 (Bay Trail-M), 2 cores @ 1,46 GHz, 4.5W TDP
Celeron N2810 (Bay Trail-M), 2 cores @ 2,00 GHz, 7.5W TDP
Celeron N2910 (Bay Trail-M), 4 cores @ 1,60 GHz, 7.5W TDP
Pentium N3510 (Bay Trail-M), 4 cores @ 2,00 GHz, 7.5W TDP
Bay Trail-D
Celeron J1750 (Bay Trail-D), 2 cores @ 2,41 GHz, 10W TDP
Celeron J1850 (Bay Trail-D), 4 cores @ 2,00 GHz, 10W TDP
Pentium J2850 (Bay Trail-D), 4 cores @ 2,41 GHz, 10W TDP
Bay Trail-I
Atom E3810 (Bay Trail-I), 1 core @ 1,46 GHz, 5W TDP
Atom E3821 (Bay Trail-I), 2 cores @ 1,33 GHz, 6W TDP
Atom E3822 (Bay Trail-I), 2 cores @ 1,46 GHz, 7W TDP
Atom E3823 (Bay Trail-I), 2 cores @ 1,75 GHz, 8W TDP
Monday, August 26, 2013
Subscribe to:
Posts (Atom)
