GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mcarton/CRAPS-Kernel: A simple operating system, processor and compiler for Nexys2

BranchesTags
Open more actions menu

Latest commit

 

History

491 Commits
491 Commits

Folders and files

NameName
Last commit message
Last commit date
Compiler @ 57d3319
Compiler @ 57d3319
 
 
Kernel
Kernel
 
 
Meetings
Meetings
 
 
Processor
Processor
 
 
ProjectManagement
ProjectManagement
 
 
UserLand
UserLand
 
 
Utils
Utils
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 

Repository files navigation

CRAPS Kernel

This repository holds the code for a CPU and OS kernel for a Nexys2 board.

What is it?

This actually is several projects:

  • a CPU (called CRAPS), written in SHDL and 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

The processor is a CRAPS processor, a RISC processor.

The processor is written in SHDL (Simple Hardware Description Language). SHDL is then compiled to VHDL with shdl2vhdl. It will generate and synthesize a Xilinx ISE project. 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

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.

About

A simple operating system, processor and compiler for Nexys2

Resources

Readme
Activity

Stars

7 stars

Watchers

7 watching

Forks

3 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.