吉林大学学报(信息科学版) ›› 2024, Vol. 42 ›› Issue (6): 1183-1190.

• • 上一篇    

基于FPGAARM Cortex-M0 的可重构 MCU 

张祥龙,王丽杰   

  1. 吉林大学电子科学与工程学院,长春130012
  • 收稿日期:2023-09-20 出版日期:2024-12-23 发布日期:2024-12-23
  • 通讯作者: 王丽杰(1979— ), 女, 吉林公主岭人, 吉林大学讲师, 博士, 主要从事 集成电路、纳米材料功能器件研究,(Tel)86-13756916792 (E-mail )wang_lij@ jlu. edu. cn。
  • 作者简介:张祥龙(2000— ),男,合肥人,吉林大学本科生,主要从事毫米波集成电路、数模混合电路研究,(Tel)86-18856080347 (E-mail)zhangxl23@ mail. ustc. edu. cn。
  • 基金资助:
    吉林省自然科学基金资助项目(20230101038JC) 

MCU Design Based on FPGA and ARM Cortex-M0

 ZHANG Xianglong, WANG Lijie   

  1. College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
  • Received:2023-09-20 Online:2024-12-23 Published:2024-12-23

摘要: 由于MCU(Microcontroller Unit)编程语言主要为 C 语言, 以软逻辑实现, 并通过顺序执行指令实现特定 功能, 因此存在低速的缺点。 为得到高速同时仍然保留 MCU 优势的系统, 研究了基于 FPGA(Field- Programmable Gate Array) ARM(Advanced RISC Machines)Cortex-M0 的可重构 MCU 设计。 针对 ARM Cortex- M0 内核以及AMBA(Advanced Microcontroller Bus Architecture)总线系统进行分析, 设计 MCU 系统整体所需的 每个单元,根据每个模块的特性设计其Verilog代码, 并进行仿真验证。 探究了基于FPGA平台设计特殊的外 设, 验证硬件算法等,并以定时器中断系统为例,结合软件和硬件,对整个MCU系统进行综合仿真,分析实际 运行中ARMCortex-M0 内核的工作状态, 总线系统对每个模块间数据的通讯与调度,验证FPGA平台开发MCU 的可行性与高效性。 结果表明,MCU基于重构平台设计,可实现外设功能根据需求的定制化,相比传统MCU 具有更高的灵活度。 

关键词: 单片机, 现场可编程逻辑门阵列, 高级微控制器总线架构, 逻辑综合

Abstract: The MCU(Microcontroller Unit) programming language is mainly C language implemented in soft logic, which implements specific functions by sequentially executing instructions, and can not avoid the shortcomings of low speed. The MCU based on FPGA(Field-Programmable Gate Array) and ARM(Advanced RISC Machines) Cortex-M0 is designed to obtain a high-speed system while still retaining the advantages of MCU. FPGA-based MCUs execute in parallel because the logic is directly implemented by the hardware, which greatly improves the speed and can be widely used in complex logic control and data operations and processing. Based on the analysis of the ARM Cortex-M0 core and the AMBA(Advanced Microcontroller Bus Architecture) bus system, each unit is designed for the MCU system. The Verilog code of each module is designed according to the characteristics of each module. The simulation results verifys that the module functions well. The design of special peripherals based on the FPGA platform and the verification of hardware algorithms are explored, which reflects the high flexibility and efficiency of the FPGA platform for design of MCUs. Taking the timer interrupt system as an example, combined with software and hardware, a comprehensive simulation of the entire MCU system is carried out, the working state of the ARM Cortex-M0 core in actual operation is analyzed, and the data communication and scheduling between each module of the bus system are analyzed, verify the feasibility and efficiency of the FPGA platform to develop MCU. The MCU is designed based on a reconfigurable platform, which can customize peripheral functions according to needs, and has the advantage of higher flexibility than traditional MCUs. 

Key words: microcontroller(MCU), field- programmable gate array(FPGA), advanced microcontroller bus architecture(AMBA), logic synthesis

中图分类号: 

  • TN914