( ESNUG 266 Item 1 ) -------------------------------------------- [9/18/97]

Subject: ( ESNUG 265 #6 )  Highlight Cells In Design_Analyzer From Scripts

> Presented with a list of cell names, how can you highlight the objects in
> the schematic of design_analyzer FROM the command window? ...  There does
> not appear to be a command for the command window such as
>
>  highlight find(cell, cell_name1)  or  highlight cell_name_list
>
> If such a command existed then it would be very easy to write a script
> to process a cell list.  ...  It seems to me that this link between the
> command window and the schematic graphics is missing.  Has anybody out
> there got a neat solution to this?


From: Brian Arnold <bka@hpesbka.fc.hp.com>

John,

Here is a script I wrote a while back that answers this question.  

  if (find (port endpoint)) {
    foreach (source, find("pin","*/CK")){
    highlight_path -from source -no_auto_cycle endpoint
    }
    foreach (source, find("port")){
    highlight_path -from source -no_auto_cycle endpoint
    }
  } else {
  echo "please define endpoint as an output port on this design"
  }


Change the structure as applicable as the command he is after is
highlight_path -no_auto_cycle.  For example, one can specify an input pin
and an output pin for  the same cell and that cell will be highlighted.

  - Brian Arnold
    Hewlett Packard, ETL

         ----    ----    ----    ----    ----    ----   ----

From: rnair@BayNetworks.COM (Rajesh Nair)

John,

This ain't so neat but seems to do the job (it worked OK for some simple
cases that I tried). 

  cell_name = "U216"     /* Enter cell name here */
  pin_names = cell_name + "/*"   /* denotes all pins of cell */
  filter find(pin, pin_names)"@pin_direction == in" /* find input pins */
  input_pins = dc_shell_status
  filter find(pin, pin_names)"@pin_direction == out" /* find output pins */
  output_pin = dc_shell_status
  highlight_path -from input_pins output_pin   /* highlight path from 
                                                    i/p to o/p */

The idea here is to use the highlight_path command in DC and use it to
highlight the path from the input to the output of the desired cell.  This
makes DC highlight the cell for you.

  - Rajesh Nair
    Bay Networks



 Sign up for the DeepChip newsletter.
Email
 Read what EDA tool users really think.


Feedback About Wiretaps ESNUGs SIGN UP! Downloads Trip Reports Advertise

"Relax. This is a discussion. Anything said here is just one engineer's opinion. Email in your dissenting letter and it'll be published, too."
This Web Site Is Modified Every 2-3 Days
Copyright 1991-2024 John Cooley.  All Rights Reserved.
| Contact John Cooley | Webmaster | Legal | Feedback Form |

   !!!     "It's not a BUG,
  /o o\  /  it's a FEATURE!"
 (  >  )
  \ - / 
  _] [_     (jcooley 1991)