Nanyang Technological University
Design and FPGA implementation of a Cortex-M0 based MCU
Abstract
dc:description.abstractThis dissertation presents a comprehensive methodology for the architectural design, verification and FPGA deployment of a microcontroller unit based on the ARM Cortex M0 core targeting the Xilinx Artix 7 family. The work begins with an in‑depth analysis and restructuring of the Cortex M0 file architecture. On‑chip single‑port memory is provided by Vivado BRAM IP configured as SRAM with AHB Lite wrappers to enable seamless bootloader execution and application code storage. An AMBA Lite interconnect fabric is extended with an APB bridge to support low‑speed peripherals such as timers and GPIO. A UART module compliant with serial standards provides essential debug and IO functionality, allowing observation of bootloader status and software execution. The bootloader image is compiled in Keil, converted from Intel‑HEX to a 32‑bit‑wide memory initialization file via a MATLAB script, and loaded into ROM. The entire system is described in Verilog HDL and undergoes both standalone and system‑level functional verification in ModelSim to confirm correct instruction fetch and execution, bus transactions, UART transfers and memory operations. To support external non‑volatile storage, a Flash controller is implemented as a Verilog RTL module operating in SPI mode 03. The controller drives an 8‑bit read command and a 24‑bit address over MOSI, registers the read request signal for one clock cycle to align with AHB Lite timing conventions, and enforces page‑level write protection via simulated status registers. During read cycles the RTL asserts a chip select signal and holds a ready output low to stall the CPU until data transfer completes, then releases ready to signal transaction end. After ModelSim verification, the verified RTL is synthesized in Vivado with timing constraints tailored for the Artix 7 device and packaged into a bitstream for board‑level deployment via JTAG. By integrating C compilation in Keil 5, MATLAB‑based HEX conversion, Verilog simulation and FPGA synthesis, this work delivers a reusable open‑source framework for rapid MCU prototyping on reconfigurable hardware.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Xu Haoqian
- Advisor dc:contributor.supervisor
-
- Jong Ching Chuen
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/212645