67
Integrated Software-Defined Radio on Zynq ® -7000 All Programmable SoC Design Seminar

Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Embed Size (px)

Citation preview

Page 1: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Integrated Software-Defined Radio on Zynq®-7000 All Programmable SoC

Design Seminar

Page 2: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

3

Course Objectives

During this seminar, you will gain insight into

Avnet Zynq-7000 AP SoC / AD9361 Software-Defined Radio Kits

Principles of wireless communication with examples of IEEE 802.11

Model-based Design using MATLAB® and Simulink® for simulation, algorithm validation and automatic code generation for wireless communications

Integrating Simulink models into Zynq-based software-defined radio using Xilinx Vivado® Design Suite

Page 3: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Wireless Communications System Design Challenges

Systems start as abstract mathematical representations using statistical signal processing to model noise through the signal chain

Relentless market demand for higher data throughput requires deep expertise in high speed analog and digital design

Signals span wide range of frequencies from RF to baseband through analog and digital domains

Requires robust, traceable and verifiable auto code-generation from mathematical model to efficient hardware / software code

Page 4: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Advantages of Zynq in Software-Defined Radio

High-speed hardware-based digital signal processing PHY layer + software-based upper layer protocol stack

Up to 16 12.5 Gb/s GT for connectivity to latest generation JESD204B data converters

Higher integration for simpler and lower cost PCB

Tight coupling of HW & SW integration for seamless algorithm partitioning

Page 5: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

7

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq / AD9361 SDR Kit in Operation / Base Reference Design

Xilinx Vivado® Support for Zynq / AD9361 SDR Kit

Demo 2 Exploring the Base Reference Design in Xilinx Vivado®

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 6: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Analog / RF

DFE

Baseband Processing

Network Interface

Main Processor

Network

Interface

Typical OFDMA Basestation

ADC DAC

ADC

Digital Analog

FEC

DecodeFEC

Encode

DDC DUC

Constellation

Demapper

Constellation

Mapper

FFT iFFT DPD & CFR

RF IQ

De-Mod

RF IQ

Mod

Low noise

AmpADC

Power

Amplifier

Baseband Interface

(OBSAI / CPRI)

Control

Processor

Control

Interface

Packet

Processing

FocusRX TX

Commercial Radio Communications Architecture

Page 7: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq-7000 AP SoC / AD9361 SDR Evaluation Kit

AES-ZSDR2-ADI-G $1295

www.em.avnet.com/adizynqsdr2

* Available in North America only.

Hardware

Avnet ZedBoard featuring Zynq 7020 All-

Programmable SoC

Analog Devices AD-FMCOMMS2-EBZ High-

speed analog FMC module with integrated RF

agile transceiver

(4) LTE-band antennas

8 GB SD card

Software Tools

Xilinx Vivado® Design Edition

UBUNTU desktop Linux on Zynq

Reference Designs

Optional Development tools

MathWorks DSP Wireless Communications

Design Package for Xilinx Kits*

Page 8: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq-7000 AP SoC / AD9361 SDR Evaluation Kit

RF Band

Factory-tuned for optimal performance at 2400 –

2500 MHz

Aimed at RF engineer seeking datasheet

performance connecting to an RF testbench

(VSA, Signal generator)

Synchronization

Supports MIMO radio, with less than 1 sample

sync on both ADC and DAC

Analog Devices AD-FMCOMMS2

Analog Devices AD9361 RF Agile Transceiver

RF 2 × 2 transceiver with integrated 12-bit DACs and ADCs

Supports TDD and FDD operation

Tunable channel bandwidth: < 200 kHz to 56 MHz

RX gain control- Real-time monitor and control signals for manual gain- Independent automatic gain control

Page 9: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq-7000 AP SoC / AD9361 SDR Systems Development Kit

AES-ZSDR3-ADI-G $3595

www.em.avnet.com/adizynqsdr3

* Available in North America only.

Hardware

Xilinx ZC706 base board featuring XC7Z045 device

Analog Devices AD-FMCOMMS3-EBZ High-speed

analog FMC module with integrated RF agile

