Presentation Title

Similar documents
Presentation Title

DSP

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

2/80 2

Microsoft PowerPoint - Sens-Tech WCNDT [兼容模式]


PowerPoint Presentation

solutions guide

BC04 Module_antenna__ doc

2002/06/25

rz_Newsletter2016_en_ indd

目次 

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

68369 (ppp quickstart guide)

audiogram3 Owners Manual

P4i45GL_GV-R50-CN.p65

Microsoft PowerPoint - 6-B.ppt

ARM JTAG实时仿真器安装使用指南

Microsoft PowerPoint - Performance Analysis of Video Streaming over LTE using.pptx

(Pattern Recognition) 1 1. CCD

EK-STM32F

untitled

Microsoft Word - MTK平台生产软件使用说明.doc

CH01.indd

1 目 錄 1. 簡 介 一 般 甄 試 程 序 第 一 階 段 的 準 備 第 二 階 段 的 準 備 每 間 學 校 的 面 試 方 式 各 程 序 我 的 做 法 心 得 及 筆 記 結 論..

VASP应用运行优化

Microsoft PowerPoint - ATF2015.ppt [相容模式]

V6800/V6600 3D

Microsoft PowerPoint - Aqua-Sim.pptx

MCU DSP MSO MCU DSP MSO MSO MSO MCU/DSP I/O MSO 16 Microchip IC18 turn-on MSO chirp MCU I/O I 2 C

大 綱 一 了 解 市 場 法 則 重 要 的 工 作? 二 人 力 單 位 用 人 策 略 與 測 驗? 三 企 業 用 人 的 思 考 策 略? 四 用 人 單 位 如 何 找 到 喜 歡 的 人 力? 五 履 歷 撰 寫? 六 面 試 技 巧? 七 提 升 競 爭 力 的 秘 方?

<4D F736F F D C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

UDC 厦门大学博硕士论文摘要库

,

1 VLBI VLBI 2 32 MHz 2 Gbps X J VLBI [3] CDAS IVS [4,5] CDAS MHz, 16 MHz, 8 MHz, 4 MHz, 2 MHz [6] CDAS VLBI CDAS 2 CDAS CDAS 5 2

Shanghai International Studies University THE STUDY AND PRACTICE OF SITUATIONAL LANGUAGE TEACHING OF ADVERB AT BEGINNING AND INTERMEDIATE LEVEL A Thes

Microsoft Word - A _ doc

資訊系統開發模式

Windows XP

我国原奶及乳制品安全生产和质量安全管理研究

<4D F736F F F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074>

1 MTK 2 MTK 3 MTK

1.ai

USB解决方案.ppt

Microsoft Word - 11月電子報1130.doc

TX-NR3030_BAS_Cs_ indd

ARM Cortex-M3 (STM32F) STMicroelectronics ( ST) STM32F103 Core: ARM 32-bit Cortex -M3 CPU 72 MHz, 90 DMIPS with 1.25 DMIPS/MHz Single-cycle multiplica

Microsoft Word doc

Ch03_嵌入式作業系統建置_01

冷熱衝擊試驗機、溫度控制器

专业主干课程与主要专业课程教学大纲(2009年、2011年).doc

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

ICD ICD ICD ICD ICD

课题调查对象:

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

拓 展 课 程 内 涵 引 领 创 新 理 念 随 着 国 家 中 长 期 教 育 改 革 和 发 展 规 划 纲 要 ( 年 ) 的 公 布, 新 的 国 家 人 才 战 略 对 高 等 英 语 教 学 提 出 了 新 的 要 求 本 着 拓 展 课 程 内 涵 推 动 教 学

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

untitled

Chroma 61500/ bit / RMS RMS VA ()61500 DSP THD /61508/61507/61609/61608/ (61500 ) Chroma STEP PULSE : LISTLIST 100 AC DC

...1 Abstract

Presentation Title

