Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[BUG] Result of riscv_unaligned_load_store_test is inconsistent #2645

Open
1 task done
valentinThomazic opened this issue Dec 3, 2024 · 1 comment
Open
1 task done
Labels
Type:Bug For bugs in the RTL, Documentation, Verification environment or Tool and Build system

Comments

@valentinThomazic
Copy link
Contributor

valentinThomazic commented Dec 3, 2024

Is there an existing CVA6 bug for this?

  • I have searched the existing bug issues

Bug Description

The result of riscv_unaligned_load_store_test is inconsistent smoke-gen test is inconsistent.
The test completes in all cases but the result will sometimes be a failure.

The issue seems to be on master branch (currently b5b316a) and can be seen on the dashboard report of this PR : #2641 (see pipeline 48858 on the CVA6 dashboard) which has no reason to impact the results of tests executions.

I also saw that on latest (ff70060) pipeline of #2528 (pipeline 48965 on the CVA6 dashboard) though it is harder to say for sure since this PR changes RTL. Running the test another time gives a successful result.

@valentinThomazic valentinThomazic added the Type:Bug For bugs in the RTL, Documentation, Verification environment or Tool and Build system label Dec 3, 2024
@valentinThomazic valentinThomazic changed the title [BUG] Result of riscv_unaligned_load_store_test smoke-gen test is inconsistent [BUG] Result of riscv_unaligned_load_store_test is inconsistent Dec 3, 2024
@valentinThomazic
Copy link
Contributor Author

valentinThomazic commented Dec 3, 2024

It seems the issue happens between the end of test and the end of simulation.
The tests finishes successfully and the correct instructions are executed but this error sometimes occurs:

UVM_INFO @ 672.000 ns : uvmt_cva6_firmware_test.sv(137) uvm_test_top [TEST] Started RUN
"/gitlab-runner/runner_riscv-public/builds/yD5zmwgi3/7/riscv-ci/cva6/core/scoreboard.sv", 346: uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.issue_stage_i.i_scoreboard.genblk11[1].genblk1[2].unnamed$$_0: started at 48512000ps failed at 48512000ps
	Offending '(trans_id_i[1] != trans_id_i[2])'
Fatal: "/gitlab-runner/runner_riscv-public/builds/yD5zmwgi3/7/riscv-ci/cva6/core/scoreboard.sv", 346: uvmt_cva6_tb.cva6_dut_wrap.cva6_tb_wrapper_i.i_cva6.issue_stage_i.i_scoreboard.genblk11[1].genblk1[2].unnamed$$_0: at time 48512000 ps
Two or more functional units are retiring instructions with the same transaction id!
$finish called from file "/gitlab-runner/runner_riscv-public/builds/yD5zmwgi3/7/riscv-ci/cva6/core/scoreboard.sv", line 346.

uvmt_cva6_tb.end_of_test: *** Test Summary ***

    FFFFFFFF   AAAAAA   IIIIII  LL        EEEEEEEE  DDDDDDD       
    FF        AA    AA    II    LL        EE        DD    DD      
    FF        AA    AA    II    LL        EE        DD    DD      
    FFFFF     AAAAAAAA    II    LL        EEEEE     DD    DD      
    FF        AA    AA    II    LL        EE        DD    DD      
    FF        AA    AA    II    LL        EE        DD    DD      
    FF        AA    AA  IIIIII  LLLLLLLL  EEEEEEEE  DDDDDDD       
    ----------------------------------------------------------
                   SIMULATION FAILED - ABORTED              
    ----------------------------------------------------------
$finish at simulation time 48512.000 ns

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type:Bug For bugs in the RTL, Documentation, Verification environment or Tool and Build system
Projects
None yet
Development

No branches or pull requests

1 participant