GithubHelp home page GithubHelp logo

musavvir-singlecycle's Introduction

MUSAVVIR -مُصَوِّر

Typing SVG
Typing SVG


A single cycle processor is a processor that carries out one instruction in a single clock cycle

First of all get started by cloning this repository on your machine.

git clone https://github.com/Myrausman/Musavvir-SingleCycle.git

Create a .txt file and place the hexadecimal code of your instructions simulated on Venus (RISC-V Simulator) Each instruction's hexadecimal code must be on seperate line as following. This program consists of 9 instructions.

00500113
00500193
014000EF
00120293
00502023
00002303
00628663
00310233
00008067

Then perform the following step

cd src/main/scala/text.txt

Open instrmem.scala with this command. You can also manually go into the above path and open the file in your favorite text editor.

open instrmem.scala

Find the following line

loadMemoryFromFile(imem,"E:\Musavvir-SingleCycle\src\main\riscv\abc.txt")

Change the .txt file path to match your file that you created above storing your own program instructions. After setting up the Memory.scala file, go inside the Musavvir-SingleCycle folder.

cd root/Musavvir-SingleCycle

And enter

sbt

When the terminal changes to this type

sbt:Musavvir-SingleCycle>

Enter this command

sbt:Musavvir-SingleCycle> test:runMain riscv.Launcher Top

After you get success

sbt:Musavvir-SingleCycle> test:runMain riscv.Launcher Top --backend-name verilator

After success you will get a folder test_run_dir on root of your folder. Go into the examples folder inside. There you will find the folder named Top. Enter in it and you can find the Top.vcd file which you visualise on gtkwave to see your program running.

musavvir-singlecycle's People

Contributors

myrausman avatar

Stargazers

SyedaWareesha ail avatar Ejineroz avatar Hamna Mohiuddin avatar Abdul Samad Siddiqui 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.