Coder Social home page Coder Social logo

buaa_co_autotester_p5_p6's Introduction

CO_Auto_Tester Instructions

环境

Python 3.7

Anaconda 23.1.0

但是应该是有个Python就行,版本不重要,我就用了os/random/argparse三个库

参数设置

--test_size:单.asm文件内生成的测试组数量,一般一个测试组会对应到4-7条指令(但考虑到标签的存在,行的数量会多很多),默认为150个测试组

--init:是否对所有寄存器进行初始化,默认为真(进行初始化会有效帮助数据冲突的发生)

--bound:是否对执行边界值测试,默认为否

--Project: 针对P5/P6进行测试,默认为6,如果希望生成P5数据则在run.sh中设置--Project 5, 或者修改myParser.py文件中对应设置

准备

  1. 在项目目录中写好mips.v与tb文件

  2. 将此测试程序目录放在项目目录之下

    文件层次结构:

    --project_dir
    ----mips.v
    ----mips.tcl
    ----mips.prj
    ----CO_AutoTester
    ------run.sh
    ------...
    ----ALU.v
    ----...
    
  3. 修改runISE.py中的xilinxPathtb_module_name,注意tb_module_name是模块名而不是文件名

运行

./run.sh

你将获得本次生成机器码为code.txt,如果你按照run.sh内注释进行了修改,你将在compare.txt内看到本次运行结果

获取 & 声明

基于Toby学长的Mars进行的模拟,Mars.jar文件已在当前repo中

buaa_co_autotester_p5_p6's People

Contributors

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