MyGit

samadpls/Aurora-5-Stage-Pipelined-RV32i

Fork: 0 Star: 11 (更新于 2024-10-06 19:07:04)

license: Unlicense

Language: Scala .

Aurora Risc-V pipeline is the continuous and somewhat overlapped movement of instruction to the processor or in the arithmetic steps taken by the processor to perform an instruction.

GitHub网址

Typing SVG
Typing SVG
         ┌─┐          ┌─┐          ┌─┐           ┌─┐
 ┌────┐  │ │  ┌────┐  │ │  ┌────┐  │ │  ┌─────┐  │ │  ┌────┐
 │    │  │ │  │    │  │ │  │    │  │ │  │     │  │ │  │    │
 │ IF ├─►│ ├─►│ ID ├─►│ ├─►│ EX ├─►│ ├─►│ MEM ├─►│ ├─►│ WB │
 │    │  │ │  │    │  │ │  │    │  │ │  │     │  │ │  │    │
 └────┘  │ │  └────┘  │ │  └────┘  │ │  └─────┘  │ │  └────┘
         └─┘          └─┘          └─┘           └─┘
        IF/ID        IF/ID        IF/MEM       MEM/ID
      registers    registers    registers     registers
      
      

First of all get started by Cloning this repository in your machine.

git clone https://github.com/samadpls/Aurora-5-Stage-Pipelined-RV32i.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.

For example instructions, Go to text.txt and copy code in the .txt file

You'll find test.asm file for the Assembly instructions for the purpose of checking.

Then perform the following step

cd Aurora-5-Stage-Pipelined-RV32i/src/main/scala/datapath

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

open instmem.scala

Find the following line

loadMemoryFromFile(mem, "D:/5_stage_pipline/src/main/scala/datapath/text.txt")

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

cd Aurora

And enter

sbt

Aurora-5-Stage-Pipelined-RV32i When the terminal changes to this type

sbt:Aurora-5-Stage-Pipelined-RV32i>

Enter this command

sbt:Aurora-5-Stage-Pipelined-RV32i> testOnly datapath.toptest  -- -DwriteVcd=1

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

最近版本更新:(数据更新于 1970-01-01 00:00:00)

samadpls/Aurora-5-Stage-Pipelined-RV32i同语言 Scala最近更新仓库

2024-10-05 03:06:12 delta-io/delta-sharing

2024-09-25 11:49:48 enso-org/enso

2024-09-05 00:48:36 delta-io/delta

2024-08-30 10:16:51 microsoft/SynapseML

2024-05-08 03:46:22 twitter/finagle

2024-03-16 01:53:23 databrickslabs/smolder