Chap00 Intro Generale
Chap00 Intro Generale
Transfert DMA
ADC
Timer
Emir DAMERGI
INSAT 2020/21
INTRODUCTION:
Problem Solution:
- Algorithms
(Scientific or Industrial) - Mathematical computing
Processing
Design of a tailord HW
Processor GPP SPP « Single
DSP Purpose Processor »
ASIP
4
DAMERGI Emir – INSAT 2021
Dedicated Hardware (SPP)
Memory
Data
Inputs Data
Outputs
Control DataPath
Predifiend
control Unit
sequence
Memory
Instructi Data
ons Inputs Data
Outputs
Memory
Control DataPath (ALU)
Unit Code
(Instructions)
Address Bus
Data
C D
O A
D T
E A
Data Bus (Data + Code)
Memory Memory
Control DataPath (ALU)
Code Data
(Instructions) Unit
Address Address
Bus Bus
C D
O A
D T
E A
Code Data
On-Time Peak
Revenues (R)
Delayed Peak
R (P-D)/P
Criteria 3 : Performance
Consequences on:
• Battery Lifetime (Ah) Autonomy
• Heat dissipation System size and weight
Examples:
PCs: Tens of WATTs
SmartPhones: Watts
MCU: microWatts MilliWatts
Criteria 5 : Flexibility
Correlation: c(m)=
Matrix computation
Acc Acc = Rj + Rk 𝐪𝟎 + 𝐪𝟏
Rk Rres
……
……. 𝟐 𝟐 𝟏
……
…… 𝐪𝟎 + 𝐪𝟏 + 𝐪𝟐
𝟑 𝟑 𝟎
𝐪𝟎 + 𝐪𝟏 + 𝐪𝟐 +
DAMERGI Emir – INSAT 2021 16
Example : Execution on GPP
instructions Memory
Ri a 0
22 instructions:
Rj x3 𝟎 𝟎 𝟑
4
Rres = Rj* Ri
- 22 instr. fetching from Memory
Rk Rres
Ri a 1 - 8 Mem to reg transfers
Rj x2
4 𝟏 𝟏 𝟐
Rres = Rj* Ri - 7 Reg to Reg transfers
Ri Rres
- 4 Multiplications
Rres = Rj + Rk 𝐪𝟎 + 𝐪𝟏
2
Rk Rres - 4 additions
……
4 ……. 𝟐 𝟐 𝟏
……
2 …… 𝐪𝟎 + 𝐪𝟏 + 𝐪𝟐
4 𝟑 𝟑 𝟎
2 𝐪𝟎 + 𝐪𝟏 + 𝐪𝟐 + 𝐪𝟑
DAMERGI Emir – INSAT 2021 17
Example : Execution on Dedicated Hardware
)+ )+ )+(
- 1 (4 Terms) Addition
* * * *
--- +++
- 4 Multiplications - 4 Multiplications
- 4 additions - 4 additions
--- +++
Furthermore, the GPP controller is more complex and consumes more energy
+++ ---
GPP
Dedicated HW (SPP)
SPP
Instructions Specialized
(Processor) Hardware
Memory
Instructi Data
ons Data
Inputs Outputs
A Instruction processor
Control Specialized DataPath (ALU)
Unit with support:
- Hardwired Application
Specific instructions
- Parallelization
Multiple ALUs
Processing Unit
Parallel procesing
Ri Rj Rk Rl
With 2 ALUs:
Control Unit
ACC Ri * Rj + Rk * Rl
ALU ALU
SIMD: Single Instruction Multiple Data
ADD
Ri Rj Rk Rl Rk a 1
Rl x2
Control Unit
ALU ALU Ri a 2
Rj x1
Rk a 3
ADD
Rl x0
ACCACC+ a0 x3+ a1x2
ACC ……
…….
……
Memory
Ri a0 10 instructions:
Rj x3
Rk a1
- 10 instr. fetching from Memory
Rl x2
- 8 Mem to reg transfers
ACC a0 x3+ a1x2
GPP
Flexibility / Time To Market
DSP
Dedicated HW (SPP)
SPP
ASIP
Application Specific
Instruction Processor
GPP
Flexibility / Time To Market
DSP
SPP
GPP
Flexibility / Time To Market
DSP
• Performance: Decryption,
Sound & image decoding,
3G/4G Communications...
SPP
(HW )
ASIP
FPGA
ASIP
DSP
SPP
(ASIC, FPGA)
Basic Peripherals
Tens of MCUnit references per Manufacturer:
single platform and integrates an entire electronic or computer system onto it. It
is, exactly an entire system on a single chip. SoCs are generally designed for a
A microcontroller (µc, or MCU for microcontroller unit) is a small computer on a integrated circuit (IC)
chip. It contains one or more CPUs (processor cores) along with memory and programmable
input/output peripherals.
• A SoC, in addition to standard peripherals embedded in a MCU (Serial, SPI, I2C, USB, Timers,
etc..), typically contains a greater number of onboard advanced peripherals that make it specific to a
given applications Field. And it can be used with minimal number of additional external circuits.
Bluetooth connectivity
embedded
UART
SPI
I2C Bluetooth
Module