Codesign: Introduction: Damergi Emir
Codesign: Introduction: Damergi Emir
Codesign: Introduction: Damergi Emir
DAMERGI Emir
INSAT 2016/17
INTRODUCTION:
Problem Solution:
- Algorithms
(Scientific or Industrial) - Mathematical computing
Processing
Design of a tailord HW
Processor GPP SPP « Single
DSP Purpose Processor »
ASIP
DAMERGI Emir – INSAT 2017/18 3
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 Rres= Rj + Rk +
Rk Rres
……
…….
……
…… + +
+ + +
4
2 + + +
- 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
MAC : Multiply ACcumulate
Control Unit
ALU ALU
SIMD: Single Instruction Multiple Data
ADD
With 2 ALUs: and 1 MAC Unit
ACC
ACC ACC + (Ri * Rj + Rk * Rl)
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 ……
…….
……
25
DAMERGI Emir – INSAT 2017/18
Example : Trade off GPP/SPP
( ∗ )+( ∗ )+( ∗ )+( ∗ )
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
Dedicated HW (SPP)
ASIP
SPP
on
FPGA ASIC
• Performance: Decryption,
Sound & image decoding,
3G/4G Communications...
35
DAMERGI Emir – INSAT 2017/18
Choice dilemma : solution
Smart Phone Satellite Receiver
SPP
(HW )
GPP
SPP
(HW )
ASIP
FPGA
36
DAMERGI Emir – INSAT 2017/18
SOCs: Set-top Box STi5518 OMEGA
ASIP, SPP, FPGA
37
DAMERGI Emir – INSAT 2017/18
SOCs: 4G SOC « Snapdragon »
ASIP
DSP
SPP
(ASIC, FPGA)
38
DAMERGI Emir – INSAT 2017/18
Example: Self Driving Car
• Video Stream
Decoding
• Image Processig
• Sensors Data
Processing
• Decision/Drive
• ….
HW / SW ?
39
DAMERGI Emir – INSAT 2017/18
HW/SW DESIGN: Classical Approach
Analysis of requirements and analysis
HW/SW Partitionnig (Manually)
SW Compilatiob
HW Synthesis
System Specs
HW/SW
Partitioning
HW/SW Integration
and Cosimulation
Integrated
System 41
System Evaluation Design Verification
DAMERGI Emir – INSAT 2017/18