Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Add support for SAIF dump #306

Open
hansemandse opened this issue Mar 5, 2021 · 3 comments
Open

Add support for SAIF dump #306

hansemandse opened this issue Mar 5, 2021 · 3 comments

Comments

@hansemandse
Copy link

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.

@chick
Copy link
Collaborator

chick commented Mar 5, 2021

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.

@hansemandse
Copy link
Author

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 :)

@ekiwi
Copy link
Collaborator

ekiwi commented Mar 10, 2021

We have a feature request (from me) for FST support for treadle which would allow us to get FST from both treadle and Verilator: #101

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

No branches or pull requests

3 participants