transceiver

(4) LTE-band antennas

8 GB SD card

Software Tools

Xilinx Vivado® System Edition

Device locked to XC7Z045

UBUNTU desktop Linux on Zynq

Reference Designs

Optional Development tools

MathWorks Wireless Communications Design

Package for Xilinx Kits*

Page 10: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq-7000 AP SoC / AD9361 SDR Systems Development Kit

RF Band

Operates over wide tuning range (70 MHz – 6 GHz)

Aimed at the system architect seeking a single

platform for fast prototype of wideband wireless

systems

Synchronization

Supports MIMO radio, with less than 1 sample sync

on both ADC and DAC

Analog Devices AD-FMCOMMS3

Analog Devices AD9361 RF Agile Transceiver

RF 2 × 2 transceiver with integrated 12-bit DACs and ADCs

Supports TDD and FDD operation

Tunable channel bandwidth: < 200 kHz to 56 MHz

RX gain control- Real-time monitor + control signals for manual gain

Page 11: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq-7000 Family Highlights

Complete ARM®-based Processing Systemo Dual ARM Cortex™-A9 MPCore™o L1, L2 Caches and On-Chip Memoryo Fully Integrated Memory Controllerso I/O Peripherals (CAN, USB, Ethernet,

UART, …)

Tightly Integrated Programmable Logico Used to extend Processing Systemo Scalable density and performance

30k – 440k LCs, 80 – 2,020 DSP Blocks

Flexible Array of I/Oo Wide range of external multi standard I/Oo High performance integrated serial

transceiverso Analog-to-Digital Converter inputs

Page 15

Performance/power of an ASIC, flexibility of an FPGA, ease of use of an ASSP

Page 12: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Mathematical representation of

software-defined radio signal chain

Design Flow

Simulink

Device Under Test

(DUT)

Device Under Test

(DUT)

Integration with RF

Performance analysis and visualization

o System performance analysis and visualization

o Frequency domain

o Digital modulation scatter plots, etc

Model-based design in Simulink

o Captured data as repeatable stimulii

o RF impairments

.

Page 13: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Simulink

Device Under Test

(DUT)

Device Under Test

(DUT)

Design Flow

HDL Coder auto-code generation to

bit-true / cycle-true HDL

Import using Vivado IP Packager

Vivado IP Integrator connects user model into existing base design

HDL Coder + AXI interfaceIP

PackagerIP

Catalog

IP IntegratorIP Integrator

FMCOMMS2

Base Design

AXI-Lite Wrapper

DUTUser IP

DUTUser IP

Page 14: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Simulink

Design Flow

Device Under Test

(DUT)

Device Under Test

(DUT)

SDKFSBL

+Bitstream

+Uboot.elf

Hardware platform + bitstream

BOOT.bin

IP

PackagerIP

Catalog

IP IntegratorIP Integrator

FMCOMMS2

Base Design

AXI-Lite Wrapper

DUTUser IP

DUTUser IP

HDL Coder + AXI interface

Update SD card with design changes

Test realtime operation on SDR kit

Page 15: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

19

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq / AD9361 SDR Kit in Operation / Base Reference Design

Xilinx Vivado® Support for Zynq / AD9361 SDR Kit

Demo 2 Exploring the Base Reference Design in Xilinx Vivado®

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 16: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq SDR Kit in Operation

UBUNTU desktop Linux

Analog Devices IIO Scope

Manage all settings of FMCOMMS2 radio card

Page 17: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

21

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq / AD9361 SDR Kit in Operation / Base Reference Design

Xilinx Vivado® Support for Zynq / AD9361 SDR Kit

Demo 2 Exploring the Base Reference Design in Xilinx Vivado®

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 18: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Design Flow

Start with base HDL reference design from ADI

IP Integrator

SDK

Simulink

Device

Under Test

(DUT)

IP

Packager

FSBL

+

Bitstream

+

Uboot.elf

BOOT.bin

Hardware platform + bitstream

HDL Coder

DUT

User IP

IP

Catalog

FMCOMMS2

Base Design

.

