openpiton icon indicating copy to clipboard operation
openpiton copied to clipboard

OpenPiton test cases

Open Haijai opened this issue 7 months ago • 1 comments

Hi,

I've been working with OpenPiton simulations over the past few months using Ariane as the core. While the documentation mentions around 9000 test cases, I’ve had trouble locating the test cases, I came across c files related to AWS, bootrom, boards, or u-boot, which don’t appear relevant to simulation. Could you point me to where these 9000 test cases are located, and roughly how many are actually intended for simulation of the openpiton system?

Thanks In Advance...!

Haijai avatar Jul 11 '25 06:07 Haijai

Hi there,

The test files are under piton/verif/diag/. Note that the term "test cases" in the original material referred to the combination of test files (several thousand, I don't recall the exact number) and simulation models they were regularly run on. Further, those tests are for the SPARC version of the design, so they won't be readily applicable if you're running with Ariane or another RISC-V core. For RISC-V, we rely on riscv-tests and can simply run riscv binaries built for an appropriate bare metal environment. If you are using the latest openpiton-dev, the test files themselves will be in submodules arranged by ISA which will need to be initialised.

Thanks, Jon

Jbalkind avatar Jul 14 '25 17:07 Jbalkind