Examples of VerilogInstanceElement


Examples of net.sourceforge.veditor.parser.verilog.VerilogOutlineElementFactory.VerilogInstanceElement

        IStructuredSelection elements = (IStructuredSelection) m_Selection;
        if (elements.size() == 1) {
          Object element = elements.getFirstElement();

          if (element instanceof VerilogInstanceElement) {
            VerilogInstanceElement instance = (VerilogInstanceElement) element;
            OutlineDatabase database = getOutlineDatabase();
            if (database != null) {
              OutlineElement module = database.findDefinition(instance);
              if (module != null)
                m_Editor.showElement(module);
View Full Code Here

Examples of net.sourceforge.veditor.parser.verilog.VerilogOutlineElementFactory.VerilogInstanceElement

      OutlineElement[] children = elements[i].getChildren();
      for(int j = 0; j < children.length; j++)
      {
        if (children[j] instanceof VerilogInstanceElement)
        {
          VerilogInstanceElement instance = (VerilogInstanceElement)children[j];
          String[] types = instance.getType().split("#");
          OutlineElement[] element = findTopLevelElements(types[1], true);
          if (element.length == 0)
          {
            IFile found = findFile(m_Project, types[1] + ".v");
            if (found != null)
View Full Code Here

Examples of net.sourceforge.veditor.parser.verilog.VerilogOutlineElementFactory.VerilogInstanceElement

        }
      }
    }
    //if we have an instance, find the module that goes with it
    if (element instanceof VerilogInstanceElement) {
      VerilogInstanceElement instance = (VerilogInstanceElement) element;
      //get the module
      if(m_ModuleList.containsKey(instance.getModuleType())){
        //if the module has instantiations
        VerilogModuleElement moduleElement=m_ModuleList.get(instance.getModuleType());
        for(OutlineElement child : moduleElement.getChildren()){
          if(child instanceof VerilogInstanceElement){
            VerilogInstanceElement childInstance = (VerilogInstanceElement) child;
            //guard against recursive definitions
            if(childInstance.getModuleType().equals(moduleElement.getName()) ==false){
              return true;
            }
          }
        }
      }
View Full Code Here

Examples of net.sourceforge.veditor.parser.verilog.VerilogOutlineElementFactory.VerilogInstanceElement

    //if we have a module, it must have instatiations
    if (parentElement instanceof VerilogModuleElement) {
      VerilogModuleElement moduleElement = (VerilogModuleElement) parentElement;
      for(OutlineElement child : moduleElement.getChildren()){
        if(child instanceof VerilogInstanceElement){
          VerilogInstanceElement instance = (VerilogInstanceElement) child;
          children.add(instance);
        }
      }
    }
    //if we have an instance, find the module that goes with it
    if (parentElement instanceof VerilogInstanceElement) {
      VerilogInstanceElement instance = (VerilogInstanceElement) parentElement;
      //get the module
      if(m_ModuleList.containsKey(instance.getModuleType())){
        //if the module has instantiations
        VerilogModuleElement moduleElement=m_ModuleList.get(instance.getModuleType());
        for(OutlineElement child : moduleElement.getChildren()){
          if(child instanceof VerilogInstanceElement){
            VerilogInstanceElement childInstance = (VerilogInstanceElement) child;
            children.add(childInstance);
          }
        }
      }
    }
View Full Code Here

Examples of net.sourceforge.veditor.parser.verilog.VerilogOutlineElementFactory.VerilogInstanceElement

    // are instatiated in another module
    topLevelModules.putAll(m_ModuleList);
    for(VerilogModuleElement module : topLevelModules.values().toArray(new VerilogModuleElement[0])){
      for(OutlineElement child: module.getChildren()){
        if (child instanceof VerilogInstanceElement) {
          VerilogInstanceElement instance = (VerilogInstanceElement) child;
          if(topLevelModules.containsKey(instance.getModuleType())){
            topLevelModules.remove(instance.getModuleType());
          }
        }
      }
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.