Code Monkey home page Code Monkey logo

mips-cpu's Introduction

MIPS-CPU

Risc instuctions implement

  • Fully 4 stages pipeline
  • Forwarding instead of memory stall
  • Branch Prediction
  • Synthesis with Memory
  • Try Different Compile Flag that not influence correctness

Running RTL Simulation

到 processor_t.v 中第 12, 13 行修改 instruction, data 的 source,接著輸入 command

make

即可正確跑出 RTL 的 simulation,唯需特別注意,因為 testbench 會先 line by line load instruction, data 到 Memory 中,所以驗證正確性請到 後面波形才會開始 Run

Synthesis

design_vision -f syn_script.tcl

Running Synthesis Simulation

到 processor_t.v 中第 12, 13 行修改 instruction, data 的 source,接著輸入 command

make syn

即可正確跑出 synthesis 的 simulation,唯需特別注意,因為 testbench 會先 line by line load instruction, data 到 合成的 Memory 中,所以驗證正確性請到 後面波形觀看,因為 load 完才會開始 Run

Generate Testcase

在 testcase 資料夾下面有兩個檔案 * random_data.py * random_instruction.py

可以產生 Random testcase 到 stdout, 如果要輸入到檔案要在自己 pipeline,並且必須使用 python2.6以上版本,ic54-58才有

Example:

python2.6 random_data.py > random_data.dat

mips-cpu's People

Contributors

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