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

Support supplying conditional expressions (predicates) to actions #104

Open leonardt opened 5 years ago

leonardt commented 5 years ago

This would be a good first step towards a full-blown monitor interface. The small, but useful example is processing valid signals, where data should only be written out to file when valid is high.

Kuree commented 5 years ago

Does that also cover necessary loop controlling to implement JTAG or AXI-LITE driver? These driver interface usually uses some loop state control such as "while this signal is high" or "while this is signal is low".

leonardt commented 5 years ago

I think we can use the same logic. Basically, we can start with the concept of a conditional expression that can be used to predicate actions or serve as a while loop condition.