chipsalliance / riscv-dv

Random instruction generator for RISC-V processor verification
Apache License 2.0
1.02k stars 329 forks source link

Supported tests from testlist in pyflow #781

Open amnafayyaz28 opened 3 years ago

amnafayyaz28 commented 3 years ago

I was able to generate riscv_arithmetic_basic_test from the testlist using the run.py script. In riscv_arithmetic_basic_test case assembly test files are successfully generated. But I am facing issues in generation of other random tests in the testlist e.g. riscv_rand_instr_test, riscv_jump_stress_test, riscv_loop_test etc. Kindly confirm which tests from testlist are supported in pyflow. I am facing the issue shown below while generating the others.

ERROR return code: True/1, cmd: python3 /home/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py --num_of_tests=2 --start_idx=0 --asm_file_name=out_2021-02-23/asm_test/riscv_loop_test --log_file_name=out_2021-02-23/sim_riscv_loop_test_0.log --target=rv32imc --instr_cnt=10000 --num_of_sub_program=5 --directed_instr_1=riscv_loop_instr,20

I am using the folowing comand to run the script: python3 run.py --test riscv_loop_test --target=rv32imc --steps gen --simulator pyflow --gen_timeout=10000

aneels3 commented 3 years ago

Hi @amnafayyaz-lm Thanks for letting us know about it. Only a few selected tests are available for pyflow as it is in the development phase currently. Please find the supported tests below.

  1. riscv_arithmetic_basic_test
  2. riscv_amo_test (--target rv32imafdc)
  3. riscv_floating_point_arithmetic_test
  4. riscv_b_ext_test
  1. riscv_int_numeric_corner_stream
  2. riscv_jal_instr
  3. riscv_amo_instr_stream

Hope this helps.

Regards, Anil

amnafayyaz28 commented 3 years ago

Yes it was helpful. Thank you.

fPecc commented 2 years ago

Hi,

Are there more tests supported by pyflow now?