1 Reply Latest reply on Sep 6, 2016 3:54 PM by matthew_grange

    PROBLEM ON Layout Hierarchy EXCTRACTION

    luciano.artuso

        Hi to all,

       

      I'm trying to use this procedure, present on calbr_drv_user.pdf manual, on my gds file, but I received this error message

       

      "can not find channel named ............. "

       

      What does it means?

       

        many thanks in advance and regards

            Luciano

       

      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       

      Example 5 - Using a Recursive Procedure to Write a Layout Hierarchy

      Calibre® DESIGNrev™ Reference Manual, v2015.3 43

      • Recursive procedures.

      • Local versus global variables.

      Procedure

      1. Copy the following script into a text file named hier_dump.tcl. Refer to the Results for

      explanations regarding the comments, procedures, and variables used in this example.

      ##############################################################

      # PROC: dump_hier

      # L = layout object name

      # F = file to dump hierarchy to

      # C = cell to begin dumping from, "" means use topcell

      # Indent = string to format the hierarchy

      ##############################################################

      proc dump_hier { L F {C ""} {Indent ""} } {

      if {$C == ""} {

      set C [$L topcell]

      }

      puts $F "$Indent --> $C"

      append Indent " "

      foreach child [$L children $C] {

      dump_hier $L $F $child $Indent

      }

      }

      set fileID [open dump_hier.txt w]

      #

      # Step 1: open the layout

      #

      set layout [layout create std_.gds]

      #

      # Step 2: write the hierarchy to the file

      #

      dump_hier $layout $fileID

      #

      # Step 3: Close (and save the file)

      #

      close $fileID

      2. Invoke Calibre DESIGNrev:

      calibredrv hier_dump.tcl

      3. View the file you have created:

      more dump_hier.txt