Code Monkey home page Code Monkey logo

microcoder's Introduction

uCode

Documentation Status

A toy project for turning user-defined assembly-like programs into synthesisable verilog code. This verilog code can then be implemented on an FPGA.

More information on what this tool might be used for is found here.


Aims

The aim for this project is to allow people to define a set of their own assembly-like micro-instructions using a very simple syntax. Using these definitions, they can then write programs which are then transpiled into a verilog state-machine. These programs then communicate with the outside world using custom IO ports.

Progress

Currently, one can use the tool to:

  • Define arbitrary instructions, with arguments and their own set of operations on those arguments.
  • Define arbitrary inputs and outputs to the micro-code program, known as ports.
  • Define global state variables which the instructions can access and modfy.
  • Write assembly-like programs, with basic blocks, instructions and conditional jumps between those blocks.

Within each block, instructions can read and write the program ports, as well as the global state variables.

Documentation

All documentation is found in the docs/ folder of the project. These same files are also hosted on microcoder.readthedocs.io.

Examples

There are some simple examples bundled with the repositiory:

Counter - This is a really boring counter which simply counts down from 10 and then loops. Forever.

$> make all run EXAMPLE=count

Fibonacci - This program takes an n value, and computes the n'th number in the Fibonacci sequence.

$> make all run EXAMPLE=fibonacci

DMA - An example of a DMA memcopy co-processor which coppies multiple words from one memory base address to another.

$> make all run EXAMPLE=dma

The output wave files for both examples are written to work/waves.vcd. This can be viewed using a program like GTKWave.

microcoder's People

Contributors

ben-marshall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

microcoder's Issues

License ?

Hello, under what license is this project released under ? Thank-you.

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.