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 abs, max, min expressions #283

Closed leonardt closed 4 years ago

leonardt commented 4 years ago

Needed for floating point tests (off by one errors mean we should be checking abs(value - expected) <= 1

leonardt commented 4 years ago

@Kuree this doesn't add support for max/min in ncsim since that requires the macro implementation, let me know if you need this and I will add it, should be simple.