( ESNUG 241 Item 6 ) ---------------------------------------------- [6/26/96]
From: celiac@teleport.com (Celia Clause)
Subject: Celia's Script To Find Clock & Data Pins Coming From The Same Logic
Hi, John! Here's a script I recently wrote to find clock and data pins
that originate from the same logic:
CELL_LIST = {}
all_registers -edge
cells = dc_shell_status
foreach(latch,cells){
data_pin = latch + "/D"
clock_pin = latch + "/C"
all_fanin -to data_pin -flat -start
d_pins = dc_shell_status
all_fanin -to clock_pin -flat -start
clk_pins = dc_shell_status
match = false
foreach(dip,d_pins) {
foreach(ckp,clk_pins) {
if (ckp==dip){
match = true
}
}
}
if(match==true) {
CELL_LIST = CELL_LIST + latch
}
}
echo CELL_LIST
I figured that someone else might find that this would come in handy...
- Celia Clause
RadiSys
|
|