How to access a changing RTL path?

One possibility is to update your flow to do the below :

  • Compile the RTL alone.
  • Have a script figure out what the new module name is for this compile.
  • Have the script update TB with this new name.
  • Compile TB.
  • Run simulations.

That said, if these modules are coming from a HLS tool that randomizes the names on each run, your DE could add a wrapper whose name doesn’t change, and bring out signals required for TB to this wrapper. That way the TB doesn’t have to change.

As suggested earlier, it’s best to disalbe this random postfix if possible and have a static name.