›› 2012, Vol. 25 ›› Issue (1): 42-.

• 论文 • 上一篇    下一篇

基于Matlab模糊控制器HDL代码的自动生成

诸葛俊贵   

  1. (上海师范大学 精密机电系统与控制工程研究室,上海 201418)
  • 出版日期:2012-01-15 发布日期:2012-01-10
  • 作者简介:诸葛俊贵(1986—),男,硕士研究生。研究方向:智能信息处理。

Fuzzy Controller HDL Code Automatically Generated Based on Matlab

 ZHU Ge-Jun-Gui   

  1. (Lab of Precision Mechano-electronics Systems and Control Engineering,Shanghai Normal University,Shanghai 201418,China)
  • Online:2012-01-15 Published:2012-01-10

摘要:

以水箱液位控制为例,提出了一种基于Matlab的模糊控制器HDL代码自动生成方法,生成的代码可以移植到FPGA控制系统上。该方法分4个步骤:(1)利用Matlab的Fuzzy Logic工具箱设计模糊控制器。(2)将模糊控制器转换为Lookup Table的形式。(3)将制作好的控制器查找表用状态机实现。(4)用HDL Coder将状态机实现的模糊控制器翻译成HDL代码。

关键词: FPGA, Matlab, Simulink, 模糊控制器, Lookup Table, 状态机, HDL Coder

Abstract:

This article,taking the Water Level Control in a Tank as an example,proposes a fuzzy controller automatic HDL code generation method based on Matlab.The generated code can be ported to the FPGA control system.The method is divided into four steps:(1)The fuzzy controller is designed using Fuzzy Logic Toolbox in the Matlab.(2)The fuzzy controller is transformed into the form of Lookup Table.(3)The controller Lookup table is implemented with the state machine.(4)The fuzzy controller implementation with state machine was translated into HDL code by HDL Coder.

Key words: FPGA;Matlab;Simulink;fuzzy controller;Lookup Table;state machine;HDL Colder

中图分类号: 

  • TP273+.4