Title: Section 2: Processing Unit
1Section 2 Processing Unit
2Overview
- Microprocessor/Microcontrollers
- Digital Signal Processing Processor
- DSP Cores
- Time Processing Units
3Good System in General?
- Fast
- Inexpensive
- Reliable
- Low Power (Portable)
- Quiet
- Light (Portable)
- Durable
- Small
- Expandable
- Software compatibility
4Todays Embedded Processors
Retargetable Compilers for Embedded Core
Processor by C. Liem
5Microprocessors Microcontroller
- Originally designed for general purpose computing
- Microcontroller One-chip solution
- CPU
- RAM
- EPROM/ROM
- Serial parallel I/O
- Timers and various controllers
- Advantage
- Flexible, verified, off-the-shelf
- Popular microcontroller/microprocessors
- Motorola 6800/68000 series (6805, 68hc11, 683xx)
- Intel 80xx/80x86 series (8051, 80?86, i960)
- TMS370 (TI), COP series (Natl Semiconductor)
etc.
6Instruction Architecture
- RISC (e.g. MIPS)
- simple instruction format
- e.g. MIPS I,J,R type
- small instruction set
- regular instruction timing
- easy for pipelining
- large register file
- load/store architecture
- overall simple architecture
- VLIW
- Superscaler
- CISC (e.g. 68000)
- variable instruction format
- various instruction size
- data dependent decoding
- irregular instruction timing
- many addressing modes
- SISC (ASIP)
- Specific Instruction Set computer
- Harvard Architecture
- separate data/instruction bus
7DSP Processor
DSP Processor Fundamentals by Lapsley etc.
8DSP Processors Typical Application
DSP Processor Fundamentals by Lapsley etc.
9Common Features of DSP Processors
DSP Processor Fundamentals by Lapsley etc.
10Commercial DSP Processors
DSP Processor Fundamentals by Lapsley etc.
11DSP Cores (ASICs)
DSP Processor Fundamentals by Lapsley etc.
12Common Features of DSP cores
- Performs dedicated function
- Very strict real-time requirement
- Correctness is essential due to the impact on the
surrounding environment
13Commercial DSP Cores
14Timer Application in Embedded Systems
- Real-Time clock
- generates an interrupt at periodic intervals
- used by OS to switch between tasks
- update a record of the time of day
- Square-Wave Generator
- Interrupt after Timeout
- watchdog timer
- Elapsed Time Measurement
1568332 Time Processing Unit
- An intelligent, semi-autonomous micro-controller
designed for timing control - Functions
- Schedules tasks (Scheduler, 3 priorities)
- Processes ROM instructions (Control Store for
built-in functions) - Accesses shared data w/ the CPU (Control Reg, and
Para. Ram) - Performs input and output
- Features
- 16 independent, programmable, orthogonal channels
- Interchannel communication
- 2 prescaler registers (System-clock or external
clock time base) - Many factory programmed time functions
- Programmable channel priority
- Emulation support
16TPU Block Diagram
Priority-based (H/M/L) schedule
prescaler
Intermodule Bus
Microprogram for built-in function
Select/Initialize channel/function
17Built-in Functions
- Period/Pulse-Width Accumulator
- Output Compare
- Input Capture/Input Transition Count
- Discrete Input/Output (16 bit)
- Pulse Width Modulation
- Period Measurement
- Stepper Motor Control
- and more...
18Section 3 Memory
19Overview
- Taxonomy
- SRAM vs. DRAM
- ROM, EPROM, EEPROM, and FLASH Memory
20Memory Taxonomy
- RAM vs. ROM
- READ/WRITE Random Access Memory SRAM, DRAM
- (Programmable) Read Only Memory ROM, EPROM,
EEPROM - Static vs. Dynamic
- Static SRAM, PROM
- Dynamic DRAM
- Synchronous vs. Asynchronous
- SRAM Writeback vs. Pipeline Burst or
Synchronous Burst - DRAM FPM or EDO vs. SDRAM
- Volatile vs. Nonvolatile
- Volatile Normal RAMs
- Nonvolatile ROM, EPROM, Battery-backed CMOS
21SRAM - 6T design
Flip/Flop
6 transistor for 1 bit of information
Read Data/Data precharged to Vcc
Assert Row Address
Complimentary design very little static
power consumption
Write Place data on Data/Data
Assert Row Address
22Static RAM
- 6T design (vs. 4T design)
- Pros
- high speed
- low Power
- better noise immunity
- Cons
- larger area
- Synchronous (vs. Async)
- high performance
- synchronous burst
- pipeline burst
- Nonvolatile
- battery backed-up
- CMOS (BIOS) memory
23SRAM vs. DRAM
- SRAM
- lt10ns
- cache/CMOS
- 4T/6T
- 4 x larger than DRAM
- volatile or nonvolatile
- asynchronous or synchronous
- Async WB, WT
- Sync Sync. Burst, PB
- Packaging
- On-Chip or DIP
- Typical (cache) size
- Internal 16KB16KB (or 32K)
- External 256-512KB
- Simple interface (easier to use)
- 10 x more expensive than DRAM
- DRAM
- 60ns-80ns
- main memory
- 1T 1C/3T
- requires refresh logic
- row/column multiplexed access
- volatile
- asynchronous or synchronous
- Async EDO, FPM, BEDO
- Sync SDRAM
- Packaging
- SIMM, SIPP, DIMM
- Typical size
- 32-64MB
- upto 1GB
- Very complex interface
24RAM Configuration
NxM (N of locations, M of bits per location)
1Mx16-bit memory organization w/ 1Mx8-bit chips
25RAM Configuration (contd)
4M-wordsx16-bits w/ 512Kx8 chips
4M-wordsx16-bits w/ 4Mx1 chips
26CMOS Memory
- CMOS (Complementary MOS)
- Normal implementation technology of todays
memory - Main advantage low power (very small static
power dissipation) - Most power consumption dynamic power consumption
- dynamic power (C capacitance, fswitching,
V power supply) - Small static power consumption makes it possible
to operate CMOS memory from small batteries when
the main power is off. - Standby mode
- Power consumption 0.1 mW (200mW for active R/W)
- Vcc is reduced (from 5V) to no less than 2.0V
proper CS control
27EPROM (Erasable Programmable ROM)
- Non-volatile
- Can be programmed and reprogrammed by user
- Invariably byte-organized (Nx8)
- Mainly found in
- embedded system where firmware is held.
- palmtop where OS and system software are held
- bootstrap loader
floating gate
28EPROM (contd)
D
- Characteristics
- floating gate enables non-volatility
- UV-light exposure for erasing (several min)
- Re-programming takes about 5-10 sec/word
(EPROM programmer) w/ Vpp10-20V - Access time about 100ns
- Low cost and small cell size (20 m2 at the
1-Mbit) - Low endurance maximum of 1000 erase/program
cycle - Reliability Issue device thresholds might vary
w/ repeated reprogramming - In summary, extremely simple, and dense. making
it possible to fabricate large memory at a low
cost (but w/o regular reprogramming)
G
S
29EEPROM
- Electrical Erasure procedure
- FLOTOX (Floating-gate tunneling oxide) a
modified FG - Reduced gap between floating gate and
channel/drain from 100nm (EPROM) to 10-20nm - Fowler-Nordheim tunneling
- When a voltage of approximately 10V is applied
over the thin insulator, electrons travel to and
from the floating gate by a mechanism called
Fowler-Nordheim tunneling. - Reversible process
- Erasing is simply achieved by reversing the
voltage applied during the writing process. - may pose the problem of threshold control
- Cons Larger, high expense, difficult fabrication
than EPROM - Pros Versatile (105 erase/write cycles)
30Flash EEPROM
- Technically, a combination of EPROM EEPROM
- Programming avalanche hot-electron-injection
- Erasure Fowler-Nordheim tunneling
- Difference
- erasure is performed in bulk for the complete
chip, or for a subsection of the memory - removal
of extra transistor in EEPROM - Simpler cell structure, smaller cell size, high
integration density - Programming Erasure 12V internally generated
31EPROM vs. EEPROM vs. Flash EEPROM
Jan Rabaey Digital Integrated Circuits