Giter VIP home page Giter VIP logo

lpu's Introduction

LPU1.0

Table of Contents

About

LPU (Lysus Processing Unit) is an 8 bit Havard architecture CPU built inside of Minecraft using redstone mechanics to simulate binary logic. This will be a 4 stage pipelined CPU with a 2 byte instruction set architecture.

In this project there will also be an external assembler that will take assembly code written using this instruction set to the LPU machine code as well as a compiler for a custom c styled language called Craft-C (tentative name) that will transpile to that assembly language then be assembled into the machine code to be used by the CPU.

As of now, the primary focus will be spent on finishing the CPU then finishig the assembler. Craft-C will be worked on once those 2 parts of this project are completed

The Processor

The processor is currently under construction. If you would like to see the processor for yourself then join the Open Redstone Egineers minecraft server at the following IP: mc.openredstone.org then us the /plot tp lysus command to get to the plot!

So far the ALU, Registers, Instruction decoders, flag registers, and branch decoders are in place

Reference the To do for a full list of what still needs to be completed

Current Specs

  • 8 bit ALU
  • 16 byte Register File

Instruction Set

How To Use

Assembler

To build the assembler first go into the `assembler` directory then use the `make` command to build the project (NOTE: Only the Lexer is done as of now)
make

To do

  • CPU

    • Finish branching by connecting the branch flag registers to the branch decoders
    • Make the Program Counter
    • Implement pipelining (Possibly not implementing pipelining in this CPU)
      • Account for RAW hazards
      • Implement forwarding and stalling
    • Created PROM
    • Make basic I/O
      • Output to 2D display
      • Output to 7 seg display using binary coded decimal
    • Create RAM
    • BUS EVERYTHING TOGETHER
  • Assembler

    • Finish Parser (syntatical analysis)
    • Study and work on optimization techniques
    • Keep on learning about compilers and assemblers
  • Craft-C

    • Yeah not gonna deal with this until the other stuff are done tbh lol

Copyright © 2024 Austin Choi

lpu's People

Contributors

choice404 avatar

Stargazers

 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.