:1949, 1936, 1713 %, 63 % (, 1957, 5 ), :?,,,,,, (,1999, 329 ),,,,,,,,,, ( ) ; ( ), 1945,,,,,,,,, 100, 1952,,,,,, ,, :,,, 1928,,,,, (,1984, 109

<4D F736F F D20B7A2D0D0B9C9B7DDBCB0D6A7B8B6CFD6BDF0B9BAC2F2D7CAB2FAB2A2C4BCBCAFC5E4CCD7D7CABDF0F4DFB9D8C1AABDBBD2D7D6AEB6C0C1A2B2C6CEF1B9CBCECAB1A8B8E6A3A8D0DEB6A9B8E5A3A9>

前 言 香 港 中 文 大 學 優 質 學 校 改 進 計 劃 ( 下 稱 計 劃 ) 團 隊 自 1998 年 起 積 極 於 本 地 推 動 理 論 及 實 踐 並 重 的 學 校 改 進 工 作, 並 逐 步 發 展 成 為 本 地 最 具 規 模 的 校 本 支 援 服 務 品 牌, 曾 支

國立中山大學學位論文典藏

幻灯片 1

学校代号 学 号

CC213

Hi3518EV200 HD IP Camera SoC Hi3516A

北 京 大 学

[ ],,,,,,,,,,,,,,, [ ] ; ; ; [ ]F120 [ ]A [ ] X(2018) , :,,,, ( ),,,,,,, [ ] [ ],, 5

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer)

Wuhan Textile University M. A. S Dissertation Emotional Design of Home Textile Based on the Chinese Traditional Culture Wedding Bedding for Example Ca

摘要

SPHE8202R Design Guide Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provi

I

untitled

通 过 厂 变 带 电, 这 种 设 计 减 少 了 机 组 自 带 厂 用 电 负 荷 能 力, 降 低 了 锅 炉 满 足 FCB 时 最 低 稳 燃 工 况, 同 时 造 成 燃 烧 调 整 量 加 大 本 电 厂 在 FCB 试 验 时, 电 泵 不 联 启, 始 终 保 持 汽 泵 运 行

Thesis for the Master degree in Engineering Research on Negative Pressure Wave Simulation and Signal Processing of Fluid-Conveying Pipeline Leak Candi

KT-SOPCx开发套件简明教程

AL-M200 Series

096STUT DOC

使用基于模型的设计 进行产品化控制算法开发(II)

+01-10_M5A_C1955.p65

AP128DG-H AP128DG-H 3 13 ATiRADEON TM Win 98/98SE, WinME Win XP Direct X

高中英文科教師甄試心得

三維空間之機械手臂虛擬實境模擬

OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Prot

图 片 展 示 : 资 源 简 介 : FPGA Altera CycloneII EP2C5T144C8 (4608 个 LE) 2 路 有 源 晶 振 (50M,25M) AS & JTAG 标 准 接 口 VGA 接 口 UART 接 口 蜂 鸣 器 8bit 并 行 DAC 8 路 按 键

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0

untitled

2-7.FIT)

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

Presentation Title

技 术 支 持 电 话 传 真 电 子 邮 件 网 址 CONVERGE PRO 880/880T/840T/8i, CON


豐佳燕.PDF

天津市虚拟仿真实验教学中心

Transcription:

音频系统的快速设计 验证与实现 徐正高 MathWorks 2016 The MathWorks, Inc. 1

MATLAB for Real-Time Audio key use cases For research and product development: Desktop prototyping Custom measurements For project-based learning: Audio for teaching DSP >> quick_preview 2

产品开发的原型 MATLAB 算法 早期验证 ( 听觉测试 ) 先进的原型 或产品 3

产品开发的原型 MATLAB 算法 早期验证 ( 听觉测试 ) 先进的原型 或产品 为什么? : 从算法开发者到其他相关人员 人在环路 听起来怎么样? 互动式的调整 如果我们改变了这个? 4

产品开发的原型 MATLAB 算法 早期验证 ( 听觉测试 ) 先进的原型 或产品 面临的挑战 算法 或者 DSP 工程师负责 C/C++ 相对困难, 并且费时 在 MATLAB 里调用外部的库有时不能正常工作 学习 Plugin API 具有挑战性 代码不能在产品里重复使用 浪费 5

