<@U016EM8L91B> How can I get magic to extract a ce...
# verification-be
m
@Tim Edwards How can I get magic to extract a cell from a mag view with no devices as a black box? I'm trying to run LVS on a caravel design that has no devices in
user_project_wrapper
and want to check the connections. Currently, magic optimizes out empty cells when netlisting.
t
It should be sufficient to edit the cell view and run the command
property LEFview true
. That forces the cell to be considered abstract, and it won't be extracted except as a black box.
m
Thanks Tim, I'm running magic in batch mode, so I'll try to figure out how to add that to the script. Thinking about setting an
ABSTRACT_CELLS
environment variable and using this script.
Copy code
foreach cell $::env(MAGIC_GDS_FLATTEN_CELLS) {
        gds flatglob $cell
}
# list cells to be flattened
puts "Flattening [gds flatglob]"
gds flatten yes
gds read $::env(CURRENT_GDS)

foreach cell $::env(ABSTRACT_CELLS) {
        load $cell -dereference
        property LEFview true
}
load $::env(TOP) -dereference
cd $::env(RUN_DIR)
extract do local
extract no capacitance
extract no coupling
extract unique
extract

ext2spice lvs
ext2spice -o $::env(TOP).gds.spice $::env(TOP).ext
feedback save $::env(TOP)-ext2gds.spice.feedback.txt
Do you see any problems?
t
Other than my general dislike for environment variables, no, I don't see any problems with it.
😄 1