GithubHelp home page GithubHelp logo

simp_cpu_simulator's Introduction

SIMP CPU simulator

SIMP CPU simulator and assembler built in C. 2 version are available PC version and BASYS chip version. full documentation added in hebrew as PDF and explenation for the testing assembly progrems written in MIPS assembly the documentation of the code is written in english.

PC simulation

The simulation recieve memin.txt file, created by the assembler and return txt file containing memory, registers ,number of cycles at the end of the run and th trace.

image

the registers simulated:

image

commands structure:

image

commands simulated:

image

test progrems:

fib.asm - calculate fibonacci number. bubble.asm - sort a series of numbers using bubble sort algorithm. binom.asm - calculate the binom coefficent using recursion.

BASYS simulation

built on the PC simulation where there's I/O registers added, and command to speak/write. register/cycle/memory information can be seen on the BASYS display using the switch 0,1 buttons. BTNL used to pause the simulation , while in pause BTNR will run one command line, another BTNL press will unpausee the simulation.

image

image

image

in addition irq0, irq1, irq2 commands were added ,basic LED control, and button control,explained in details in the PDF documentation file.

the test progrem Stopper.asm is a timer that run on the BASYS 7 segment display , with PAUSE/UNPAUSE and RESET options using BTNC , BTNL. the timer counts up to 59[min]:59[sec] and then resets to 00:00. full explemantion of each button function is in the PDF documentation.

simp_cpu_simulator's People

Contributors

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