Skip to content

VCD do not generated when test fails #46

@hellow554

Description

@hellow554

If any of the checks fails in the simulate body, e.g. c.io.out.expect(1200.U), then it will panic, like so:

chisel3.simulator.PeekPokeAPI$FailedExpectationException: Failed Expectation: Observed value '1232' != 1200. Expectation failed: observed value 1232 != 1200 @[simple32/test/src/ProgramCounterTest.scala 76:22]

but also there will be no generated vcd file.

But especially in a failure case it is very interesting to see why the expect fails.

Is there a way around this, e.g. catching the execption, writing the vcd file and rethrowing it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions