code: def saveHdlFiles(self, srcDir):
          
          path = os.path.join(srcDir, self.name)
          try:
              os.makedirs(path)
          except OSError:
              # wipe if exists
              shutil.rmtree(path)
              os.makedirs(path)
  
          files = self.hdlFiles
          self.hdlFiles = self.toHdlConversion(self.top, self.name, path)
          for srcF in files:
              dst = os.path.join(path,
                                 os.path.relpath(srcF, srcDir).replace('../', '')
                                 )
              os.makedirs(os.path.dirname(dst), exist_ok=True)
              shutil.copy(srcF, dst)
              self.hdlFiles.append(dst)
docs: :param srcDir: dir name where dir with HDL files should be stored