1. A method for migrating an electronic circuit from a source technology to a target technology, the method comprising: accepting a source circuit that operates in the source technology, the source circuit comprising source components interconnected at nodes in accordance with a source topology; determining source voltages at the nodes of the source circuit; transforming the source voltages to produce respective target voltages suitable for the target technology; separating the source circuit into sub-circuits, each sub-circuit comprising one or more of the source components; in each sub-circuit individually, converting the one or more of the source components to one or more respective target components in the target technology responsively to the target voltages, so as to produce a respective migrated sub-circuit; and reconnecting the migrated sub-circuits to produce a target circuit in the target technology, the target circuit having a target topology identical to the source topology.