1 matlab applications by: ramy yousry. 2 outline design/implementation flow analog/mixed-signal...

25
1 MATLAB Applications By: Ramy Yousry

Upload: annabel-nash

Post on 17-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

1

MATLAB Applications

By: Ramy Yousry

2

Outline

Design/Implementation FlowAnalog/Mixed-Signal Design ChallengesBehavioral Design With SimulinkApplication Examples

3

Outline

Design/Implementation FlowAnalog/Mixed-Signal Design ChallengesBehavioral Design With SimulinkApplication Examples

4

Design/Implementation Flow

Design flow is a Top-down process:

System → Blocks → Sub-blocks …

Implementation Flow is Bottom-up process:

Transistor → Gate → Block …

5

Design/Implementation Flow

Design Flow

6

Design/Implementation Flow

Implementation Flow

7

Outline

Design/Implementation FlowAnalog/Mixed-Signal Design ChallengesBehavioral Design With SimulinkApplication Examples

8

Analog/Mixed-Signal Design Challenges

Increasing complexity Analog/Mixed-Signal products Wireless, Broadband, Audio,

Computer, Peripherals

● Time-to-market pressure Design verification occurs too

late High risk of design failure and

time-to-market delays

9

Design Flow Problem

Spice-like tools use for design and simulations Slow to develop with Slow too simulate Poor choice for high-

level architectural decisions and trade-offs

Leading to: Design flaws detected

late Design failure risk too

high

Component Specifications

Circuit and Physical Tools

A/M-S Hardware

10

MATLAB

High level interpreted languageMath, linear algebraGraphics, GUI’sProgrammingThe standard for signal processingMost text books include MATLAB codeModularity

11

Toolboxes

Filter designCommunicationsControl System DesignSignal ProcessingStatisticsOptimization

12

MATLAB and SPICE Features

FeaturesSPICEMATLABType of Circuit For

Analysissmall to very large

circuitssmall circuits

Frequency Response

YesYes

Inclusion of Device

Model in Software

Package

YesNo

13

Continue

Determination and

plot of poles and

Zeros

NoYes

Bulk Semiconductor

Characteristics

NoYes

pn junction

characteristics -

excluding I-v

characteristics

NoYes

14

Outline

Design/Implementation FlowAnalog/Mixed-Signal Design ChallengesBehavioral Design With SimulinkApplication Examples

15

Simulink

Perform high-level behavioral simulation easily an order of magnitude faster than Spice

Make important architectural decisions and trade-offs. Try out more options

Reduce design risk and time-to-market

16

Analog/Mixed-Signal Design Requirements

Model different levelsDocumentationRe-use of designAnalog and digital HardwareSimulation speedAccuracy in both time and frequency

domainsInterface to real-world signals

17

Simulink Solution

Hierarchical block diagram design and simulation tool

Addresses: Discrete time Continuous time State flow

Visualize signals Both time & frequency

domains Integrated with MATLAB

18

Simulink for Analog/Mixed-Signal

Model continuous time Laplace transforms Integrators and summers Passive RLC circuits Active circuits

Model discrete time Z-transforms Delays, gains, summers

Feedback control loops, VCO’s, PLL’s, Phase detectors

19

Outline

Design/Implementation FlowAnalog/Mixed-Signal Design ChallengesBehavioral Design With SimulinkApplication Examples

20

Application Examples

Device ModelingContinuous-time FiltersDiscrete-time FiltersComplete Communication System

21

Device Modeling

Transistor Modeling

Op-Amp Modeling

Fabry-Perrot resonator

22

Continuous-time Filters

Passive Filters

Active Filters

23

Discrete-time Filters

Digital Filters

Switched-Capacitor Filters

Passive SWITCAP Filters (PasSim)

C1 C2

Ø1 Ø2

C1

C2

+

-

Ø1 Ø2

24

Communication System

Analog-to-Digital Converter

Modulator

Channel

Demodulator

ADC

fc fc

LPF

fclk

Channel

25

The END