Giter Club home page Giter Club logo

cortex-m0-soft-microcontroller's Introduction

Cortex-M0 implementation on a Kintex-7 FPGA

Overview

Soft-microcontroller implementation of an ARM Cortex-M0 into a KC705. This project implements a design that contains the following components:

  • Cortex-M0 obfuscated core: core provided by the ARM DesignStart website
  • RAM memory: implementation of a RAM memory that accepts an initialization file
  • AHB3-lite interconnection: interconnection responsible for allowing the communication between masters and slaves in AHB3-lite protocol
  • Pattern detector: Core that implements a simple state machine that toggles its output when the pattern "f0f0f0f0" is seen on its input bus

When the board is turned on, the cortex-m0 reads the RAM memory, which was synthesized with a program that counts up to a fixed number and then puts the pattern "f0f0f0f0" at the bus. This causes the pattern detector to toggle its output, which it connected to an LED. For the synthesis, the program is defined to count up to 10,000,000. For simulation purposes, a memory file with a program that counts up to 200 is available.

Requirements

The tools used in this project are listed below. However, it can be ported to different vendor/boards thanks to the flexibility provided by hdlmake.

Instructions

  • Clone the repository with its submodules:
$ git clone --recurse-submodules [email protected]:vfinotti/cortex-m0-soft-microcontroller.git
  • Change the directory to the synthesis folder
$ cd ./syn/kc705_blinky/verilog/
  • Copy the files "cortexm0ds_logic.v" and "CORTEXM0INTEGRATION.v" (obtained from the ARM DesignStart website) to modules/cortex-m0/verilog/

  • run hdlmake to generate the Makefile, and then make the project

$ hdlmake
$ make

References

  1. http://web.fi.uba.ar/~pmartos/publicaciones/ApplicationNoteCortexM0.pdf: Project which inspired this work
  2. https://static.docs.arm.com/ddi0432/c/DDI0432C_cortex_m0_r0p0_trm.pdf: Cortex-M0 Technical Reference Manual
  3. https://silver.arm.com/download/download.tm?pv=1085658: AMBA 3 AHB-Lite Protocol Specification

cortex-m0-soft-microcontroller's People

Contributors

vfinotti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.