Agenda Prototype with real-time audio streaming and live-tuning in MATLAB Run custom algorithm on DAWs with VST plugin generation 6

Audio System Toolbox 设计和测试音频处理系统 音频处理算法库和示例 到标准音频接口的低延时音频流, ( 如 :ASIO, CoreAudio, ALSA) 通过 UI 和 MIDI 设备在 MATLAB 和 Simulink 里实时调参 产生 VST 插件, 可以在 DAW 里运行 7

Time for a bit of MATLAB How does it work? How hard is it to achieve? 8

Audio System Toolbox 产品生态圈 需要产品 MATLAB Signal Processing Toolbox DSP System Toolbox Audio System Toolbox DSP System Toolbox Signal Processing Toolbox MATLAB Simulink 支持产品 MATLAB Simulink C/C++ Code Generation 9

生成 VST 插件和源代码 MATLAB 代码 Audio System Toolbox C/C++ MATLAB Coder Simulink Coder Simulink Real Time PC 平台应用程序 自定义插件 自定义原型基础构架 Speedgoat 音频 real-time target 嵌入式原型 VST 插件 设计 & 验证 原型 & 代码输出 10

11

主要内容 嵌入式系统 浮点模型转化为定点模型的工作流程 自动收集数据并建议数据类型 推导数据类型 将定点模型自动转换为嵌入式 C 代码 代码生成与优化 调试 验证 Polyspace 硬件连接 国内典型用户案例分析 - TI DSP 系统的实现 12

基于模型的设计 MATLAB / Simulink 系统和算法设计 Fixed-Point Designer MATLAB coder / Simulink Coder Embedded Coder 代码产生 证验 算法测试与验证 C / C++ MCU TI DSP 13

快速原型的意义 14

Processor TI TMS320C6748 DSP 456-MHz C674x Fixed/Floating Point DSP Memory 128 MByte DDR2 SDRAM running at 150MHz 128 MByte 16-bit wide NAND FLASH Interfaces One mini-usb Serial Port (on-board serial to USB) One Fast Ethernet Port (10/100 Mbps) with status LEDs One VGA Port (15 pin D-SUB) One Composite Video Input (RCA Jack) Three AUDIO Ports (1 LINE IN & 1 LINE OUT & 1 MIC IN) 14-pin JTAG header (No onboard emulator; external emulator is required) 15

自动代码产生 C 语言 : DSP 标准 C 语言 (ANSI C / ISO C) MATLAB coder Simulink coder 优化的目标代码 Embedded coder 16

MATLAB Coder \ Simulink Coder 自动产生 C 代码 从视频和图像处理模型产生 ANSI-C 代码 建立算法和系统的快速原型 在目标硬件上进行测试和验证 方便移植到不同的目标处理器 17

Embedded coder 产生产品级代码 专用处理器, 优化代码 Simulink 模块和优化库 (FIR, FFT, ) 工程自动化 自动产生整个工程 CCS 编译器 连接器的 API 函数 快速原型 特定目标和集成环境 Simulink 硬件模块, 支持设备驱动 (ADC, DAC, RTDX, 子卡 ) 支持 开发板 : TI 6713 DSK, C6416DSK, DM642 EVM,C6455EVM, DM6437EVM, DM648EVM, C6747EVM, DSPs: TI DM64x, C64x, C62x, and C67x families 18

基于模型的设计应用于 TI DSPs 及产品 Model and Simulate in Floating- and Fixed-Point Generate embeddable C-code from Simulink and / or Embedded MATLAB Rapidly Prototype and Implement on TI processors and boards MATLAB Simulink Stateflow Link for use with Code Composer Studio Embedded Coder Targets on TI C6000 (DM6437), C2000 Texas Instruments Code Composer Studio Environment C/ASM Code Compile & Link Debug Down load TI DSP 19

