private String showComponent(Component comp) { String ret = comp.toString(); for (Port port : comp.getPorts()) { String value = port.getValue() == null ? "null" : port.getValue().debug(); if (port == comp.getGoPort() || port == comp.getClockPort() || port == comp.getResetPort()) ; else ret = ret + " p:" + value; /* * if (port == getGoPort()) ret = ret + " go:" + val; else if (port * == getClockPort()) ret = ret + " ck:" + val; else if (port == * getResetPort()) ret = ret + " rs:" + val; else ret = ret + " p:" * + val; */ } for (Exit exit : comp.getExits()) { for (Bus bus : exit.getBuses()) { String value = bus.getValue() == null ? "null" : bus.getValue().debug(); if (bus == exit.getDoneBus()) // ret = ret + " done:" + val; ; else ret = ret + " data:" + value; } } return ret; }
/** Graphs the incoming connections to a component's ports. */ protected void graphEdges(Component component, Bus src) { ComponentNode componentNode = (ComponentNode) nodeMap.get(component); graphEdge(componentNode, component.getGoPort()); for (org.xronos.openforge.lim.Port port : component.getDataPorts()) { if (port.getBus() == src) { graphEdge(componentNode, port); } } }