Etch/Chamber.pm

filter: Statementstmt 100% 73 / 73 Branchbran 50.0% 6 / 12 Conditioncond 64.4% 29 / 45 MC/DCmcdc 26.0% 6 / 23 Subroutinesub 100% 19 / 19 Podpod 0.0% 0 / 13 totaltotal 71.8% 133 / 185 CC 29 SCAR 23.2
CC
29
Cov
83%
new
23.4
report
4.0
power_density
2.1
CRAP 10.2
« Etch/Simulation.pm ↑ Summary Etch/Layout.pm »
1 package Physics::Etch::Chamber;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 5 ▶use Carp qw(croak);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 5 our $VERSION = '0.02';
8  
9 5 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 KB => 1.380649e-23, # J/K
11 TORR_PA => 133.322, # Pa per Torr
12 SCCM_TORR_L_S => 0.01270, # 1 sccm ~ 0.0127 Torr.L/s (0 degC)
13 5 };
14  
15 # ===========================================================================
16 # Plasma-etch reactor geometry -> plasma / transport quantities that feed the
17 # etch model (DC self-bias, ion energy, residence time, mean free path).
18 #
19 # Attributes (all optional; sensible defaults for a small CCP-RIE):
20 # reactor_type label (default 'CCP-RIE')
21 # wafer_diameter_mm (default 150)
22 # powered_area_cm2 powered-electrode area (default = wafer area)
23 # grounded_area_cm2 grounded area (default = area_ratio_default * powered)
24 # gap_cm electrode gap (default 3)
25 # volume_l chamber volume (default = powered_area*gap)
26 # pressure_mtorr (default 20)
27 # power_w RF power (default 200)
28 # flow_sccm total gas flow (default 50)
29 # gas / gas_mass_amu / gas_diameter_m / gas_temp_k (default Ar, 300 K)
30 # plasma_potential_v (default 15)
31 # bias_const / area_exponent calibration knobs for the self-bias heuristic
32 # ===========================================================================
33 9 ▶sub new {
Subroutine new: called CC=18 SCAR=31.5
Pod undocumented
34 9 my ( $class, %a ) = @_;
35  
36 9 ▶ my $wafer = $a{wafer_diameter_mm} // 150;
Condition100%2/2
$a{"wafer_diameter_mm"} // 150
l!l
27
MC/DC100%1/1
$a{"wafer_diameter_mm"} // 150
$a{"wafer_diameter_mm"}
Truth table100%2/2
A
A= $a{"wafer_diameter_mm"}
Aresult
11
00
37 9 my $wafer_area = 3.14159265358979 * ( $wafer / 20 )**2; # cm^2 (mm/2/10)
38  
39 9 ▶ my $powered = $a{powered_area_cm2} // $wafer_area;
Condition66%2/3
$a{"powered_area_cm2"} // $wafer_area
l!l&&r!l&&!r
630
MC/DC0%0/2
$a{"powered_area_cm2"} // $wafer_area
$a{"powered_area_cm2"} $wafer_area
Truth table66%2/3
A // B
A= $a{"powered_area_cm2"}B= $wafer_area
ABresult
1X1
011
000
40 my $grounded = $a{grounded_area_cm2}
41 9 ▶ // ( $powered * ( $a{grounded_ratio} // 3 ) );
Condition75%3/4
$a{"grounded_area_cm2"} // $powered * ($a{"grounded_ratio"} // 3)
l!l
45
$a{"grounded_ratio"} // 3
l!l
05
MC/DC100%1/1
$a{"grounded_area_cm2"} // $powered * ($a{"grounded_ratio"} // 3)
$a{"grounded_area_cm2"}
MC/DC0%0/1
$a{"grounded_ratio"} // 3
$a{"grounded_ratio"}
Truth table100%2/2
A
A= $a{"grounded_area_cm2"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"grounded_ratio"}
Aresult
11
00
42 9 ▶ my $gap = $a{gap_cm} // 3;
Condition100%2/2
$a{"gap_cm"} // 3
l!l
18
MC/DC100%1/1
$a{"gap_cm"} // 3
$a{"gap_cm"}
Truth table100%2/2
A
A= $a{"gap_cm"}
Aresult
11
00
43  
44 my $self = bless {
45 reactor_type => $a{reactor_type} // 'CCP-RIE',
46 wafer_diameter_mm => $wafer,
47 wafer_area_cm2 => $wafer_area,
48 powered_area_cm2 => $powered,
49 grounded_area_cm2 => $grounded,
50 gap_cm => $gap,
51 volume_l => $a{volume_l} // ( $powered * $gap / 1000 ),
52 pressure_mtorr => $a{pressure_mtorr} // 20,
53 power_w => $a{power_w} // 200,
54 flow_sccm => $a{flow_sccm} // 50,
55 gas => $a{gas} // 'Ar',
56 gas_mass_amu => $a{gas_mass_amu} // 40,
57 gas_diameter_m => $a{gas_diameter_m} // 3.4e-10,
58 gas_temp_k => $a{gas_temp_k} // 300,
59 plasma_potential_v => $a{plasma_potential_v} // 15,
60 bias_const => $a{bias_const} // 150,
61 9 ▶ area_exponent => $a{area_exponent} // 0.30,
Condition62%15/24
$a{"reactor_type"} // "CCP-RIE"
l!l
09
$a{"volume_l"} // $powered * $gap / 1000
l!l
54
$a{"pressure_mtorr"} // 20
l!l
90
$a{"power_w"} // 200
l!l
54
$a{"flow_sccm"} // 50
l!l
63
$a{"gas"} // "Ar"
l!l
09
$a{"gas_mass_amu"} // 40
l!l
09
$a{"gas_diameter_m"} // "3.4e-10"
l!l
09
$a{"gas_temp_k"} // 300
l!l
09
$a{"plasma_potential_v"} // 15
l!l
09
$a{"bias_const"} // 150
l!l
09
$a{"area_exponent"} // "0.3"
l!l
09
MC/DC0%0/1
$a{"reactor_type"} // "CCP-RIE"
$a{"reactor_type"}
MC/DC100%1/1
$a{"volume_l"} // $powered * $gap / 1000
$a{"volume_l"}
MC/DC0%0/1
$a{"pressure_mtorr"} // 20
$a{"pressure_mtorr"}
MC/DC100%1/1
$a{"power_w"} // 200
$a{"power_w"}
MC/DC100%1/1
$a{"flow_sccm"} // 50
$a{"flow_sccm"}
MC/DC0%0/1
$a{"gas"} // "Ar"
$a{"gas"}
MC/DC0%0/1
$a{"gas_mass_amu"} // 40
$a{"gas_mass_amu"}
MC/DC0%0/1
$a{"gas_diameter_m"} // "3.4e-10"
$a{"gas_diameter_m"}
MC/DC0%0/1
$a{"gas_temp_k"} // 300
$a{"gas_temp_k"}
MC/DC0%0/1
$a{"plasma_potential_v"} // 15
$a{"plasma_potential_v"}
MC/DC0%0/1
$a{"bias_const"} // 150
$a{"bias_const"}
MC/DC0%0/1
$a{"area_exponent"} // "0.3"
$a{"area_exponent"}
Truth table50%1/2
A
A= $a{"reactor_type"}
Aresult
11
00
Truth table100%2/2
A
A= $a{"volume_l"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"pressure_mtorr"}
Aresult
11
00
Truth table100%2/2
A
A= $a{"power_w"}
Aresult
11
00
Truth table100%2/2
A
A= $a{"flow_sccm"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"gas"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"gas_mass_amu"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"gas_diameter_m"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"gas_temp_k"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"plasma_potential_v"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"bias_const"}
Aresult
11
00
Truth table50%1/2
A
A= $a{"area_exponent"}
Aresult
11
00
62 }, $class;
63  
64 9 return $self;
65 }
66  
67 # simple accessors
68 5 for my $attr (
69 qw( reactor_type wafer_diameter_mm wafer_area_cm2 powered_area_cm2
70 grounded_area_cm2 gap_cm volume_l pressure_mtorr power_w flow_sccm
71 gas gas_mass_amu gas_diameter_m gas_temp_k plasma_potential_v )
72 )
73 {
74 5 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
75 75 ▶ *{$attr} = sub {
Subroutine __ANON__: called CC=2 SCAR=7.0
76 3 my ( $self, $v ) = @_;
77 3 ▶ $self->{$attr} = $v if @_ > 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 0 3 3
78 3 return $self->{$attr};
79 75 };
80 }
81  
82 15 ▶sub pressure_torr { $_[0]->{pressure_mtorr} / 1000 }
Subroutine pressure_torr: called CC=1 SCAR=0.0
Pod undocumented
83 8 ▶sub pressure_pa { $_[0]->pressure_torr * TORR_PA }
Subroutine pressure_pa: called CC=1 SCAR=0.0
Pod undocumented
84  
85 # electrode-area asymmetry (>= 1)
86 19 ▶sub area_ratio {
Subroutine area_ratio: called CC=2 SCAR=7.2
Pod undocumented
87 19 my ($self) = @_;
88 return $self->{powered_area_cm2}
89 ? $self->{grounded_area_cm2} / $self->{powered_area_cm2}
90 19 ▶ : 1;
Branch: 1 branch
BranchTrueFalseTotal
$self->{'powered_area_cm2'} ? : 19 0 19
91 }
92  
93 2 ▶sub power_density { $_[0]->{power_w} / ( $_[0]->{powered_area_cm2} || 1 ) } # W/cm^2
Subroutine power_density: called CC=2 SCAR=7.6
Pod undocumented
Condition50%1/2
$_[0]{'powered_area_cm2'} || 1
l!l
20
MC/DC0%0/1
$_[0]{'powered_area_cm2'} || 1
$_[0]{'powered_area_cm2'}
Truth table50%1/2
A
A= $_[0]{'powered_area_cm2'}
Aresult
11
00
94  
95 # gas residence time (s): tau = p*V / throughput
96 7 ▶sub residence_time_s {
Subroutine residence_time_s: called CC=2 SCAR=7.1
Pod undocumented
97 7 my ($self) = @_;
98 7 my $q = $self->{flow_sccm} * SCCM_TORR_L_S; # Torr.L/s
99 7 ▶ return $q > 0 ? $self->pressure_torr * $self->{volume_l} / $q : undef;
Branch: 1 branch
BranchTrueFalseTotal
$q > 0 ? : 7 0 7
100 }
101  
102 # mean free path (meters): lambda = kT / (sqrt(2) * pi * d^2 * p)
103 8 ▶sub mean_free_path_m {
Subroutine mean_free_path_m: called CC=2 SCAR=7.0
Pod undocumented
104 8 my ($self) = @_;
105 8 my $p = $self->pressure_pa;
106 8 ▶ return undef unless $p > 0;
Branch: 1 branch
BranchTrueFalseTotal
unless $p > 0 0 8 8
107 8 my $d = $self->{gas_diameter_m};
108 return KB * $self->{gas_temp_k}
109 8 / ( 1.41421356 * 3.14159265358979 * $d * $d * $p );
110 }
111 2 ▶sub mean_free_path_mm { my $l = $_[0]->mean_free_path_m; defined $l ? $l * 1000 : undef }
Subroutine mean_free_path_mm: called CC=2 SCAR=7.2
Pod undocumented
Branch: 1 branch
BranchTrueFalseTotal
defined $l ? : 2 0 2
112  
113 # Knudsen number over the electrode gap
114 3 ▶sub knudsen {
Subroutine knudsen: called CC=2 SCAR=7.0
Pod undocumented
115 3 my ($self) = @_;
116 3 my $l = $self->mean_free_path_m;
117 3 ▶ return undef unless defined $l;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $l 0 3 3
118 3 return $l / ( $self->{gap_cm} / 100 );
119 }
120  
121 # DC self-bias magnitude (V) -- heuristic, scales with power, asymmetry; falls
122 # with pressure. Calibrated so the defaults give a few hundred volts.
123 16 ▶sub self_bias_v {
Subroutine self_bias_v: called CC=2 SCAR=7.1
Pod undocumented
124 16 my ($self) = @_;
125 16 my $p_term = ( $self->{pressure_mtorr} / 20 )**0.30;
126 return $self->{bias_const}
127 * ( $self->{power_w} / 100 )**0.5
128 * ( $self->area_ratio )**$self->{area_exponent}
129 16 ▶ / ( $p_term || 1 );
Condition50%1/2
$p_term || 1
l!l
160
MC/DC0%0/1
$p_term || 1
$p_term
Truth table50%1/2
A
A= $p_term
Aresult
11
00
130 }
131  
132 # ion energy at the wafer (eV) ~ sheath drop + plasma potential
133 3 ▶sub ion_energy_ev { $_[0]->self_bias_v + $_[0]->{plasma_potential_v} }
Subroutine ion_energy_ev: called CC=1 SCAR=0.0
Pod undocumented
134  
135 # suggested process knobs to hand to a DryEtch
136 2 ▶sub process_conditions {
Subroutine process_conditions: called CC=1 SCAR=0.0
Pod undocumented
137 2 my ($self) = @_;
138 return (
139 pressure => $self->{pressure_mtorr},
140 2 bias => $self->self_bias_v,
141 );
142 }
143  
144 2 ▶sub report {
Subroutine report: called CC=4 SCAR=14.0
Pod undocumented
145 2 my ($self) = @_;
146 2 my @l;
147 2 push @l, '=' x 66;
148 2 push @l, sprintf( 'CHAMBER -- %s', $self->{reactor_type} );
149 2 push @l, '=' x 66;
150 push @l, sprintf( ' Wafer / powered / grounded : %.0f mm / %.0f / %.0f cm^2',
151 $self->{wafer_diameter_mm}, $self->{powered_area_cm2},
152 2 $self->{grounded_area_cm2} );
153 2 push @l, sprintf( ' Area ratio (gnd/pwr) : %.2f', $self->area_ratio );
154 push @l, sprintf( ' Gap / volume : %.1f cm / %.2f L',
155 2 $self->{gap_cm}, $self->{volume_l} );
156 push @l, sprintf( ' Gas / pressure / flow : %s / %g mTorr / %g sccm',
157 2 $self->{gas}, $self->{pressure_mtorr}, $self->{flow_sccm} );
158 push @l, sprintf( ' RF power / power density : %g W / %.2f W/cm^2',
159 2 $self->{power_w}, $self->power_density );
160 2 push @l, ' ' . '-' x 62;
161 2 push @l, sprintf( ' DC self-bias (est.) : %.0f V', $self->self_bias_v );
162 2 push @l, sprintf( ' Ion energy (est.) : %.0f eV', $self->ion_energy_ev );
163 2 ▶ push @l, sprintf( ' Residence time : %.1f ms',
Condition50%1/2
$self->residence_time_s // 0
l!l
20
MC/DC0%0/1
$self->residence_time_s // 0
$self->residence_time_s
Truth table50%1/2
A
A= $self->residence_time_s
Aresult
11
00
164 1000 * ( $self->residence_time_s // 0 ) );
165 2 ▶ push @l, sprintf( ' Mean free path : %.2f mm (Kn = %.2f)',
Condition50%2/4
$self->mean_free_path_mm // 0
l!l
20
$self->knudsen // 0
l!l
20
MC/DC0%0/1
$self->mean_free_path_mm // 0
$self->mean_free_path_mm
MC/DC0%0/1
$self->knudsen // 0
$self->knudsen
Truth table50%1/2
A
A= $self->mean_free_path_mm
Aresult
11
00
Truth table50%1/2
A
A= $self->knudsen
Aresult
11
00
166 $self->mean_free_path_mm // 0, $self->knudsen // 0 );
167 2 push @l, '=' x 66;
168 2 return join( "\n", @l ) . "\n";
169 }
170  
171 5 1;
172  
173 __END__
« Etch/Simulation.pm ↑ Summary Etch/Layout.pm »