Esempio n. 1
0
    def _build_passthru_objects(self, graph_edges_dict):
        """Add any passthrus as they are needed.
        These are vertice names in the graph dictionary which are not covered 
        by inst or port names.
        """
        
        passthru_id = 0
        for node in graph_edges_dict.keys():
            if not self.drawing_object_dict.get( node, None ):
                if node == '_iport':
                    continue

                if DEBUG: print "Found a new thang..", node
                drawobj = Drawing_Object( name=node + '_' + str(passthru_id),
                                          parent=None, 
                                          label=node,
                                          obj_type='passthru',
                                        )                

                drawobj.lhs_ports.append( '_i' )
                drawobj.rhs_ports.append( '_o' )
                drawobj.startpt = Point(0,0)
                drawobj.endpt   = Point(20,0)

                self.drawing_object_dict[node] = drawobj

                passthru_id += 1
Esempio n. 2
0
    def _build_passthru_objects(self, graph_edges_dict):
        """Add any passthrus as they are needed.
        These are vertice names in the graph dictionary which are not covered 
        by inst or port names.
        """

        passthru_id = 0
        for node in graph_edges_dict.keys():
            if not self.drawing_object_dict.get(node, None):
                if node == '_iport':
                    continue

                if DEBUG: print "Found a new thang..", node
                drawobj = Drawing_Object(
                    name=node + '_' + str(passthru_id),
                    parent=None,
                    label=node,
                    obj_type='passthru',
                )

                drawobj.lhs_ports.append('_i')
                drawobj.rhs_ports.append('_o')
                drawobj.startpt = Point(0, 0)
                drawobj.endpt = Point(20, 0)

                self.drawing_object_dict[node] = drawobj

                passthru_id += 1
Esempio n. 3
0
    def run(self):
        trace_id = 0
        self._determine_glue_points()

        for conn1,conn2 in self.connections:
            name = 'conn_%d' %(trace_id)
            drawobj = Drawing_Object( name=name,
                                      parent=None,
                                      label=conn1,
                                      obj_type='conn' )
            
            drawobj.startpt  = self.glue_points[conn1]
            drawobj.endpt    = self.glue_points[conn2]
            self.obj_dict[name] = drawobj
            trace_id += 1
Esempio n. 4
0
    def run(self):
        trace_id = 0
        self._determine_glue_points()

        for conn1, conn2 in self.connections:
            name = 'conn_%d' % (trace_id)
            drawobj = Drawing_Object(name=name,
                                     parent=None,
                                     label=conn1,
                                     obj_type='conn')

            drawobj.startpt = self.glue_points[conn1]
            drawobj.endpt = self.glue_points[conn2]
            self.obj_dict[name] = drawobj
            trace_id += 1