Page 19: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq / AD9361 SDR Kit Base Reference Design

• SD card image / includes Linux kernel + devicetree.dtb + BOOT.BINhttp://wiki.analog.com/resources/tools-software/linux-software/zynq_images

• AD-FMCOMMS2-EBZ + ZedBoard HDL Reference Design [Analog Devices Wiki]http://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/reference_hdl

Page 20: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq / AD9361 SDR Kit Base Reference Design

25

http://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-ebz/reference_hdl

Download

Page 21: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Zynq / AD9361 SDR Kit Base Reference Design

26

Base reference design built with TCL scripts in Xilinx Vivado

TCL script within

each folder to build

AXI peripherals

Page 22: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Vivado Project Management with Tcl

Vivado flows can be run using Tcl

o Run full flow without interaction–launch script and walk away

o Enables repeatability and self-documentation

27

Tcl commands can be

o Interactively entered at the Tcl prompt in Vivado IDE

o Called from a Tcl script within Vivado Tcl shell

Page 23: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Dual Cortex™-A9 MPCore™

Programmable Logic

DAC

Interface

DD

S

VDMA HDMI

NEON™ / FPU Engine

Processing System

IIO oscilloscope

LINUX User-space applications

IQ

Demod

IQ

Mod

Zynq / AD9361 SDR Kit Base Reference Design

ADC

ADC

DAC

DAC

ADC

Interface

AD-FMCOMMS2-EBZ

FIF

O

ADI DMA

AXI Interconnect

LINUX drivers

AXI

VDMA

Page 24: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Dual Cortex™-A9 MPCore™

Programmable Logic

DAC

Interface

DD

S

VDMA HDMI

NEON™ / FPU Engine

Processing System

IIO oscilloscope

LINUX User-space applications

IQ

Demod

IQ

Mod

SDR Kit Base Reference Design with User Peripheral

ADC

ADC

DAC

DAC

ADC

Interface

AD-FMCOMMS2-EBZ

Usersignal chainF

IFO

ADI DMA

AXI Interconnect

AX

I

LINUX drivers

AXI

VDMA

Page 25: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

30

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq / AD9361 SDR Kit in Operation / Base Reference Design

Xilinx Vivado® Support for Zynq / AD9361 SDR Kit

Demo 2 Exploring the Base Reference Design in Xilinx Vivado

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 26: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

37

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq / AD9361 SDR Kit in Operation / Base Reference Design

Xilinx Vivado® Support for Zynq / AD9361 SDR Kit

Demo 2 Exploring the Base Reference Design in Xilinx Vivado®

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 27: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

38

Part 3 / Model-Based Design for Wireless Communications

This lecture and demo will guide you through

Model-based Design with MATLAB and Simulink

Spread Spectrum Modulation in Digital Communications

Simulink Model of IEEE 802.11 Beacon Frame Receiver

Page 28: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Design Flow for IEEE 802.11 Beacon Frame Receiver

39

Page 29: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Design Flow

Develop user signal chain (DUT) in Simulink

Integrate into existing reference design

IP Integrator

SDK

IP

Packager

FSBL

+

Bitstream

+

Uboot.elf

BOOT.bin

Hardware platform + bitstream

HDL Coder + AXI

DUT

User IP

IP

Catalog

FMCOMMS2

Base Design

Simulink

Device Under Test

(DUT)

Device Under Test

(DUT)

Page 30: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Challenges of System-Level Design

Verifying implementation matches algorithm

Algorithm and System Design

FPGAFPGA

HDL

• Hand-coded HDL can be error prone and hard to debug

• Fixed-point implementation may not match floating-point model

• Test-benches for hardware and software from different teams may not match

Page 31: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Solution: Model-Based Design

Design, simulate, and validate algorithms and system models in MATLAB and Simulink

Automatically generate HDL code

Verify the hardware implementation against the system model

MATLAB® and Simulink®

Algorithm Design and System Design

FPGA

HDL Code Generation

FPGA

HDL

Veri

fy

Gen

era

te

Page 32: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Model-Based Design: From Concept to Production

INTEGRATION

