Emmi Wyttenbach
03/01/2023, 7:03 PMTim Edwards
03/01/2023, 7:29 PM.subckt sky130_fd_pr__diode_pw2nd_05v5_4P6XRR a_n100_n100# a_n202_n202#
D0 a_n202_n202# a_n100_n100# sky130_fd_pr__diode_pw2nd_05v5 pj=4e+06 area=1e+12
.ends
which matches xschem. I have also updated magic recently (version 8.3.367) to stop printing "p" after every area dimension and "u" after every length dimension and then multiplying by 1e12 and 1e6, respectively, to make the units come out right in the netlist, so the output should look more normal now.
If any of that explanation needs more elaboration, please let me know.Larry Harris
03/02/2023, 1:21 AMEmmi Wyttenbach
03/02/2023, 8:14 PMTim Edwards
03/02/2023, 10:24 PM# NOTE: SkyWater diode models have bizarre units requiring bizarre scaling
device pdiode sky130_fd_pr__diode_pd2nw_05v5 *pdiode nwell a=area*1E12 p=pj*1E6
device pdiode sky130_fd_pr__diode_pd2nw_05v5_lvt *pdiodelvt nwell a=area*1E12 p=pj*1E6
device pdiode sky130_fd_pr__diode_pd2nw_05v5_hvt *pdiodehvt nwell a=area*1E12 p=pj*1E6
device pdiode sky130_fd_pr__diode_pd2nw_11v0 *mvpdiode nwell a=area*1E12 p=pj*1E6
device ndiode sky130_fd_pr__diode_pw2nd_05v5 *ndiode pwell,space/w a=area*1E12 p=pj*1E6
device ndiode sky130_fd_pr__diode_pw2nd_05v5_lvt *ndiodelvt pwell,space/w a=area*1E12 p=pj*1E6
device ndiode sky130_fd_pr__diode_pw2nd_05v5_nvt *nndiode pwell,space/w a=area*1E12 p=pj*1E6
device ndiode sky130_fd_pr__diode_pw2nd_11v0 *mvndiode pwell,space/w a=area*1E12 p=pj*1E6
If you have those lines in your tech file, then you'll get the right dimensions in the netlist.Emmi Wyttenbach
03/03/2023, 2:58 AMStefan Schippers
03/04/2023, 10:38 PMTim Edwards
03/05/2023, 3:09 PMStefan Schippers
03/06/2023, 12:13 AMStefan Schippers
03/06/2023, 10:32 AM