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

Ability To Access Ports By Variable Names #158

Open David-Durst opened 5 years ago

David-Durst commented 5 years ago

This is a low priority feature request.

The names of circuit instances are often quite different and unintelligble relative to the names of the variables that the instances are assigned to.

For example, the name of a counter instance is Counter2_Mod4CE_inst0. However, this circuit is assigned to a python variable called outer_counter.

I would like to be able to write tester.print("outer counter: %d\n", tester.circuit.outer_counter) rather than tester.print("outer counter: %d\n", tester.circuit.Counter2_Mod4CE_inst0).