treadle icon indicating copy to clipboard operation
treadle copied to clipboard

Add support for SAIF dump

Open hansemandse opened this issue 3 years ago • 3 comments

Hi guys,

Just an idea; have you considered adding support for dumping SAIF results? For some rather lengthy testers2 tests, VCD dumps become huge, so being able to retrieve SAIF results for power estimation instead would be great.

hansemandse avatar Mar 05 '21 14:03 hansemandse

This has come up before, seems like an ok idea. SAIF spec, just for reference Chiseltest relies on the backend to write the VCD, I don't think verilator will write SAIF, yet it is typically the backend used for larger or longer running tests. Treadle could be pretty easily modified to add SAIF output but since it is slower and typically used on smaller designs I don't know whether it would be worth it. There is a branch of Treadle (streaming-vcd) that has a streaming VCD option which can speed up the VCD writing, the current behavior is to save up all changes in memory and then write it all out at the end. Streaming should be faster for long runs. The version that branch is based on is a bit old but it should be pretty easy to port forward.

chick avatar Mar 05 '21 17:03 chick

I see. As you mention, I am indeed using Verilator for my larger tests, but I typically get memory warnings near the end of long tests if I don't manually allow SBT to use more than its default amount. I can't seem to find any mention of SAIF in the Verilator doc, and I don't suppose it makes sense to include it in Treadle only. For now, I will have a look at the streaming-vcd version instead.

Thanks for helping! Feel free to close this, unless you want to keep it open :)

hansemandse avatar Mar 06 '21 20:03 hansemandse

We have a feature request (from me) for FST support for treadle which would allow us to get FST from both treadle and Verilator: https://github.com/chipsalliance/treadle/issues/101

ekiwi avatar Mar 10 '21 16:03 ekiwi