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 support for poke/expect slice #197

Closed leonardt closed 4 years ago

leonardt commented 4 years ago

Adds the ability to poke/expect on a slice of bits, e.g.

    tester.circuit.I[1:] = 0b01
    tester.eval()
    tester.circuit.O[1:].expect(0b01)