产生代码实例 Rapid Prototype Code (grt.tlc) Production code (ert.tlc) 20

自动代码可靠性 效率 Our team at Honeywell Flight Controls has generated 1.6 million lines of code automatically using MathWorks products for the Joint Strike Fighter. We manually verified 1.2 million lines of code so far. We found 1 line of code that we are not sure where it came from or what it s purpose is. Everything works fine, though. These days everyone is talking about doing 6-sigma design. One questionable line of code out of 1.2 million lines of code that s better than 6.5 sigma. And we are not talking about it we actually did it. 21

产品级代码 22

项目案例 : 从 MATLAB 算法到 DSP 产品化 基于模型的设计,MBD Coaching; 1. MATLAB 算法 2. Simulink 模型仿真基于帧的转换定点化 3. 自动代码产生快速原型面向特定芯片的优化自定义模块 4. 验证仿真验证实验室验证外场验证 23

ABS 项目系统构架图 上位机 : 控制字 核心专利算法 : 编码, 调制 RS232 音频输出发射机 核心专利算法 : 滤波, 解调, 译码 接收电路音频输出 RS232 下位机 : 控制字 24

自定义模块 : 示例 25

自定义模块 : 模块库 26

自定义模块 : 修改 TLC 27

自定义模块 : 验证模型 28

自定义模块 : 生成代码 29

正确性和性能 : The following code calculates the same FFT in the workspace. The output from this calculation, y2, is displayed side-by-side with the output from the model, c. The outputs match, showing that the Bit Reverse block reorders the Radix-2 FFT output to natural order: k = 4; n = 2^k; xr = zeros(n, 1); xr(2) = 0.5; xi = zeros(n, 1); x2 = complex(xr, xi); y2 = fft(x2); 30

正确性 : [y2, c] 0.5000 0.5000 0.4619-0.1913i 0.4619-0.1913i 0.3536-0.3536i 0.3535-0.3535i 0.1913-0.4619i 0.1913-0.4619i 0-0.5000i 0-0.5000i -0.1913-0.4619i -0.1913-0.4619i -0.3536-0.3536i -0.3535-0.3535i -0.4619-0.1913i -0.4619-0.1913i -0.5000-0.5000-0.4619 + 0.1913i -0.4619 + 0.1913i -0.3536 + 0.3536i -0.3535 + 0.3535i -0.1913 + 0.4619i -0.1913 + 0.4619i 0 + 0.5000i 0 + 0.5000i 0.1913 + 0.4619i 0.1913 + 0.4619i 0.3536 + 0.3536i 0.3535 + 0.3535i 0.4619 + 0.1913i 0.4619 + 0.1913i 31

正确性和性能 : 代码 32

实时性 : 33

发射端 : 34

接收端 1: 35

用户案例 : Doheny Eye Institute Develops Next-Generation of Retinal Prosthesis with MathWorks Tools Challenge Develop next-generation, higher-resolution retinal prostheses Solution Use MathWorks tools to develop, simulate, and automatically generate code for real-time image processing algorithms Results Development time reduced from months to weeks DSP deployment streamlined Patient testing improved Illustration of a retinal prosthesis prototype. With Computer Vision System Toolbox and Embedded Coder, we rapidly prototype our image and video processing algorithms on the DM642 board. This can save me days or weeks of time. Neha Parikh Doheny Eye Institute Link to user story 36

Demo Booth:DSP model 37

Workflow of Code generation 38

Demo Booth:Control FM Frequency 39

Radio on MBD 40

谢谢! 41

Summary Real-Time Audio in MATLAB Desktop prototyping and listening tests Pain: Traditional prototyping is costly and time-consuming Solution: Audio streaming in MATLAB and VST plugin generation Custom real-time measurements Pain: Audio test & measurement equipment can be expensive and inflexible Solution: Audio acquisition and unlimited custom analysis Real-time audio for teaching DSP Pain: C/C++ and hardware kits take away time from putting signal processing into practice Solution: Real-time audio without C/C++ or embedded kits 42