IMPLEMENTATION

DESIGN

TE

ST

& V

ER

IFIC

AT

ION

RESEARCH REQUIREMENTS

MCU DSP FPGA ASIC

Structured TextVHDL, VerilogC, C++

Environment Models

Physical Components

Algorithms

PLC • Automate regression testing

• Detect design errors

• Support certification and standards

• Generate efficient code

• Explore and optimize

implementation tradeoffs

• Model concurrent systems

• Model multi-domain systems

• Explore and optimize system

behavior in floating point and fixed

point

• Collaborate across teams and

continents

Page 33: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Model-Based Design Tools

The leading environment for technical computing

The leading environment for modeling, simulating, and implementing dynamic and embedded systems

Toolboxes(signal, comms, etc.)

HDLCoder

EmbeddedCoder ™®

Page 34: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

MathWorks Design Package for Software-Defined Radio

Develop advanced communications systems on Zynq with tools for algorithm development and simulation along with code generation for C and HDL

Algorithm Design and Simulation

• MATLAB

• Simulink

• Fixed-Point Designer™

• Signal Processing Toolbox™

• DSP System Toolbox™

• Communications System

Toolbox™

Code Generation for C and HDL

• MATLAB Coder™

• Simulink Coder™

• Embedded Coder®

• HDL Coder™

www.em.avnet.com/adizynqsdr2

Avnet part number AES-ZSDR2-ADI-G-MATW-ANUL

Page 35: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Device Under Test / 802.11 Beacon Frame Receiver

49

Page 36: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

802.11 LAN architecture

50

Basic Service Set (BSS)

o wireless hosts

o access point (AP)

Wireless hosts communicate with AP

BSS 1

Internet

hub, switch

or routerAP

Mitigating interference and noise

Frequency Hopping Spread Spectrum (FHSS)

Infrared (IR)

Orthogonal Frequency Division Multiplexing (OFDM)

Direct Sequence Spread Spectrum (DSSS)BSS 2

AP

Page 37: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Direct Sequence Spread Spectrum (DSSS)

Receiverrx

DSSS Spreading

dt tx

Transmitter

DSSS de-spreading

dt

f

|dt(f)|

-Rs Rs

• DSSS increases the transmit signal bandwidth to Rc, far beyond Rs needed to transmit the underlying information

• De-spreading at receiver correlates with signal*

• Noise remains uncorrelated (spread) for lower power spectral density in original bandwidth of interest

• Processing gain Gp=BWss/BWinfo = Rc/Rs

f

|dt(f)|

-Rs Rs

+ interference + other SS in channel

De-spread signal

Uncorrelated other SS users remain spread

*Assuming synchronization of transmitter / receiver spreading sequences

Page 38: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Tc

Direct Sequence Spread Spectrum

Each symbol is multiplied with a pseudo-noise (PN) sequence (aka ‘chip’ sequence)

DSSS PN sequences generated using deterministic algorithms (LFSR) but have properties of random sequences (flipping a coin N times)o Equal number of ‘1’ and ‘0’

o Short run-length

o Shifting property: if shifted by any nonzero number of elements the resulting sequence has ½ its elements the same as the original sequence and ½ its elements different

PN sequence

dt

Ts

+1

-1

+1 -1 -1 -1 -1 -1+1 +1 +1 +1 +1

+1

-1

+1 -1 -1 -1 -1 -1+1 +1 +1 +1 +1

Page 39: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

11 chip BARKER sequence

Used for DSSS in 802.11 frame pre-amble

Good autocorrelation properties

Minimal sequence allowed by FCC

Coding gain = 10log(11) = 10.4 dB

+11

-11

+1

-1

+11

-11

+1

-1

time

auto

corr

ela

tion

Received chip stream at time (t-1)

Received chip stream at time (t)

Received chip stream at time (t+1)

Page 40: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Q ADC

Direct Sequence Spread Spectrum (DSSS)

I/Q Demod

PN code

dr

PNr

rxbrx

QDAC

I/Q Mod

PN code

dt

PNt

txb tx

dt binary data with symbol rate Rs = 1/Ts

