Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Simulate the posit testsuite Always waiting #4

Open
wwwuxy opened this issue Oct 30, 2024 · 15 comments
Open

Simulate the posit testsuite Always waiting #4

wwwuxy opened this issue Oct 30, 2024 · 15 comments

Comments

@wwwuxy
Copy link

wwwuxy commented Oct 30, 2024

when i run ‘LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6 make sim elf-bin=$RISCV/riscv64-unknown-elf/bin/pk target-options=posit_testsuite_llvm.elf batch-mode=1’,I have been stuck in “# Time: 250 ns while running the test Iteration: 2 Instances:/ariane_tb/dut/i'ariane/iucva6/ex_stage_i/pa_gen/pa_top_i/pa_gen/genblk3/genblk3/paul64_st_i/PositEncoder " Here,and operated for 12 hours,i think is something wrong. my chip is R7-9700X.
Snipaste_2024-10-30_16-39-00

@davidmallasen
Copy link
Collaborator

Try running without batch-mode=1. That way the questasim GUI will open and you can debug better. Check the compiler/compiled code to see if there is a missmatch with the PERCIVAL/Big-PERCIVAL versions. With Big-PERCIVAL, if you are using posit64 you will need to run the posit64_testsuite_llvm instead of posit_testsuite_llvm.

@wwwuxy
Copy link
Author

wwwuxy commented Oct 31, 2024

Can you tell me the relevant configuration(compiler/compiled) requirements ? I couldn't find them in the readme. Thank you very much~ And I successfully ran it on Ubuntu 20.04 before, but now it fails on 22.04. Is there any correlation?

@davidmallasen
Copy link
Collaborator

davidmallasen commented Oct 31, 2024

If it worked before, then the compiler should be the same. RV64 from here: https://github.com/artecs-group/llvm-xposit
Then with Big-PERCIVAL you have either posit32 or posit64. You can select that here:

localparam POSLEN = 64;

For posit64 you have to compile and run posit64_testsuite_llvm and for posit32 you have to compile and run posit32_testsuite_llvm.

Have you tried running without batch-mode=1 and debugged using the questasim GUI?
I am not aware if there have to be any changes when using this in Ubuntu 22.04 instead of 20.04. If you find any, please let me know so I can update in the README.

@wwwuxy
Copy link
Author

wwwuxy commented Nov 5, 2024

thanks,i compile and run posit64_testsuite_llvm,and get this fault, can you give me some suggestions? thank you very much~
!
IMG_7978
Snipaste_2024-11-05_10-44-47

@davidmallasen
Copy link
Collaborator

What was the previous error that you solved?

For this, what version of questasim are you using? Also, you may want to try updating the riscv-dbg subrepo. It doesn't seem to be an issue with the posit part of PERCIVAL.

@wwwuxy
Copy link
Author

wwwuxy commented Nov 5, 2024

Thanks for your reply~ my Questasim version is 23.1.1,the download URL is https://www.intel.com/content/www/us/en/software-kit/825244/intel-quartus-prime-standard-edition-design-software-version-23-1-1-for-linux.html,the previous error is issu #5

@davidmallasen
Copy link
Collaborator

Thanks for opening the other issue, please do that when you encounter a problem and find the solution so I can update the README.

I haven't tried that version of Questasim (I have an older one). I would try updating the riscv-dbg subrepo and meanwhile I ping some of my colleagues to see if they encountered the same issue @albertodbg @MarioInf-UCM

@wwwuxy
Copy link
Author

wwwuxy commented Nov 5, 2024

thanks,I use questasim2021 to run make sim elf-bin=posit64_testsuite_llvm.elf QUESTASIM_FLAGS="-novopt -suppress 12110" batch-mode=1,then meet the same fault, I think the version is no matter

@albertodbg
Copy link

I have not experienced such an error. I am using Questasim 2023.4, but it is Siemens Questasim, not Intel's. BTW, could it be that your license does not allow to run more than 10^7 cycles? I remember in the past that somehting similar happened with the student versions of Modelsim.

@wwwuxy
Copy link
Author

wwwuxy commented Nov 5, 2024

Thanks for your reply, I get license fromhttps://licensing.intel.com/psg/s/sales-signup-evaluationlicenses?language=en_US, In fact, I am a student now,if i run make sim elf-bin=$RISCV/riscv64-unknown-elf/bin/pk target-options=posit64_testsuite_llvm.elf batch-mode=1, it will operated for 12 hours...As the picture of the title shows

@davidmallasen
Copy link
Collaborator

Have you tried updating the riscv-dbg subrepo as I suggested? The error seems to be there, not in PERCIVAL/CVA6

@wwwuxy
Copy link
Author

wwwuxy commented Nov 5, 2024

yean,I updating the riscv-dbg,but meet other 4 faults..
Snipaste_2024-11-05_21-26-18
Snipaste_2024-11-05_21-26-43

@davidmallasen
Copy link
Collaborator

Maybe some more things have to be adapted, I'm not sure about that. For now, we haven't replicated this using our setup. I can point you to a similar issue that occurred some time ago:
openhwgroup/cva6#842
openhwgroup/cva6#800
pulp-platform/riscv-dbg#102

@wwwuxy
Copy link
Author

wwwuxy commented Nov 7, 2024

Thank you for your help~By the way,your work is fantastic~~

@davidmallasen
Copy link
Collaborator

Thanks for your words. Let's see if you can get PERCIVAL up and running!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants