Git Product home page Git Product logo

cs385semesterproject's Introduction

CS 385 Semester Project

Description: Design a simplified version of a MIPS machine and write Verilog programs that describe its structure and simulate its functioning. Use structural (gate level) modeling for all components unless otherwise specified. The machine should include the following components:

  1. General purpose registers (register file): 4 registers, 16-bit long, numbered 0 - 3. Register $0 must contain 0 (read-only). Implemented by D flip-flops with gate-level modeling.
  2. Other registers: 16-bit program counter, pipeline registers. Implemented by reg vectors in Verilog.
  3. Istruction Memory. Word size: 16 bits, word addressed, size: 1024 bytes. Implemented by reg vectors in Verilog.
  4. Data Memory. Word size: 16 bits, byte addressed, size: 1024 bytes. Implemented by reg vectors in Verilog.
  5. Data Cache (optional): direct mapped, write-through, 16-bit block size, size: 8 blocks. Any kind of Verilog model accepted.
  6. ALU: 16-bit data, 3-bit control. Functions: and, or, add, sub, slt.
  7. Control unit: may be implemented by behavioral modeling.
  8. Other components necessary to connect the main components: multiplexes and decoders implemented by gate-level modeling.
Instruction set
InstructionOpcode
add0000
sub0001
and0010
or0011
addi0100
lw0101
sw0110
slt0111
beq1000
bne1001

Instruction formats:

R-format (add, sub, and, or, slt)

oprsrtrdunused
42226

I-format (addi, lw, sw, beq, bne)

oprsrtaddress / value
4228

Restrictions:

  1. Use structural (gate level) modeling for all components except for the program counter, memories, and pipeline registers.
  2. Implement a pipelined datapath and control.
Extra credit (maximum 5 points): Implementing a carry lookahead logic for the ALU, a data cache, additional MIPS instructions, or improvements of the pipeline (forwarding or stalling).

cs385semesterproject's People

Contributors

jasonbristol avatar montwell avatar eheidelmark avatar

Watchers

James Cloos 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.