simulation, prototyping and verification of standards-based … · umts/cdma2000 zigbee nfc nfc. 9...

53
1 © 2015 The MathWorks, Inc. Simulation, prototyping and verification of standards-based wireless communications Colin McGuire, Neil MacEwen

Upload: others

Post on 20-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

1© 2015 The MathWorks, Inc.

Simulation, prototyping and

verification of standards-based

wireless communications

Colin McGuire, Neil MacEwen

Page 2: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

2

Real Time LTE Cell Scanner with MATLAB and Simulink

Page 3: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

3

PSS/SSSOff the air

data

MIB

Cell ID

Freq.

Offset

Radio

ARM

Set center

frequency

UDP

Send

UDP

Receive

Print out

Display

Visualize

Host

Cell

Info

FPGA

24 bit MIB

info

Real time LTE Frequency Scanner

Page 4: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

4

From Design to Prototype

▪ A common design environment across multiple teams

– Systems Engineers, RF Engineers, Algorithm Developers, HDL Engineers

▪ Target off-the-shelf hardware for prototype development

Page 5: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

5

From Design to Prototype

Behavioral Model

Fixed point Simulink

Systems Implementation

Verification on hardware

Page 6: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

6

Modeling Wireless Standards

with MATLAB & SIMULINK

Page 7: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

7

Baseband

precoding

DAC RF

NT

DAC RF

Baseband

combining

ADCRF

NR

ADCRF

Wireless Modeling ChallengesBaseband DSP development

• Is my implementation correct?

• How can I evaluate link performance with my

algorithm?

• 5G challenges, e.g. out of band emission..

Explore beamforming trade-offs

• Baseband, analogue or hybrid

beamforming?

• Simulate capabilities and limitations

• Trade-off ADCs vs RF components

Antenna array design and evaluation

• Element coupling

• Edge effects

• Imperfections

Investigate the impact of RF impairments

• Frequency dependency

• Non-linearities

• Mismatches and coupling

Page 8: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

8

Modeling Wireless Standards with MATLAB & SIMULINK

LTE 5G WLAN

UMTS/cdma2000 ZigBee NFC

NFC

Page 9: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

9

From Design to Prototype

Behavioral Model

Fixed point Simulink

Systems Implementation

Verification on hardware

Behavioral Model

Fixed point Simulink

Systems Implementation

Verification on hardware

How can I evaluate the

performance of my algorithm?

Is my implementation correct?

System simulation

Working with real signals

Page 10: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

10

Demo: Modeling 802.11ad Beamforming

Generate

802.11ad

packet

Generate tx & rx

steering weights

for desired angle

4x4

MIMO

channel

Apply

tx

weights

Apply

rx

weights

Demodulate

& decode

packet1 4 4 1

WLAN System

Toolbox

Phased Array

System Toolbox

▪ Uniform linear array of 4 elements at transmitter and receiver

▪ MIMO channel with 6 scatterers

▪ PER and EVM for 802.11ad link

Page 11: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

11

Demo: Modeling 802.11ad Beamforming

Page 12: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

12

Extending standards… LTE to 5G

PDSCH generation and

mapping

DL-SCH generation

waveform generation:

OFDM

LTE channel model

synchronizationchannel

estimationPDSCH

decodingDL-SCH

decodingOFDM

demodulation

PDSCH generation and

mapping

DL-SCH gen: Turbo, LDPC

Waveform gen:OFDM, F-OFDM

or W-OFDMvar. subcarrier spacing

channel model:CDL or TDL

synchronizationchannel

estimationPDSCH

decodingDL-SCH

decodingOFDM

demodulation

5G channel models

WOLA-OFDM, F-OFDM

W-OFDM, F-OFDMvar. subcarrier

spacingLDPC LDPC

Page 13: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

13

Demo – Extending LTE for 5G link level simulation

Page 14: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

14

From Design to Prototype

Behavioral Model

Fixed point Simulink

Systems Implementation

Verification on hardware

Behavioral Model

Fixed point Simulink

Systems Implementation

Verification on hardware

How can I evaluate the

