Hi, I tried to run a post-layout (with RC extracti...
# sky130
a
Hi, I tried to run a post-layout (with RC extraction) simulation but I got an error due to mosfets that has w = 0 l = 0 in the netlist. How can I resolve this problem?
m
You have 4 mos fets extracted - XXM1, XXM2, X0, X1. Is that what you're expecting? Maybe flatten
sky130_fd_pr__pfet_01v8_7P3MC
and
sky130_fd_pr__nfet_01v8_BXYDM4
first.
a
Thanks for the reply, but there are two mosfets in my layout. Why are four mosfet extrated by magic? And how I flatten this cells?
m
You're working directly with magic data, correct? Not importing GDS, right?
a
yes, this is my layout
a
1. Try newer magic versions. Had same bug
a
My magic version is 8.3 revision 266. İs there any newer version than this?
m
@User I've never used it myself, but it looks like there's a
flatten
command in magic. You might try that.
a
I tried to use this command but nothing has changed.
a
You checked why is it outputing "bad devices"?
a
I couldn't find extresist log but one of the point of bad devices is here.
m
How about selecting the subcell with
s
and then in the command window
what
to make sure just the cell is selected
select flat
to select all the layers in the subcell
copy left 0
to copy to the current cell
select clear
to clear the selection reselect the subcell in the layout window with
s
what
in the command window to be sure
delete
to delete the subcell. magic creates devices as you paint them, so you shouldn't be able to see poly over diffusion. Maybe that's where the bad device is being detected. In the future, maybe try
dump <cell>
when placing primitives.
a
Thanks @User , these solved my problems. I just added the "select area" command. How about selecting the subcell with 
s
 and then in the command window
what
 to make sure just the cell is selected
select flat
 to select all the layers in the subcell
select area
copy left 0
 to copy to the current cell
select clear
 to clear the selection reselect the subcell in the layout window with 
s
what
 in the command window to be sure
delete
 to delete the subcell.
🎉 1
j
Hi, You know, How Can I run a post- layout?
m
j
Yes I have that file and a file of Netlist of xschem and I ran LVS and that was correct but i don't know how can I simulate a post layout
m
Can you swamp swap your schem netlist with your extracted netlist? Make sure the pins are in the same order.