Converting string to HDL path

In reply to dipling:

The problem with accessing a signal using a string name is that the signal needs to be preserved; it cannot be optimized away. For example, it might be easier to evaluate the signal only when it gets used as part of another expression instead of trying to capture every possible intermediate value. The bigger problem is that the majority of users turn off all compiler optimizations with a global switch rather than going through the trouble of selecting just the required signal names.