leonardt / fault

A Python package for testing hardware (part of the magma ecosystem)
BSD 3-Clause "New" or "Revised" License
41 stars 13 forks source link

Add generic assert_ #198

Closed leonardt closed 4 years ago

leonardt commented 4 years ago

Allows the assertion of generic expressions (rather than just expecting on port values), e.g.

    tester.assert_((tester.circuit.O[0] | tester.circuit.O[1]) == 0b01)