Etch/DryEtch.pm

filter: Statementstmt 100% 74 / 74 Branchbran 75.0% 30 / 40 Conditioncond 66.6% 8 / 12 MC/DCmcdc 42.8% 3 / 7 Subroutinesub 100% 19 / 19 Podpod 9.0% 1 / 11 totaltotal 82.8% 135 / 163 CC 25 SCAR 17.2
CC
25
Cov
89%
_conditions_lines
12.0
new
9.0
_ratio
4.0
CRAP 5.6
« Etch/Layout.pm ↑ Summary Etch.pm »
1 package Physics::Etch::DryEtch;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use parent -norequire, 'Physics::Etch::Process';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use Physics::Etch::Process (); # for KB_EV constant
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 our $VERSION = '0.02';
10  
11 # Dry (plasma / RIE / ion) etch: directional, tunable anisotropy.
12 #
13 # Extra attributes:
14 # rate nm/min at nominal conditions (required)
15 # power RF power, W (optional) power_nom (default 200)
16 # pressure mTorr (optional) pressure_nom (default 20)
17 # bias DC self-bias, V ~ ion energy (opt) bias_nom (default 200)
18 # anisotropy nominal A, 0..1 (default 0.90)
19 # loading rate multiplier for exposed-area loading (default 1.0)
20 # Ea, ref_temp thermal term for hot dry etches (default Ea=0 -> no T effect)
21 #
22 # Rate model (each factor -> 1.0 when its knob is not supplied):
23 # power_factor = (power/power_nom) ^ 0.8 (ion + radical flux)
24 # pressure_factor = (pressure/pressure_nom)^ 0.3 (radical density)
25 # bias_factor = (bias/bias_nom) ^ 0.5 (ion-energy enhancement)
26 # Rv = rate * power_factor * pressure_factor * bias_factor * loading * arrhenius
27 #
28 # Anisotropy (higher pressure -> more lateral; higher bias -> more vertical):
29 # A_eff = 1 - (1 - A_nom) * (pressure/pressure_nom) * (bias_nom/bias)
30 # lateral = Rv * (1 - A_eff)
31  
32 9 ▶sub new {
Subroutine new: called CC=9 SCAR=22.0
Pod undocumented
33 9 my ( $class, %args ) = @_;
34  
35 9 my $self = $class->SUPER::new(%args);
36  
37 9 $self->{rate} = $args{rate};
38 9 ▶ die "$class: 'rate' (nm/min) is required\n" unless defined $self->{rate};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->{"rate"} 0 9 9
39  
40 9 $self->{power} = $args{power};
41 9 ▶ $self->{power_nom} = defined $args{power_nom} ? $args{power_nom} : 200;
Branch: 1 branch
BranchTrueFalseTotal
defined $args{'power_nom'} ? : 4 5 9
42 9 $self->{pressure} = $args{pressure};
43 9 ▶ $self->{pressure_nom} = defined $args{pressure_nom} ? $args{pressure_nom} : 20;
Branch: 1 branch
BranchTrueFalseTotal
defined $args{'pressure_nom'} ? : 4 5 9
44 9 $self->{bias} = $args{bias};
45 9 ▶ $self->{bias_nom} = defined $args{bias_nom} ? $args{bias_nom} : 200;
Branch: 1 branch
BranchTrueFalseTotal
defined $args{'bias_nom'} ? : 4 5 9
46 $self->{anisotropy_nom} =
47 9 ▶ defined $args{anisotropy} ? $args{anisotropy} : 0.90;
Branch: 1 branch
BranchTrueFalseTotal
defined $args{'anisotropy'} ? : 5 4 9
48 9 ▶ $self->{loading} = defined $args{loading} ? $args{loading} : 1.00;
Branch: 1 branch
BranchTrueFalseTotal
defined $args{'loading'} ? : 0 9 9
49 9 ▶ $self->{Ea} = defined $args{Ea} ? $args{Ea} : 0.0;
Branch: 1 branch
BranchTrueFalseTotal
defined $args{'Ea'} ? : 2 7 9
50 9 ▶ $self->{ref_temp} = defined $args{ref_temp} ? $args{ref_temp} : 25;
Branch: 1 branch
BranchTrueFalseTotal
defined $args{'ref_temp'} ? : 2 7 9
51  
52 9 return $self;
53 }
54  
55 3 ▶sub process_type { 'Dry' }
Subroutine process_type: called CC=1 SCAR=0.0
Pod undocumented
56 9 ▶sub default_process_key { 'dry' }
Subroutine default_process_key: called CC=1 SCAR=0.0
Pod undocumented
57  
58 4 for my $attr (
59 qw( rate power power_nom pressure pressure_nom bias bias_nom loading Ea ref_temp )
60 )
61 {
62 4 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
63 40 ▶ *{$attr} = sub {
Subroutine __ANON__: called CC=2 SCAR=6.9
64 9 my ( $self, $v ) = @_;
65 9 ▶ $self->{$attr} = $v if @_ > 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ > 1 5 4 9
66 9 return $self->{$attr};
67 40 };
68 }
69  
70 122 ▶sub _ratio {
Subroutine _ratio: called CC=4 SCAR=13.9
71 122 my ( $num, $den, $exp ) = @_;
72 122 ▶ return 1 unless defined $num && defined $den && $den > 0;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $num and defined $den and $den > 0 108 14 122
Condition83%5/6
defined $num and defined $den and $den > 0
!ll&&!rl&&r
108014
defined $num and defined $den
!ll&&!rl&&r
99914
MC/DC66%2/3
defined $num and defined $den and $den > 0
defined $num defined $den $den > 0
Truth table75%3/4
A and B and C
A= defined $numB= defined $denC= $den > 0
ABCresult
0XX0
10X0
1100
1111
73 14 return ( $num / $den )**$exp;
74 }
75  
76 34 ▶sub power_factor { _ratio( $_[0]->{power}, $_[0]->{power_nom}, 0.8 ) }
Subroutine power_factor: called CC=1 SCAR=0.0
Pod undocumented
77 33 ▶sub pressure_factor { _ratio( $_[0]->{pressure}, $_[0]->{pressure_nom}, 0.3 ) }
Subroutine pressure_factor: called CC=1 SCAR=0.0
Pod undocumented
78 33 ▶sub bias_factor { _ratio( $_[0]->{bias}, $_[0]->{bias_nom}, 0.5 ) }
Subroutine bias_factor: called CC=1 SCAR=0.0
Pod undocumented
79  
80 33 ▶sub arrhenius_factor {
Subroutine arrhenius_factor: called CC=3 SCAR=11.0
Pod undocumented
81 33 my ($self) = @_;
82 33 ▶ return 1 unless $self->{Ea} && defined $self->{temperature};
Branch: 1 branch
BranchTrueFalseTotal
unless $self->{"Ea"} and defined $self->{"temperature"} 31 2 33
Condition66%2/3
$self->{"Ea"} and defined $self->{"temperature"}
!ll&&!rl&&r
3102
MC/DC50%1/2
$self->{"Ea"} and defined $self->{"temperature"}
$self->{"Ea"} defined $self->{"temperature"}
Truth table66%2/3
A and B
A= $self->{"Ea"}B= defined $self->{"temperature"}
ABresult
0X0
100
111
83 2 my $kb = Physics::Etch::Process::KB_EV();
84 2 my $t_ref = $self->{ref_temp} + 273.15;
85 2 my $t = $self->{temperature} + 273.15;
86 2 return exp( ( $self->{Ea} / $kb ) * ( 1 / $t_ref - 1 / $t ) );
87 }
88  
89 33 ▶sub vertical_rate {
Subroutine vertical_rate: called CC=1 SCAR=0.0
Pod undocumented
90 33 my ($self) = @_;
91 return $self->{rate}
92 * $self->power_factor
93 * $self->pressure_factor
94 * $self->bias_factor
95 * $self->{loading}
96 33 * $self->arrhenius_factor;
97 }
98  
99 11 ▶sub effective_anisotropy {
Subroutine effective_anisotropy: called CC=3 SCAR=11.0
Pod undocumented
100 11 my ($self) = @_;
101 11 my $p_ratio = _ratio( $self->{pressure}, $self->{pressure_nom}, 1 );
102 11 my $b_ratio = _ratio( $self->{bias_nom}, $self->{bias}, 1 ); # inverse
103 11 my $a = 1 - ( 1 - $self->{anisotropy_nom} ) * $p_ratio * $b_ratio;
104 11 ▶ $a = 0 if $a < 0;
Branch: 1 branch
BranchTrueFalseTotal
if $a < 0 1 10 11
105 11 ▶ $a = 1 if $a > 1;
Branch: 1 branch
BranchTrueFalseTotal
if $a > 1 0 11 11
106 11 return $a;
107 }
108  
109 6 ▶sub lateral_rate {
Subroutine lateral_rate: called CC=1 SCAR=0.0
Pod undocumented
110 6 my ($self) = @_;
111 6 return $self->vertical_rate * ( 1 - $self->effective_anisotropy );
112 }
113  
114 # report the model's own anisotropy via the process-condition-aware value
115 5 ▶sub anisotropy { $_[0]->effective_anisotropy }
Subroutine anisotropy: called CC=1 SCAR=0.0
Pod documented
116  
117 1 ▶sub _conditions_lines {
Subroutine _conditions_lines: called CC=9 SCAR=24.8
118 1 my ($self) = @_;
119 1 my @l;
120 my @knobs;
121 1 ▶ push @knobs, sprintf( 'power %g W', $self->{power} ) if defined $self->{power};
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"power"} 0 1 1
122 push @knobs, sprintf( 'pressure %g mTorr', $self->{pressure} )
123 1 ▶ if defined $self->{pressure};
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"pressure"} 0 1 1
124 1 ▶ push @knobs, sprintf( 'bias %g V', $self->{bias} ) if defined $self->{bias};
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"bias"} 0 1 1
125 1 ▶ push @l, ' Plasma : ' . join( ', ', @knobs ) if @knobs;
Branch: 1 branch
BranchTrueFalseTotal
if @knobs 0 1 1
126 push @l, sprintf( ' Ion energy : ~%g eV (from DC bias)', $self->{bias} )
127 1 ▶ if defined $self->{bias};
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->{"bias"} 0 1 1
128 push @l, sprintf( ' Loading : %.2f x', $self->{loading} )
129 1 ▶ if $self->{loading} != 1;
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"loading"} != 1 0 1 1
130 push @l, sprintf( ' Temperature : %.1f degC (Ea %.2f eV)',
131 $self->{temperature}, $self->{Ea} )
132 1 ▶ if $self->{Ea} && defined $self->{temperature};
Branch: 1 branch
BranchTrueFalseTotal
if $self->{"Ea"} and defined $self->{"temperature"} 0 1 1
Condition33%1/3
$self->{"Ea"} and defined $self->{"temperature"}
!ll&&!rl&&r
100
MC/DC0%0/2
$self->{"Ea"} and defined $self->{"temperature"}
$self->{"Ea"} defined $self->{"temperature"}
Truth table33%1/3
A and B
A= $self->{"Ea"}B= defined $self->{"temperature"}
ABresult
0X0
100
111
133 1 return @l;
134 }
135  
136 4 1;
137  
138 __END__
« Etch/Layout.pm ↑ Summary Etch.pm »