PNt Pseudo-noise code with chip rate Rc = 1/Tc

(Rs/Rc = integer)

txb Binary data dt multiplied with PN sequence = dt. PNt

correlator

synchronizer

Page 41: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Q ADC

Direct Sequence Spread Spectrum (DSSS)

I/Q Demod

PN code

dr

PNr

rxbrx

QDAC

I/Q Mod

PN code

dt

PNt

txb tx

dt binary data with symbol rate Rs = 1/Ts

PNt Pseudo-noise code with chip rate Rc = 1/Tc

(Rs/Rc = integer)

txb Binary data dt multiplied with PN sequence = dt. PNt

11-chip Barker sequence

correlator

synchronizer

Page 42: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Q ADC

Direct Sequence Spread Spectrum (DSSS)

I/Q Demod

PN code

dr

PNr

rxbrx

− ΩRj te

QDAC

I/Q Mod

PN code

dt

PNt

txb tx

ΩTj te

correlator

synchronizer

( )Ω − Ω+= • •( )T Rj t j t

r t t re i t ed d PN PNΩ − Ω − Ω

= • • •+ ( )T R Rj t j

t

t

r

t

t r

jd PN e e i tP P eN N

When RX and TX synchronized = 1 = =0 1e

− Ω= •+ ( ) T

r

j t

r td d PNi t e

uncorrelated interference remains spread with low power spectral density

when carriers synchronized

i(t)Interference /

other SS

Page 43: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Direct Sequence Spread Spectrum (DSSS)

At the receiver, the signal correlates but not the interference

57

Q ADC

I/Q Demod

PN code

dr

PNr

rxbrx

QDAC

I/Q Mod

PN code

dt

PNt

txb tx

correlator

synchronizer

i(t)

Interference /

other SS with different PN

Page 44: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

IEEE 802.11 Beacon Frame

58

BSS 1

BSS 2

Internet

hub, switch

or routerAP

AP

Host must associate with an AP

scans channels, listening for beacon frames

contain AP’s service set ID (SSID) & MAC address

Host selects AP to associate with

May perform authentication

Will typically run DHCP to get IP address in AP’s subnet

Page 45: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

802.11 Long PLCP Frame Format

Preamble and Header always at 1Mb/s DBPSK, 11-chip Barker sequence

SYNC field = 128 one bits (‘1’)

o Scrambled by scrambler

o Used for receiver synchronization

PPDU

SYNC

128 bits

SFD

16 bits

SIGNAL

8 bits

SERVICE

8 bits

LENGTH

16 bits

CRC

16 bits

Long PLCP Preamble

144 bits in 1 Mbps

Long PLCP Header

48 bits in 1 Mbps

PSDU/MPDU

1, 2, 5.5, 11 Mbps

1Mbps DBPSK Barker

2Mbps DQPSK Barker

5.5, 11Mbps DQPSK CCK

1Mbps DBPSK

Page 46: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

60

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq / AD9361 SDR Kit in Operation / Base Reference Design

Xilinx Vivado® Support for Zynq / AD9361 SDR Kit

Demo 2 Exploring the Base Reference Design in Xilinx Vivado®

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 47: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

62

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq / AD9361 SDR Kit in Operation / Base Reference Design

Xilinx Vivado® Support for Zynq / AD9361 SDR Kit

Demo 2 Exploring the Base Reference Design in Xilinx Vivado®

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 48: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Simulink

HDL Simulation of Auto-Generated Code

Device

Under Test

(DUT)

HDL CoderTesbench + stimulii

Auto-generate code from HDL coder

with self-checking testbench

Create Vivado project and import HDL

through Tcl script

Verify HDL simulation matches

generated HDL Coder model (bit-true /

cycle-true)

HDL Simulator HDL

Page 49: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Simulink HDL Coder / Code Generation with Testbench

Page 50: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

HDL Simulation in Vivado

65

HDL simulation matches Simulink generated gm_ model

4026.0

Page 51: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Simulink

Importing IP into Vivado

Device Under Test

(DUT)

Device Under Test