performance of my algorithm?

Is my implementation correct?

Working with real signals

Page 15: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

15

Working with Real Signals…

Beyond Simulation

LTELTE, WLAN, and

Communications

System Toolbox

LTELTE, WLAN, and

Communications

System Toolbox

Page 16: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

16

Supported Hardware for Radio Connectivity

SDR

USRP, PLUTO, Zynq, …

Customizable RF front end

Sizable FPGA for targeting designs

Decreasing

Cost

SDR

Hardware

Support

Package

Signal Generator and Analyser

Keysight, R&S, NI, Tektronix, …

High quality RF front end

Wide frequency range, high bandwidth

Instrument

Control

Toolbox

Ultra low-cost SDR

RTL-SDR, …

Low bandwidth

Receive only

Page 17: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

17

Prototype with Real Signals

▪ SDR platforms can be used as low-cost RF interface

▪ Transmit repeat capability allows USRP E310 or Zynq

to be used as an RF signal generator

▪ Capture a burst of IQ and process in MATLAB

SDR PlatformHardware

support

package

IQ Waveform

Generation RF

SDR Platform Hardware

support

package

IQ Waveform

AnalysisRF

Page 18: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

18

Demo: SDR as a low-cost RF interface

Page 19: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

19

Demo: Generating WLAN Beacons

Page 20: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

20

Demo: LTE Scanner

SDR MATLAB

&

LTE System

Toolbox™

Page 21: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

21

Demo: LTE Cell Scanner

Page 22: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

22

Simulink for Wireless System Design

Page 23: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

23

From Design to Prototype

Behavioral Model

Fixed point Simulink

Systems Implementation

Verification on hardware

Page 24: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

24

From Design To Hardware

MATLAB

✓ Large data sets

✓ Explore mathematics

✓ Data visualization

Targeting FPGA and ASIC

Streaming design

Implementation detail

Architectural specification

Verification

Simulink

✓ Parallel architectures

✓ Timing

✓ Data type propagation?

DESIGN

MATLAB

Coders

Synthesizable

VHDL / Verilog / C

Simulink

Verification

Page 25: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

25

Generate C and HDL Code and Implement On Hardware

SoC Reference Design

AX

IADC

DAC

ARMPlaceholder

For HDL

Algorithm IP

Define Custom Platform

Zynq platform with AD9361 RF card

ARM

Driver

Algorithm C

FPGA IP

Algorithm HDL

AXI interface

Page 26: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

26

Verification: MATLAB reference model to FPGA implementation

Page 27: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

27

Demo - Verify Turbo Decoder with LTE System Toolbox

lteTurboDecode

lteTurboEncode

HDL LTE Turbo

Decoder

Page 28: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

28

Demo: LTE Turbo Decoder

Page 29: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

29

Verification via SDR Prototyping

Test and

Verification

MATLAB and Simulink

Page 30: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

30

From Design to Prototype

Behavioral Model

Fixed point Simulink

HW/SW co-design

Verification on hardware

Page 31: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

31

Verification via SDR Prototyping

RF

Transceiver

Baseband

Processing

Test and

Verification

MATLAB and Simulink

Baseband

Processing

Test and

Verification

MATLAB and Simulink

Test and

Verification

MATLAB and Simulink

System ModelingRadio I/O

PrototypingStandalone

Implementation ready

model

Page 32: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

32

PSS/SSSOff the air

data

MIB

Cell ID

Freq.

Offset

Radio

ARM

Set center

frequency

UDP

Send

UDP

Receive

Print out

Display

Visualize

Host

Cell

Info

FPGA

24 bit MIB

info

Real time LTE Frequency Scanner

Page 33: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

33

Targeting an algorithm to the FPGA and ARM

Run on Programmable Logic

Run on ARM

Processing

System

Page 34: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

34

Simulink model Zynq board

ARM (PS) Fabric (PL)

User Logic

Interface model

HW/SW Co-Design Implementation of MIB Detector

Tx

LTE MIB

Detector

AXI

DMA

AXI

DMA

AD9361

HDL IP

AD

9361 R

F C

