code: def _asQuartusTcl(self, buff: List[str], version: str, intfName: str,
                        component: "Component", packager: "IpPackager",
                        thisIf: 'Interface', intfMapOrName: Dict[str, Union[Dict, str]]):
          
  
          if isinstance(intfMapOrName, str):
              self.quartus_add_interface_port(
                  buff, intfName, thisIf, intfMapOrName, packager)
          else:
              for thisIf_ in thisIf._interfaces:
                  v = intfMapOrName[thisIf_._name]
                  self._asQuartusTcl(buff, version, intfName, component,
                                     packager, thisIf_, v)
docs: Add interface to Quartus tcl by specified name map
  
          :param buff: line buffer for output
          :param version: Quartus version
          :param intfName: name of top interface
          :param component: component object from ipcore generator
          :param packager: instance of IpPackager which is packagin current design
          :param thisIf: interface to add into Quartus TCL
          :param intfMapOrName: Quartus name string for this interface
              or dictionary to map subinterfaces