Open tuppi-ovh opened 2 years ago
Same here
python run.py --target rv64imafdc --iss spike --simulator pyflow --testlist $PWD//target/rv64imafdc/testlist.yaml
Wed, 13 Jul 2022 17:54:14 INFO Creating output directory: out_2022-07-13
Wed, 13 Jul 2022 17:54:14 INFO Processing regression test list : /home/divya/riscv-dv//target/rv64imafdc/testlist.yaml, test: all
Wed, 13 Jul 2022 17:54:14 INFO Processing regression test list : /home/divya/riscv-dv/target/rv64imc/testlist.yaml, test: all
Wed, 13 Jul 2022 17:54:14 INFO Processing regression test list : /home/divya/riscv-dv/target/rv32imc/testlist.yaml, test: all
Wed, 13 Jul 2022 17:54:14 INFO Processing regression test list : /home/divya/riscv-dv/yaml/base_testlist.yaml, test: all
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_arithmetic_basic_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_rand_instr_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_jump_stress_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_loop_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_rand_jump_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_mmu_stress_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_no_fence_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_illegal_instr_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_ebreak_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_ebreak_debug_mode_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_full_interrupt_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_unaligned_load_store_test, iterations:1
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_non_compressed_instr_test, iterations:1
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_hint_instr_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_pmp_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_machine_mode_rand_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_privileged_mode_rand_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_invalid_csr_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_sfence_exception_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_amo_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_floating_point_arithmetic_test, iterations:1
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_floating_point_rand_test, iterations:1
Wed, 13 Jul 2022 17:54:14 INFO Found matched tests: riscv_floating_point_mmu_stress_test, iterations:2
Wed, 13 Jul 2022 17:54:14 INFO Processing simulator setup file : /home/divya/riscv-dv/yaml/simulator.yaml
Wed, 13 Jul 2022 17:54:14 INFO Found matching simulator: pyflow
Wed, 13 Jul 2022 17:54:14 INFO Building RISC-V instruction generator
Wed, 13 Jul 2022 17:54:14 INFO Running RISC-V instruction generator
Wed, 13 Jul 2022 17:54:14 INFO Generating 2 riscv_arithmetic_basic_test
Wed, 13 Jul 2022 17:54:14 INFO Running riscv_arithmetic_basic_test with 1 batches
Wed, 13 Jul 2022 17:54:14 INFO Running riscv_arithmetic_basic_test, batch 1/1, test_cnt:2
Wed, 13 Jul 2022 17:55:37 INFO Generating 2 riscv_rand_instr_test
Wed, 13 Jul 2022 17:55:37 INFO Running riscv_rand_instr_test with 1 batches
Wed, 13 Jul 2022 17:55:37 INFO Running riscv_rand_instr_test, batch 1/1, test_cnt:2
Wed, 13 Jul 2022 18:15:37 ERROR Timeout[1200s]: python3 /home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py --num_of_tests=2 --start_idx=0 --asm_file_name=out_2022-07-13/asm_test/riscv_rand_instr_test --log_file_name=out_2022-07-13/sim_riscv_rand_instr_test_0.log --target=rv64imafdc --gen_test=riscv_instr_base_test --seed=1570394483 --instr_cnt=10000 --num_of_sub_program=5 --directed_instr_0=riscv_load_store_rand_instr_stream,4 --directed_instr_1=riscv_loop_instr,4 --directed_instr_2=riscv_hazard_instr_stream,4 --directed_instr_3=riscv_load_store_hazard_instr_stream,4 --directed_instr_4=riscv_multi_page_load_store_instr_stream,4 --directed_instr_5=riscv_mem_region_stress_test,4 --directed_instr_6=riscv_jal_instr,4
Wed, 13 Jul 2022 18:15:37 INFO Generating 2 riscv_jump_stress_test
Wed, 13 Jul 2022 18:15:37 INFO Running riscv_jump_stress_test with 1 batches
Wed, 13 Jul 2022 18:15:37 INFO Running riscv_jump_stress_test, batch 1/1, test_cnt:2
Wed, 13 Jul 2022 18:20:22 INFO Traceback (most recent call last):
File "/home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py", line 44, in run_phase
self._run_phase(num)
File "/home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py", line 71, in _run_phase
self.asm.gen_program()
File "pygen/pygen_src/riscv_asm_program_gen.py", line 115, in gen_program
sub_program_name, cfg.num_of_sub_program)
File "pygen/pygen_src/riscv_asm_program_gen.py", line 232, in gen_callstack
self.callstack_gen.init(num_sub_program + 1)
File "/home/divya/.pyenv/versions/py37/lib/python3.7/site-packages/vsc/rand_obj.py", line 90, in __getattribute__
ret = object.__getattribute__(self, a)
AttributeError: 'riscv_asm_program_gen' object has no attribute 'callstack_gen'
Traceback (most recent call last):
File "/home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py", line 44, in run_phase
self._run_phase(num)
File "/home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py", line 71, in _run_phase
self.asm.gen_program()
File "pygen/pygen_src/riscv_asm_program_gen.py", line 115, in gen_program
sub_program_name, cfg.num_of_sub_program)
File "pygen/pygen_src/riscv_asm_program_gen.py", line 232, in gen_callstack
self.callstack_gen.init(num_sub_program + 1)
File "/home/divya/.pyenv/versions/py37/lib/python3.7/site-packages/vsc/rand_obj.py", line 90, in __getattribute__
ret = object.__getattribute__(self, a)
AttributeError: 'riscv_asm_program_gen' object has no attribute 'callstack_gen'
Traceback (most recent call last):
File "/home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py", line 88, in <module>
riscv_base_test_ins.run()
File "/home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py", line 40, in run
raise Exception("Test-generation jobs failed")
Exception: Test-generation jobs failed
Wed, 13 Jul 2022 18:20:22 ERROR ERROR return code: True/1, cmd: python3 /home/divya/riscv-dv/pygen/pygen_src/test/riscv_instr_base_test.py --num_of_tests=2 --start_idx=0 --asm_file_name=out_2022-07-13/asm_test/riscv_jump_stress_test --log_file_name=out_2022-07-13/sim_riscv_jump_stress_test_0.log --target=rv64imafdc --gen_test=riscv_instr_base_test --seed=1367358632 --instr_cnt=5000 --num_of_sub_program=5 --directed_instr_1=riscv_jal_instr,20
Same happened to me.
I've managed to reproduce the issue and am looking into possible fixes
same problem
sample problem still exist on master branch.
same problem still unfixed
The command to execute:
python3 run.py --test=riscv_rand_instr_test --iss=spike --simulator=pyflow
The traceback of the error is below: