__dfs_path()
authoryu.dongliang <18588496441@163.com>
Tue, 24 Oct 2023 04:48:43 +0000 (12:48 +0800)
committeryu.dongliang <18588496441@163.com>
Tue, 24 Oct 2023 04:48:43 +0000 (12:48 +0800)
ses_step_topo.c

index a247272f7be272fa8730384b744ae2c17a2ed332..3365ac68ce9659cd42f853b018053b6252bbb3b5 100644 (file)
@@ -77,6 +77,7 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __
                        for (j = 0; j < (*ppath)->pins->size; j++) {
                                p         = (*ppath)->pins->data[j];
                                p->pflag  = 1;
+                               p->path   = (uintptr_t)*ppath;
                        }
 
                        *ppath = NULL;
@@ -100,6 +101,7 @@ int __dfs_path(ScfEfunction* f, ScfEcomponent* rc, ScfEpin* rp, scf_vector_t* __
                                        for (k = 0; k < (*ppath)->pins->size; k++) {
                                                p         = (*ppath)->pins->data[k];
                                                p->pflag  = 1;
+                                               p->path   = (uintptr_t)*ppath;
                                        }
                                } else
                                        ses_path_free(*ppath);