(DUT)

HDL Coder + AXI interfaceIP

Packager

IP IntegratorIP Integrator

FMCOMMS2

Base Design

Import DUT into project IP catalog

Connect in Vivado IP Integrator

SDKFSBL

+

Bitstream

+

Uboot.elf

BOOT.bin

Hardware platform + bitstream

AXI-Lite Wrapper

DUTUser IP

DUTUser IP

IP

Catalog

Page 52: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

MathWorks HDL Peripheral with AXI-Lite Interface

Generate HDL code with AXI-Lite interface

Includes DUT / algorithm plus AXI-Lite register logic /

address decoding for RD/WR

Integrate within Vivado top-level project

68

AX

I In

terc

on

nect

AX

I In

terc

on

nect

AX

I In

terc

on

nect

AX

I In

terc

on

nect

AXI-Lite Wrapper

Device Under TestHDL

Device Under TestHDL

Programmable Logic

Page 53: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Add HDL Code as AXI-Lite IP in Vivado Design Suite

69

IP Packager

HDL Code

Vivado Project

Vivado IP Integrator

AX

I In

terc

on

nect

AX

I In

terc

on

nect Programmable Logic

PL bitstream (.bit)

AXI-Lite Wrapper

AlgorithmHDL

AlgorithmHDL

Page 54: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Vivado IP Integrator

IP Packager Source (C, RTL, IP)

Simulation models

Documentation

Example Designs

Test bench

Standardized IP-XACT

IP Subsystem

Xilinx IP

3rd Party IP

User IP

Uses multiple plug-and-play forms of IP to implement functional subsystem

Includes software drivers and API

Accelerates integration and productivity

Enables reuse to create fully functional IP subsystems

Page 55: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Vivado IP Integrator

Accelerates hardware design productivity through design reuse

o Graphical IP assembly

o Correct-by-construction

o System centric

Generates IP subsystems

o Supports multiple plug-and-play

IP formats

o Generates software drivers and

APIs

Board and silicon aware

o Built in support for Xilinx

development baseboards

Page 71

SubsystemsSubsystems XilinxXilinx 3rd Party3rd Party UserUser

Vivado IP Catalog - Standardized IP-XACT

Page 56: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

ARM

Programmable Logic

Connecting Software to Hardware for Zynq

72

ProductionSimulation

Simulink

Embedded Coder

HDL Coder

AlgorithmModel

Algorithm Model

SystemCode

AXI Bus

IP1AXI Interface

Algorithm HDL

Linux Driver

AlgorithmC

IP2

IP3

MotorModel

SystemMotor

How do I add AXI-Lite

HW and SW interfaces

Page 57: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

BootSD

Card

Add C Code in Xilinx Software Development Kit

73

Xilinx SDK

Boot.bin

C Code

PL bitstream

User Space Application

FSBL + U-Boot

User ApplicationUser Application

LINUX

AX

I In

terc

on

nect

AX

I In

terc

on

nect

DeviceTree (.dtb)

Processing System

Linux Kernel

Root FileSystem

.ELF

SD Card

Page 58: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

AXI-Lite Wrapper

SW / HW Integration of Simulink model in Zynq

Linux DeviceTree must be updated with PL peripheral info

User space controls peripheral via UIO driver calls

Automated build processes are possible with MATLAB

and TCL scripting

74

AX

I In

terc

on

nect

AX

I In

terc

on

nect

AlgorithmHDL

AlgorithmHDL

User Space ApplicationUser Space Application

LINUX

Algorithm C

AX

I In

terc

on

nect

AX

I In

terc

on

nect

UIODriverUIODriver

Page 59: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

ADI Reference Design – Linux IIO Drivers

The Linux Industrial I/O (IIO) subsystem is intended to provide support for devices that, in some sense, are analog-to-digital or digital-to-analog converters

o Devices that fall into this category are:

ADCs

DACs

Accelerometers, gyros, IMUs

Capacitance-to-Digital converters (CDCs)

Pressure, temperature, and light sensors, etc.

RF Transceivers (like the AD9361)