ard

Tx baseband I/Q

Rx baseband I/QRx DMA I/Q

RF Out

RF In

Tx DMA I/Q

AXI-

LiteMonitors

AD

9361

Tx B

lock

Constant /

Switch etc

Rx Data

Tx Data

Exte

rnal M

ode T

CP

/IP

Display /

Scope etc

Tune center frequency

Read MIB info

Send

decoded

cell info

over UDP

to host

Parameters

AD

9361

Rx B

lock

Page 35: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

35

SoC Workflow: HW/SW Co-design

Algorithm

Modeling

Algorithm

Simulation

with test bench

Does the ref

design represent

the end platform?

Build a custom

reference

design

No

Algorithm design

Choose a

shipping ref

design in HSPs

Test on

hardware

system

Prototyping algorithm on

supported hardware system

SDR HSP

Zynq HSPs

Vision HSP

Yes

Page 36: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

36

Generate C and HDL code and implement on hardware

SoC Reference Design

AX

IADC

DAC

ARMPlaceholder

For HDL

Algorithm IP

Define Custom Platform

Zynq platform with AD9361 RF card

ARM

Driver

Algorithm C

FPGA IP

Algorithm HDL

AXI interface

Page 37: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

37

LTE Cell Scanner Example: Algorithm

• Model algorithm

• Generate FPGA bitstream

• SW interface model

• Run on hardware

Input selector

PSS/SSS, MIB

Output Registers

Page 38: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

38

LTE Cell Scanner Example: Generation

• Model algorithm

• Generate FPGA bitstream

• SW interface model

• Run on hardware

Page 39: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

39

Targeting workflow

Setup reference

design

Generate HDL code

Generate Vivado project

Generate SW

models

Generate bitstream

Load bitstream

Configure SW model

Generate SW

application

Run on hardware

Page 40: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

40

Video: Compile Model

Page 41: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

41

Targeting workflow

Setup reference

design

Generate HDL code

Generate Vivado project

Generate SW

models

Generate bitstream

Load bitstream

Configure SW model

Generate SW

application

Run on hardware

Page 42: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

42

Video: Setup reference design

Page 43: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

43

Targeting workflow

Setup reference

design

Generate HDL code

Generate Vivado project

Generate SW

models

Generate bitstream

Load bitstream

Configure SW model

Generate SW

application

Run on hardware

Page 44: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

44

Video: Generate HDL code

Page 45: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

45

Targeting workflow

Setup reference

design

Generate HDL code

Generate Vivado project

Generate SW

models

Generate bitstream

Load bitstream

Configure SW model

Generate SW

application

Run on hardware

Page 46: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

46

Video: Generate Vivado project and software models

Page 47: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

47

Targeting workflow

Setup reference

design

Generate HDL code

Generate Vivado project

Generate SW

models

Generate bitstream

Load bitstream

Configure SW model

Generate SW

application

Run on hardware

Page 48: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

48

Video: Generate bitstream

Page 49: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

49

Targeting workflow

Setup reference

design

Generate HDL code

Generate Vivado project

Generate SW

models

Generate bitstream

Load bitstream

Configure SW model

Generate SW

application

Run on hardware

Page 50: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

50

LTE Cell Scanner Example: Software

ARM Interface to SDR Receiver

FPGA Register

Interface

LTE Scan

Control

Send to

Host

Center Frequency

Reset receiver

Send results

to host over

Ethernet, for

display

CellID, PSS/MIB flags, frequency offset, MIB data

• Model algorithm

• Generate FPGA bitstream

• SW interface model

• Run on hardware

External mode tunability

Page 51: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

51

Targeting workflow

Setup reference

design

Generate HDL code

Generate Vivado project

Generate SW

models

Generate bitstream

Load bitstream

Configure SW model

Generate SW

application

Run on hardware

Page 52: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

52

Video: Run on hardware

Page 53: Simulation, prototyping and verification of standards-based … · UMTS/cdma2000 ZigBee NFC NFC. 9 From Design to Prototype Behavioral Model Fixed point Simulink Systems Implementation

53

Thank you!