Skip to content

Modify and save database after simulation #783

Closed Answered by krabo0om
krabo0om asked this question in Support (Q&A)
Discussion options

You must be logged in to vote

You probably have the USE_VPD Make variable set. Without it, it would generate FSDB by default.

I tried all the combinations :)

Is there a reason why the hook could be executed more than once? Is this due to your own flow, or some Hammer issue?

I think it is due to my flow. Maybe it was also just an artifact of me testing the method repeatedly. In any case, the current workaround is good enough for now.

For completeness, I put the code here if anybody experiences the same problem:

import pathlib

def vpd2vcd_gz(x: HammerTool) -> bool:
    try:
      waveforms = x.get_setting("sim.outputs.waveforms")
    except KeyError:
        return True
    for waveform in waveforms:
        waveform 

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@krabo0om
Comment options

@harrisonliew
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by harrisonliew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants