Giter Club home page Giter Club logo

craps-kernel's Introduction

CRAPS Kernel

This repository holds the code for a CPU and OS kernel for a Nexys4 board. This project extends a the original one with adding :

  • A compatibility to the Nexys4 board
  • The possibility to use the rj45 port of the Nexys4 board for Ethernet communications

What is it?

This actually is several projects:

  • a CPU (called CRAPS), written in VHDL;
  • a OS kernel that runs on it, written in a C subset;
  • a compiler to compile the C subset to CRAPS assembly;
  • a monitor/debugger for the CRAPS processor;
  • a shell and several tasks that run in the OS.

The on-board OS can communicate with a computer through a serial port. It can also use the swiches, buttons and seven-segment display on the board.

What can it do?

See this screencast for an example of a shell session.

How to

The processor is a CRAPS processor, a RISC processor.

The processor is written in VHDL. You can then use Digilent Adept or Xilinx ISE to program the FPGA.

The processor runs CRAPS assembly. You can use crapsc to compile CRAPS assembly to CRAPS bytecode.

The kernel is written in moc, a C-like language. We provide a compiler to compile it to CRAPS assembly.

The compile-craps script wraps the compiler with the cpp preprocessor.

The CRAPS debugger

The crapsdb program can upload code on the board, start the operating system and monitor the CPU state and the memory.

craps-kernel's People

Contributors

mcarton avatar arthaud avatar nurbel avatar gjolly avatar

Stargazers

Timothy avatar

Watchers

 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.