Yusuke Sakemi
02/02/2024, 5:55 AMMitch Bailey
02/02/2024, 12:19 PMADJ
in both netlists.Yusuke Sakemi
02/02/2024, 1:53 PMYusuke Sakemi
02/06/2024, 2:19 AMTim Edwards
02/06/2024, 2:58 AMMitch Bailey
02/06/2024, 3:28 AMzero_opamp
, ADJ
is connected to the second terminal of both M8
and M9
. However, the nfet subckt shown has the gate terminal a_n800_n138#
as the first terminal.Yusuke Sakemi
02/06/2024, 4:02 AMMitch Bailey
02/06/2024, 4:20 AMX0
of sky130_fd_pr__nfet_01v8_lvt_FMHZDY
However, when you use pcells, the pcell subcircuit does not necessarily have the ports in that order.
In subckt sky130_fd_pr__nfet_1v8_lvt_FMHZDY
, the port order is gate, bulk, source, drain.Mitch Bailey
02/06/2024, 4:26 AMflatglob
flattening pcells.
drc off
gds drccheck off
gds flatglob *__nfet*[A-Z]*
gds flatglob *__pfet*[A-Z]*
gds flatten yes
gds read zero_opamp.gds
load zero_opamp
extract no all
extract do aliases
extract do local
extract unique
extract
ext2spice lvs
ext2spice -o zero_opamp.ext.spice zero_opamp.ext
feedback save $zero_opamp-ext2gds.spice.feedback.txt
Yusuke Sakemi
02/06/2024, 5:38 AMYusuke Sakemi
02/07/2024, 2:00 AMMitch Bailey
02/07/2024, 3:06 AM1. Create the gds data and quit magic.
2. Open magic and extract the gds file without saving the cells and quit magic.
Yusuke Sakemi
02/07/2024, 6:35 AM(terminal) magic zero_opamp.mag
drc off
gds drccheck off
gds flatglob *__nfet*[A-Z]*
gds flatglob *__pfet*[A-Z]*
gds flatten yes
gds write zero_opamp.gds
** quit magic without saving cells **
(terminal) magic zero_opamp.mag
gds read zero_opamp.gds
load zero_opamp
extract no all
extract do aliases
extract do local
extract unique
extract
ext2spice lvs
ext2spice -o zero_opamp.ext.spice zero_opamp.ext
feedback save $zero_opamp-ext2gds.spice.feedback.txt
** quit magic without saving cells**
Mitch Bailey
02/07/2024, 10:31 AM(terminal) magic zero_opamp.mag
gds write zero_opamp.gds
** quit magic without saving cells **
(terminal) magic zero_opamp.mag
drc off
gds drccheck off
gds flatglob *__nfet*[A-Z]*
gds flatglob *__pfet*[A-Z]*
gds flatten yes
gds read zero_opamp.gds
load zero_opamp
extract no all
extract do aliases
extract do local
extract unique
extract
ext2spice lvs
ext2spice -o zero_opamp.ext.spice zero_opamp.ext
feedback save $zero_opamp-ext2gds.spice.feedback.txt
** quit magic without saving cells**
Yusuke Sakemi
02/08/2024, 7:04 AM