Skip to content

emielsteerneman/sprockell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sprockell

Sprockell is a Simple Processor in Haskell. It was originally written by Jan Kuper at the University of Twente. It has later been extended to allow multiple Sprockells to be run at once, communicating via shared memory. This version is internally been dubbed Smockell :-)

Features

  • Simple arithmetic
  • Memory mapped I/O
  • Branches / jumps
  • Stack
  • Local memory
  • Shared memory

Documentation

See the wiki.

Running

Clone the repository, compile System.hs using ghc and run it from the command line. A (really) simple program runs and terminates.

Of course, you can compile your own program:

import Sprockell.System

prog = [ Const 6 RegA
       , Const 7 RegB
       , Compute Mul RegA RegB RegC
       , EndProg
       ]

main = run 1 prog

Where 1 is the amount of Sprockells you want to deploy.

ghc Program.hs
./Program

(Of course, this simple program doesn't produce any output. You can use Write RegC stdio for that.)

Debugging

See the wiki on debugging.

About

Simple processor in Haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%