Giter VIP home page Giter VIP logo

141l's Introduction

CSE 141L Lab 2

Introduction and general comments

Summary of ISA

Our ISA supports a very simple circuit design, relying on a single implicit $res register that acts like an accumulator to do most of the heavy lifting. All operations that are implemented: add, branch, load, store, to name a few will use $res in some way shape or form.

**res: ** Set $res to a 16 bit signed constant.

**Shift: ** Shifts $res by the amount defined by the decimal value of the operand.

**Add: ** Takes one operand register and adds its value into whatever is in $res.

**Load: ** Loads into a register the value at the address specified by $res.

**Store: ** Store into memory location specified by $res whatever value is in the operand register.

**Jump: ** Moves the PC forward or backward the amount specified in the operand register.

**Branch: ** Handles all branching, generally can check for less than, greater than, or equal to. Uses two special 'comparison' registers to do this.

** LSBTOG ** This will change the least significant bit of the of the register specified in the instruction depending on what is in $res using a combination of NOT and AND operations.

** Cpin ** This copies the value of the specified register into $res.

** Cpout ** This copies the values of $res into the specified register.

** Comp ** This compares whatever is in the specified register with whatever is in $res, and sets $res to 0 if $res is less than the speficied register, otherwise #res is set to 1.

โ€ฆ

ALU Operations

We expect ____ ALU operations?

  • Add
  • Subtract (or signed add)
  • OR
  • AND
  • NOT
  • ...

141l's People

Contributors

dereklouie avatar jnwng avatar lewisf avatar

Watchers

 avatar  avatar  avatar  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.