GithubHelp home page GithubHelp logo

mips_sim's Introduction

mips_sim

MIPS simulator

mips_sim's People

Contributors

ddarriba avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

m-castro2

mips_sim's Issues

Isolate CPU components

Detach Register Banks and ALU from CPU as a previous step for the flexible stage management. That way the pipeline stages will depend on CPU components and not on the CPU itself.

Compilation issues in Main branch with GCC 13

As mentioned in https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes, some headers that were typically included by some C++ Standard Library headers are not included now in GCC 13.

As a consequence, you need to explicitly include in the two files where 'uint32_t' is used to avoid a compilation error: 'uint32_t' has not been declared.

I tried to attach a patch along with this message, but github apparently does not allow to upload files in issue messages in private repos :-? (maybe a config issue :-?). The simple patch is here: https://gac.udc.es/~emilioj/0001-Addressing-error-with-GCC-13-uint32_t-has-not-been-d.patch

Exception handling

Use special registers for handling CPU exceptions.

  • BadVAddr: Memory address where exception occurred (e.g., unaligned or unallocated memory address)
  • Status: Interrupt mask, enable bits and status when exception occurred
  • Cause: Type of exception and pending interrupt bits (e.g., load from / store to an illegal address, arithmetic overflow)
  • EPC: Address of instruction that caused the exception (return address from the exception handling routine at 0x80000080)

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.