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 call statements #297

Closed leonardt closed 3 years ago

leonardt commented 3 years ago

Separates make_call into two functions: one for an expression and one for a statement.

Reworks the backend call logic to treat it as an expression rather than a value (also adds a test that uses it in an expression).

Call statements are useful for making calls to a model that don't return a value (e.g. just manipulates the state)