Git Product home page Git Product logo

drexel-disco-risc-v-simulator-c-impl's Introduction

This is the C implementation of Davis Ranney's (dr847) RISC-V core simulator. I completed the core structure in a single cycle, non-pipelined manner. After the instructions are translated to binary using the parser, the core takes over, and runs each instruction through the method decode and execute, which deciphers what the instruction should do, what data to do it on, and then does it. It basically reverse-engineers the parser's job to convert the instructions to binary by decoding the binary and using it to grab certain register data and execute the necessary instructions.

As per Shihao Song's instructions, I did not fully implement the branching instructions. What I did do was properly have it change the PC, but not change what instructions were then executed. For part 2, I will implement it properly so that it loops through the instructions again and gets the proper instruction to execute next. 

Because I was unable to complete the branching instructions, I wasn't able to run my implementation of the matrix problem, though it is in the cpu_traces folder titled 'matrix_trace.' I documented the code by hand and deduced that it worked correctly though. The final memory should start at the base of the memory and be stored in address 0, 8, 16, 24 respectively for out[0], out[1], out[2], and out[3].


To compile:
make

To run:
./RVSim cpu_traces/example_cpu_trace

drexel-disco-risc-v-simulator-c-impl's People

Contributors

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