https://open-source-silicon.dev logo
#sky130
Title
# sky130
a

Akıner

02/16/2022, 5:48 AM
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

Mitch Bailey

02/16/2022, 6:04 AM
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

Akıner

02/16/2022, 6:13 AM
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

Mitch Bailey

02/16/2022, 6:40 AM
You're working directly with magic data, correct? Not importing GDS, right?
a

Akıner

02/16/2022, 6:44 AM
yes, this is my layout
a

Arman Avetisyan

02/16/2022, 6:48 AM
1. Try newer magic versions. Had same bug
a

Akıner

02/16/2022, 7:00 AM
My magic version is 8.3 revision 266. İs there any newer version than this?
m

Mitch Bailey

02/16/2022, 7:09 AM
@User I've never used it myself, but it looks like there's a
flatten
command in magic. You might try that.
a

Akıner

02/16/2022, 7:12 AM
I tried to use this command but nothing has changed.
a

Arman Avetisyan

02/16/2022, 8:26 AM
You checked why is it outputing "bad devices"?
a

Akıner

02/16/2022, 8:37 AM
I couldn't find extresist log but one of the point of bad devices is here.
m

Mitch Bailey

02/16/2022, 9:10 AM
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

Akıner

02/16/2022, 12:58 PM
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

Juan Andres

07/11/2022, 6:21 AM
Hi, You know, How Can I run a post- layout?
m

Mitch Bailey

07/11/2022, 1:39 PM
j

Juan Andres

07/11/2022, 3:00 PM
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

Mitch Bailey

07/11/2022, 10:32 PM
Can you swamp swap your schem netlist with your extracted netlist? Make sure the pins are in the same order.