o Can be used on ADCs ranging from a 1MSPS SoC ADC to >250 MSPS industrial ADCs

o Developed during 2009, committed Jan 2010, moved out of staging Nov 2011, now in all mainline Linux kernels.

The IIO Divers for the motor control solution require the HDL cores to have a specified register map

A DMA interface is set up for high speed data transfer using multiple multiplexed data channels

Page 60: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

ADI Reference Design – Device Tree Example

Each IIO driver has in the device tree an entry related to the actual driver and an entry corresponding to the allocated DMA

Each HDL core has a base register map that can be extended to match the desired functionality

Having a well established framework allows new devices to be easily added into the system both from a Linux and a HDL perspective

Page 61: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Simulink

Complete Design Flow for Stand-Alone Deployment

Device Under Test

(DUT)

Device Under Test

(DUT)

SDKFSBL

+Bitstream

+Uboot.elf

Hardware platform + bitstream

BOOT.bin

IP

PackagerIP

Catalog

IP IntegratorIP Integrator

FMCOMMS2

Base Design

AXI-Lite Wrapper

DUTUser IP

DUTUser IP

HDL Coder + AXI interface

Page 62: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

IIO oscilloscope

Dual Cortex™-A9 MPCore™

Programmable Logic

DAC

Interface

DD

S

VDMA HDMI

NEON™ / FPU Engine

Processing System

LINUX User-space applications

IQ

Demod

IQ

Mod

Stand-alone SDR System for Zynq

ADC

ADC

DAC

DAC

ADC

Interface

AD-FMCOMMS2-EBZ

Usersignal chainF

IFO

ADI DMA

AXI Interconnect

FIF

O

ADI DMA

LINUX drivers

AXI

VDMA

Page 63: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Agenda

80

Topic

Introducing the Zynq®-7000 AP SoC / AD9361 SDR Kit

Demo 1 Zynq SDR Kit in Operation / Base Reference Design

Analog Devices AD9361 Integrated RF Transceiver

Demo 2 Exploring the Base Reference Design in Xilinx Vivado®

Break

Model-Based Design for Wireless Communications

Demo 3 Simulink® Model of IEEE 802.11 Beacon Frame Receiver

Deploying Simulink models with Xilinx Vivado Design Suite

Demo 4 802.11 Beacon Frame Receiver in Stand-Alone Operation

Page 64: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

THANK YOU!

82

Page 65: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Appendix

83

Page 66: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Reference Links

AD-FMCOMMS2-EBZ

http://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-

ebz/hardware/functional_overview

AD-FMCOMMS2-EBZ HDL Reference Design

http://wiki.analog.com/resources/eval/user-guides/ad-fmcomms2-

ebz/reference_hdl

AD9361 Integrated RF Agile Transceiver

http://www.analog.com/AD9361_design_files

SD Card Image Files for Zynq + AD9361/64

http://wiki.analog.com/resources/tools-software/linux-software/zynq_images

IEEE 802.11 HDL Optimized Beacon Frame Receiver

www.mathworks.com/help/comm/examples/ieee-802-11-wlan-hdl-optimized-beacon-

frame-receiver-with-captured-data.html

Page 67: Integrated Software-Defined Radio on Zynq 7000 All ...zedboard.org/sites/default/files/ZYNQ_SDR_2014_slides_v1_0.pdf · Integrated Software-Defined Radio on ... expertise in high

Xilinx DSP Slice

+/-X

=

B

A

D

C

+-

Pre-Add

25x18

Pattern Detector

48-Bit Accum

PDSP48E1 Slice

DSP48

E1 SliceInte

rconnect

DSP48 Tile

DSP48E1 Slice

Two DSP48E1 slices / tile connected by 5 high-

speed interconnects

Independent access to accumulators

Wide multiplies for greater numerical precision

Flexible access to dedicated pre-adder

Pattern detector for efficient rounding hardware

Resources per Family Artix Kintex Virtex Zynq

Max DSP48E1 Fmax 628 MHz 741 MHz 741 MHz 741 MHz

Max DSP48E1 Count 740 1920 3600 2020