| 1 | package Physics::Etch::Process; | ||||||||||||||||||||||||||||||||||||||||||
| 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 | ▶ | use Physics::Etch::Material; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 8 | 5 | ▶ | use Physics::Etch::Etchant; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||||||||||||||||
| 10 | 5 | our $VERSION = '0.02'; | |||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||
| 12 | # Boltzmann constant in eV/K (used by Arrhenius scaling in subclasses). | ||||||||||||||||||||||||||||||||||||||||||
| 13 | 5 | ▶ | use constant KB_EV => 8.617333262e-5; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||||||||||||||||
| 15 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 16 | # Construction | ||||||||||||||||||||||||||||||||||||||||||
| 17 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 18 | # | ||||||||||||||||||||||||||||||||||||||||||
| 19 | # Shared attributes handled here: | ||||||||||||||||||||||||||||||||||||||||||
| 20 | # target Material (required) - the film being etched | ||||||||||||||||||||||||||||||||||||||||||
| 21 | # etchant Etchant (required) | ||||||||||||||||||||||||||||||||||||||||||
| 22 | # thickness nm - film thickness (also -> target) | ||||||||||||||||||||||||||||||||||||||||||
| 23 | # feature_cd nm - mask opening / line width (profile) | ||||||||||||||||||||||||||||||||||||||||||
| 24 | # mask Material - masking layer (optional) | ||||||||||||||||||||||||||||||||||||||||||
| 25 | # mask_thickness nm - defaults to mask->thickness | ||||||||||||||||||||||||||||||||||||||||||
| 26 | # substrate Material - layer under the film (optional) | ||||||||||||||||||||||||||||||||||||||||||
| 27 | # temperature degC | ||||||||||||||||||||||||||||||||||||||||||
| 28 | # time min (optional explicit etch time) | ||||||||||||||||||||||||||||||||||||||||||
| 29 | # overetch fraction (default 0.20) | ||||||||||||||||||||||||||||||||||||||||||
| 30 | # uniformity fraction, +/- (default 0) | ||||||||||||||||||||||||||||||||||||||||||
| 31 | # sel_mask selectivity target:mask (optional) | ||||||||||||||||||||||||||||||||||||||||||
| 32 | # sel_substrate selectivity target:substrate (optional) | ||||||||||||||||||||||||||||||||||||||||||
| 33 | |||||||||||||||||||||||||||||||||||||||||||
| 34 | 17 | ▶ | sub new { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: called CC=8 SCAR=20.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 35 | 17 | my ( $class, %args ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 36 | 17 | my $self = bless {}, $class; | |||||||||||||||||||||||||||||||||||||||||
| 37 | |||||||||||||||||||||||||||||||||||||||||||
| 38 | $self->{target} = $self->_as_material( $args{target} ) | ||||||||||||||||||||||||||||||||||||||||||
| 39 | 17 | ▶ | // croak "$class: 'target' material is required"; | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$self->_as_material($args{"target"}) // croak("${class}: 'target' material is required")
MC/DC0%0/1
$self->_as_material($args{"target"}) // croak("${class}: 'target' material is required")
$self->_as_material($args{"target"})
Truth table50%1/2
A
A= $self->_as_material($args{"target"})
| |||||||||||||||||||||||||||||||||||||||||||
| 40 | 17 | ▶ | $self->{etchant} = $self->_as_etchant( $args{etchant}, $self->default_process_key ) | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$self->_as_etchant($args{"etchant"}, $self->default_process_key) // croak("${class}: 'etchant' is required")
MC/DC0%0/1
$self->_as_etchant($args{"etchant"}, $self->default_process_key) // croak("${class}: 'etchant' is required")
$self->_as_etchant($args{"etchant"}, $self->default_process_key)
Truth table50%1/2
A
A= $self->_as_etchant($args{"etchant"}, $self->default_process_key)
| |||||||||||||||||||||||||||||||||||||||||||
| 41 | // croak "$class: 'etchant' is required"; | ||||||||||||||||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||||||||||||||||
| 43 | # thickness convenience: push into the target material | ||||||||||||||||||||||||||||||||||||||||||
| 44 | 17 | ▶ | if ( defined $args{thickness} ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 45 | 10 | $self->{target}->thickness( $args{thickness} ); | |||||||||||||||||||||||||||||||||||||||||
| 46 | } | ||||||||||||||||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||||||||||||||||
| 48 | 17 | $self->{feature_cd} = $args{feature_cd}; | |||||||||||||||||||||||||||||||||||||||||
| 49 | 17 | $self->{mask} = $self->_as_material( $args{mask} ); | |||||||||||||||||||||||||||||||||||||||||
| 50 | 17 | $self->{substrate} = $self->_as_material( $args{substrate} ); | |||||||||||||||||||||||||||||||||||||||||
| 51 | $self->{mask_thickness} = defined $args{mask_thickness} | ||||||||||||||||||||||||||||||||||||||||||
| 52 | ? $args{mask_thickness} | ||||||||||||||||||||||||||||||||||||||||||
| 53 | 17 | ▶ | : ( $self->{mask} ? $self->{mask}->thickness : undef ); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||||||
| 55 | 17 | $self->{temperature} = $args{temperature}; | |||||||||||||||||||||||||||||||||||||||||
| 56 | 17 | $self->{time} = $args{time}; | |||||||||||||||||||||||||||||||||||||||||
| 57 | 17 | ▶ | $self->{overetch} = defined $args{overetch} ? $args{overetch} : 0.20; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 58 | 17 | ▶ | $self->{uniformity} = defined $args{uniformity} ? $args{uniformity} : 0.0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 59 | 17 | $self->{sel_mask} = $args{sel_mask}; | |||||||||||||||||||||||||||||||||||||||||
| 60 | 17 | $self->{sel_substrate} = $args{sel_substrate}; | |||||||||||||||||||||||||||||||||||||||||
| 61 | |||||||||||||||||||||||||||||||||||||||||||
| 62 | 17 | return $self; | |||||||||||||||||||||||||||||||||||||||||
| 63 | } | ||||||||||||||||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||||||||||||||||
| 65 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 66 | # Accessors | ||||||||||||||||||||||||||||||||||||||||||
| 67 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 68 | 5 | for my $attr ( | |||||||||||||||||||||||||||||||||||||||||
| 69 | qw( target etchant feature_cd mask substrate mask_thickness | ||||||||||||||||||||||||||||||||||||||||||
| 70 | temperature overetch uniformity sel_mask sel_substrate ) | ||||||||||||||||||||||||||||||||||||||||||
| 71 | ) | ||||||||||||||||||||||||||||||||||||||||||
| 72 | { | ||||||||||||||||||||||||||||||||||||||||||
| 73 | 5 | ▶ | no strict 'refs'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 74 | 55 | ▶ | *{$attr} = sub { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.0
| |||||||||||||||||||||||||||||||||||||||||||
| 75 | 25 | my ( $self, $v ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 76 | 25 | ▶ | $self->{$attr} = $v if @_ > 1; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 77 | 25 | return $self->{$attr}; | |||||||||||||||||||||||||||||||||||||||||
| 78 | 55 | }; | |||||||||||||||||||||||||||||||||||||||||
| 79 | } | ||||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||
| 81 | 27 | ▶ | sub thickness { $_[0]->{target}->thickness } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
thickness: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 82 | |||||||||||||||||||||||||||||||||||||||||||
| 83 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 84 | # Abstract hooks - subclasses MUST implement | ||||||||||||||||||||||||||||||||||||||||||
| 85 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 86 | 0 | ▶ | sub process_type { croak 'process_type() must be implemented by subclass' } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
process_type: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 87 | 0 | ▶ | sub default_process_key { 'wet' } # 'wet' | 'dry' | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
default_process_key: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 88 | 0 | ▶ | sub vertical_rate { croak 'vertical_rate() must be implemented by subclass' } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
vertical_rate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 89 | 0 | ▶ | sub lateral_rate { croak 'lateral_rate() must be implemented by subclass' } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
lateral_rate: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 90 | 0 | ▶ | sub _conditions_lines { return () } # subclass adds recipe knobs | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_conditions_lines: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||
| 91 | |||||||||||||||||||||||||||||||||||||||||||
| 92 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 93 | # Kinetics / anisotropy | ||||||||||||||||||||||||||||||||||||||||||
| 94 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 95 | 3 | ▶ | sub anisotropy { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
anisotropy: called CC=4 SCAR=14.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 96 | 3 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 97 | 3 | my $v = $self->vertical_rate; | |||||||||||||||||||||||||||||||||||||||||
| 98 | 3 | ▶ | return 0 if !$v; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 99 | 3 | my $a = 1 - $self->lateral_rate / $v; | |||||||||||||||||||||||||||||||||||||||||
| 100 | 3 | ▶ | $a = 0 if $a < 0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 101 | 3 | ▶ | $a = 1 if $a > 1; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 102 | 3 | return $a; | |||||||||||||||||||||||||||||||||||||||||
| 103 | } | ||||||||||||||||||||||||||||||||||||||||||
| 104 | |||||||||||||||||||||||||||||||||||||||||||
| 105 | # time (min) to remove the full film thickness | ||||||||||||||||||||||||||||||||||||||||||
| 106 | 18 | ▶ | sub time_to_clear { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
time_to_clear: called CC=3 SCAR=11.8
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 107 | 18 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 108 | 18 | my $h = $self->thickness; | |||||||||||||||||||||||||||||||||||||||||
| 109 | 18 | my $v = $self->vertical_rate; | |||||||||||||||||||||||||||||||||||||||||
| 110 | 18 | ▶ | return undef unless defined $h && $v; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $h and $v
MC/DC0%0/2
defined $h and $v
defined $h
$v
Truth table33%1/3
A and B
A= defined $hB= $v
| |||||||||||||||||||||||||||||||||||||||||||
| 111 | 18 | return $h / $v; | |||||||||||||||||||||||||||||||||||||||||
| 112 | } | ||||||||||||||||||||||||||||||||||||||||||
| 113 | |||||||||||||||||||||||||||||||||||||||||||
| 114 | # actual etch time used: explicit if given, else clear-time * (1+overetch) | ||||||||||||||||||||||||||||||||||||||||||
| 115 | 9 | ▶ | sub etch_time { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
etch_time: called CC=3 SCAR=11.3
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 116 | 9 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 117 | 9 | ▶ | return $self->{time} if defined $self->{time}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 118 | 9 | my $tc = $self->time_to_clear; | |||||||||||||||||||||||||||||||||||||||||
| 119 | 9 | ▶ | return undef unless defined $tc; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 120 | 9 | return $tc * ( 1 + $self->{overetch} ); | |||||||||||||||||||||||||||||||||||||||||
| 121 | } | ||||||||||||||||||||||||||||||||||||||||||
| 122 | |||||||||||||||||||||||||||||||||||||||||||
| 123 | 5 | ▶ | sub etch_depth { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
etch_depth: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 124 | 5 | my ( $self, $t ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 125 | 5 | ▶ | $t = $self->etch_time unless defined $t; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 126 | 5 | return $self->vertical_rate * $t; | |||||||||||||||||||||||||||||||||||||||||
| 127 | } | ||||||||||||||||||||||||||||||||||||||||||
| 128 | |||||||||||||||||||||||||||||||||||||||||||
| 129 | # lateral penetration under the mask at the film surface (per side) | ||||||||||||||||||||||||||||||||||||||||||
| 130 | 3 | ▶ | sub undercut { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
undercut: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 131 | 3 | my ( $self, $t ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 132 | 3 | ▶ | $t = $self->etch_time unless defined $t; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 133 | 3 | return $self->lateral_rate * $t; | |||||||||||||||||||||||||||||||||||||||||
| 134 | } | ||||||||||||||||||||||||||||||||||||||||||
| 135 | |||||||||||||||||||||||||||||||||||||||||||
| 136 | 0 | ▶ | sub is_cleared { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
is_cleared: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 137 | 0 | my ( $self, $t ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 138 | 0 | my $h = $self->thickness; | |||||||||||||||||||||||||||||||||||||||||
| 139 | 0 | ▶ | return undef unless defined $h; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 140 | 0 | ▶ | return $self->etch_depth($t) >= $h ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 141 | } | ||||||||||||||||||||||||||||||||||||||||||
| 142 | |||||||||||||||||||||||||||||||||||||||||||
| 143 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 144 | # Profile geometry | ||||||||||||||||||||||||||||||||||||||||||
| 145 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 146 | 2 | ▶ | sub profile { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
profile: called CC=10 SCAR=24.6
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 147 | 2 | my ( $self, $t ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 148 | 2 | ▶ | $t = $self->etch_time unless defined $t; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 149 | 2 | ▶ | croak 'profile() needs an etch time (set thickness/overetch or time)' | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 150 | unless defined $t; | ||||||||||||||||||||||||||||||||||||||||||
| 151 | |||||||||||||||||||||||||||||||||||||||||||
| 152 | 2 | my $h = $self->thickness; | |||||||||||||||||||||||||||||||||||||||||
| 153 | 2 | my $depth = $self->etch_depth($t); | |||||||||||||||||||||||||||||||||||||||||
| 154 | 2 | ▶ | my $film_d = defined $h && $depth > $h ? $h : $depth; # capped at film | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $h and $depth > $h
MC/DC0%0/2
defined $h and $depth > $h
defined $h
$depth > $h
Truth table33%1/3
A and B
A= defined $hB= $depth > $h
| |||||||||||||||||||||||||||||||||||||||||||
| 155 | 2 | my $under = $self->undercut($t); | |||||||||||||||||||||||||||||||||||||||||
| 156 | 2 | my $w = $self->feature_cd; | |||||||||||||||||||||||||||||||||||||||||
| 157 | |||||||||||||||||||||||||||||||||||||||||||
| 158 | 2 | ▶ | my %p = ( | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||
| 159 | time => $t, | ||||||||||||||||||||||||||||||||||||||||||
| 160 | etch_depth => $depth, | ||||||||||||||||||||||||||||||||||||||||||
| 161 | film_depth => $film_d, | ||||||||||||||||||||||||||||||||||||||||||
| 162 | undercut => $under, | ||||||||||||||||||||||||||||||||||||||||||
| 163 | anisotropy => $self->anisotropy, | ||||||||||||||||||||||||||||||||||||||||||
| 164 | cleared => ( defined $h ? ( $depth >= $h ? 1 : 0 ) : undef ), | ||||||||||||||||||||||||||||||||||||||||||
| 165 | ); | ||||||||||||||||||||||||||||||||||||||||||
| 166 | |||||||||||||||||||||||||||||||||||||||||||
| 167 | 2 | ▶ | if ( defined $w ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 168 | 2 | my $top = $w + 2 * $under; | |||||||||||||||||||||||||||||||||||||||||
| 169 | 2 | ▶ | my $bot = $w + 2 * ( $under > $film_d ? $under - $film_d : 0 ); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 170 | # atan2(depth, undercut): -> 90 deg (vertical) as undercut -> 0 | ||||||||||||||||||||||||||||||||||||||||||
| 171 | 2 | my $angle = _deg( atan2( $film_d, $under ) ); | |||||||||||||||||||||||||||||||||||||||||
| 172 | 2 | $p{feature_cd} = $w; | |||||||||||||||||||||||||||||||||||||||||
| 173 | 2 | $p{top_width} = $top; | |||||||||||||||||||||||||||||||||||||||||
| 174 | 2 | $p{bottom_width} = $bot; | |||||||||||||||||||||||||||||||||||||||||
| 175 | 2 | $p{etch_bias} = 2 * $under; # total CD gain | |||||||||||||||||||||||||||||||||||||||||
| 176 | 2 | $p{sidewall_angle} = $angle; # degrees from horizontal | |||||||||||||||||||||||||||||||||||||||||
| 177 | 2 | ▶ | $p{aspect_ratio} = $w > 0 ? $film_d / $w : undef; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 178 | } | ||||||||||||||||||||||||||||||||||||||||||
| 179 | |||||||||||||||||||||||||||||||||||||||||||
| 180 | 2 | return \%p; | |||||||||||||||||||||||||||||||||||||||||
| 181 | } | ||||||||||||||||||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||||||||||||||||
| 183 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 184 | # Selectivity, mask survival, substrate over-etch | ||||||||||||||||||||||||||||||||||||||||||
| 185 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 186 | 8 | ▶ | sub mask_etch_rate { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
mask_etch_rate: called CC=3 SCAR=12.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 187 | 8 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 188 | 8 | my $s = $self->{sel_mask}; | |||||||||||||||||||||||||||||||||||||||||
| 189 | 8 | ▶ | return undef unless defined $s && $s > 0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $s and $s > 0
MC/DC0%0/2
defined $s and $s > 0
defined $s
$s > 0
Truth table33%1/3
A and B
A= defined $sB= $s > 0
| |||||||||||||||||||||||||||||||||||||||||||
| 190 | 8 | return $self->vertical_rate / $s; | |||||||||||||||||||||||||||||||||||||||||
| 191 | } | ||||||||||||||||||||||||||||||||||||||||||
| 192 | |||||||||||||||||||||||||||||||||||||||||||
| 193 | 5 | ▶ | sub mask_loss { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
mask_loss: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 194 | 5 | my ( $self, $t ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 195 | 5 | ▶ | $t = $self->etch_time unless defined $t; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 196 | 5 | my $r = $self->mask_etch_rate; | |||||||||||||||||||||||||||||||||||||||||
| 197 | 5 | ▶ | return undef unless defined $r; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 198 | 5 | return $r * $t; | |||||||||||||||||||||||||||||||||||||||||
| 199 | } | ||||||||||||||||||||||||||||||||||||||||||
| 200 | |||||||||||||||||||||||||||||||||||||||||||
| 201 | 3 | ▶ | sub mask_survives { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
mask_survives: called CC=4 SCAR=14.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 202 | 3 | my ( $self, $t ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 203 | 3 | my $loss = $self->mask_loss($t); | |||||||||||||||||||||||||||||||||||||||||
| 204 | 3 | my $mt = $self->{mask_thickness}; | |||||||||||||||||||||||||||||||||||||||||
| 205 | 3 | ▶ | return undef unless defined $loss && defined $mt; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $loss and defined $mt
MC/DC50%1/2
defined $loss and defined $mt
defined $loss
defined $mt
Truth table66%2/3
A and B
A= defined $lossB= defined $mt
| |||||||||||||||||||||||||||||||||||||||||||
| 206 | 1 | ▶ | return $loss < $mt ? 1 : 0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 207 | } | ||||||||||||||||||||||||||||||||||||||||||
| 208 | |||||||||||||||||||||||||||||||||||||||||||
| 209 | 3 | ▶ | sub substrate_etch_rate { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
substrate_etch_rate: called CC=3 SCAR=12.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 210 | 3 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 211 | 3 | my $s = $self->{sel_substrate}; | |||||||||||||||||||||||||||||||||||||||||
| 212 | 3 | ▶ | return undef unless defined $s && $s > 0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $s and $s > 0
MC/DC0%0/2
defined $s and $s > 0
defined $s
$s > 0
Truth table33%1/3
A and B
A= defined $sB= $s > 0
| |||||||||||||||||||||||||||||||||||||||||||
| 213 | 3 | return $self->vertical_rate / $s; | |||||||||||||||||||||||||||||||||||||||||
| 214 | } | ||||||||||||||||||||||||||||||||||||||||||
| 215 | |||||||||||||||||||||||||||||||||||||||||||
| 216 | # how far the etch cuts into the substrate during over-etch | ||||||||||||||||||||||||||||||||||||||||||
| 217 | 3 | ▶ | sub substrate_overetch { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
substrate_overetch: called CC=5 SCAR=16.8
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 218 | 3 | my ( $self, $t ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 219 | 3 | ▶ | $t = $self->etch_time unless defined $t; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 220 | 3 | my $tc = $self->time_to_clear; | |||||||||||||||||||||||||||||||||||||||||
| 221 | 3 | my $r = $self->substrate_etch_rate; | |||||||||||||||||||||||||||||||||||||||||
| 222 | 3 | ▶ | return undef unless defined $tc && defined $r; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $tc and defined $r
MC/DC0%0/2
defined $tc and defined $r
defined $tc
defined $r
Truth table33%1/3
A and B
A= defined $tcB= defined $r
| |||||||||||||||||||||||||||||||||||||||||||
| 223 | 3 | my $ot = $t - $tc; | |||||||||||||||||||||||||||||||||||||||||
| 224 | 3 | ▶ | return $ot > 0 ? $r * $ot : 0; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 225 | } | ||||||||||||||||||||||||||||||||||||||||||
| 226 | |||||||||||||||||||||||||||||||||||||||||||
| 227 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 228 | # Across-wafer uniformity | ||||||||||||||||||||||||||||||||||||||||||
| 229 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 230 | 0 | ▶ | sub uniformity_report { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
uniformity_report: not called CC=5 SCAR=34.0
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 231 | 0 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 232 | 0 | ▶ | my $u = $self->{uniformity} || 0; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/2
$self->{'uniformity'} || 0
MC/DC0%0/1
$self->{'uniformity'} || 0
$self->{'uniformity'}
Truth table0%0/2
A
A= $self->{'uniformity'}
| |||||||||||||||||||||||||||||||||||||||||||
| 233 | 0 | my $v = $self->vertical_rate; | |||||||||||||||||||||||||||||||||||||||||
| 234 | 0 | my $h = $self->thickness; | |||||||||||||||||||||||||||||||||||||||||
| 235 | 0 | my %r = ( uniformity => $u, rate_nominal => $v ); | |||||||||||||||||||||||||||||||||||||||||
| 236 | 0 | $r{rate_min} = $v * ( 1 - $u ); | |||||||||||||||||||||||||||||||||||||||||
| 237 | 0 | $r{rate_max} = $v * ( 1 + $u ); | |||||||||||||||||||||||||||||||||||||||||
| 238 | 0 | ▶ | if ( defined $h && $r{rate_min} > 0 ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $h and $r{"rate_min"} > 0
MC/DC0%0/2
defined $h and $r{"rate_min"} > 0
defined $h
$r{"rate_min"} > 0
Truth table0%0/3
A and B
A= defined $hB= $r{"rate_min"} > 0
| |||||||||||||||||||||||||||||||||||||||||||
| 239 | 0 | $r{clear_fast} = $h / $r{rate_max}; | |||||||||||||||||||||||||||||||||||||||||
| 240 | 0 | $r{clear_slow} = $h / $r{rate_min}; | |||||||||||||||||||||||||||||||||||||||||
| 241 | $r{overetch_to_clear_all} = | ||||||||||||||||||||||||||||||||||||||||||
| 242 | 0 | ▶ | $u < 1 ? ( ( 1 + $u ) / ( 1 - $u ) - 1 ) : undef; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 243 | } | ||||||||||||||||||||||||||||||||||||||||||
| 244 | 0 | return \%r; | |||||||||||||||||||||||||||||||||||||||||
| 245 | } | ||||||||||||||||||||||||||||||||||||||||||
| 246 | |||||||||||||||||||||||||||||||||||||||||||
| 247 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 248 | # Reporting | ||||||||||||||||||||||||||||||||||||||||||
| 249 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 250 | 2 | ▶ | sub report { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
report: called CC=20 SCAR=39.9
Pod
documented
| |||||||||||||||||||||||||||||||||||||||||||
| 251 | 2 | my ($self) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 252 | 2 | my $t = $self->etch_time; | |||||||||||||||||||||||||||||||||||||||||
| 253 | 2 | my @out; | |||||||||||||||||||||||||||||||||||||||||
| 254 | |||||||||||||||||||||||||||||||||||||||||||
| 255 | 2 | push @out, '=' x 66; | |||||||||||||||||||||||||||||||||||||||||
| 256 | 2 | push @out, sprintf( '%s ETCH -- %s', uc $self->process_type, | |||||||||||||||||||||||||||||||||||||||||
| 257 | $self->target->label ); | ||||||||||||||||||||||||||||||||||||||||||
| 258 | 2 | push @out, '=' x 66; | |||||||||||||||||||||||||||||||||||||||||
| 259 | |||||||||||||||||||||||||||||||||||||||||||
| 260 | 2 | push @out, sprintf( ' Etchant : %s [%s]', | |||||||||||||||||||||||||||||||||||||||||
| 261 | $self->etchant->composition, $self->etchant->mechanism ); | ||||||||||||||||||||||||||||||||||||||||||
| 262 | 2 | ▶ | push @out, sprintf( ' Film to etch : %s nm', | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 263 | _num( $self->thickness ) ) if defined $self->thickness; | ||||||||||||||||||||||||||||||||||||||||||
| 264 | |||||||||||||||||||||||||||||||||||||||||||
| 265 | # subclass conditions | ||||||||||||||||||||||||||||||||||||||||||
| 266 | 2 | my @cond = $self->_conditions_lines; | |||||||||||||||||||||||||||||||||||||||||
| 267 | 2 | ▶ | push @out, @cond if @cond; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 268 | |||||||||||||||||||||||||||||||||||||||||||
| 269 | 2 | push @out, ' ' . '-' x 62; | |||||||||||||||||||||||||||||||||||||||||
| 270 | 2 | push @out, sprintf( ' Vertical rate : %s nm/min', _num( $self->vertical_rate ) ); | |||||||||||||||||||||||||||||||||||||||||
| 271 | 2 | push @out, sprintf( ' Lateral rate : %s nm/min', _num( $self->lateral_rate ) ); | |||||||||||||||||||||||||||||||||||||||||
| 272 | 2 | push @out, sprintf( ' Anisotropy A : %.3f (1 = perfectly directional)', | |||||||||||||||||||||||||||||||||||||||||
| 273 | $self->anisotropy ); | ||||||||||||||||||||||||||||||||||||||||||
| 274 | |||||||||||||||||||||||||||||||||||||||||||
| 275 | 2 | ▶ | if ( defined $self->{sel_mask} && $self->mask ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $self->{"sel_mask"} and $self->mask
MC/DC0%0/2
defined $self->{"sel_mask"} and $self->mask
defined $self->{"sel_mask"}
$self->mask
Truth table33%1/3
A and B
A= defined $self->{"sel_mask"}B= $self->mask
| |||||||||||||||||||||||||||||||||||||||||||
| 276 | push @out, sprintf( ' Selectivity/mask (%s) : %s : 1', | ||||||||||||||||||||||||||||||||||||||||||
| 277 | 2 | $self->mask->pretty, _num( $self->{sel_mask} ) ); | |||||||||||||||||||||||||||||||||||||||||
| 278 | } | ||||||||||||||||||||||||||||||||||||||||||
| 279 | 2 | ▶ | if ( defined $self->{sel_substrate} && $self->substrate ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $self->{"sel_substrate"} and $self->substrate
MC/DC0%0/2
defined $self->{"sel_substrate"} and $self->substrate
defined $self->{"sel_substrate"}
$self->substrate
Truth table33%1/3
A and B
A= defined $self->{"sel_substrate"}B= $self->substrate
| |||||||||||||||||||||||||||||||||||||||||||
| 280 | push @out, sprintf( ' Selectivity/substrate (%s) : %s : 1', | ||||||||||||||||||||||||||||||||||||||||||
| 281 | 2 | $self->substrate->pretty, _num( $self->{sel_substrate} ) ); | |||||||||||||||||||||||||||||||||||||||||
| 282 | } | ||||||||||||||||||||||||||||||||||||||||||
| 283 | |||||||||||||||||||||||||||||||||||||||||||
| 284 | 2 | push @out, ' ' . '-' x 62; | |||||||||||||||||||||||||||||||||||||||||
| 285 | 2 | ▶ | if ( defined( my $tc = $self->time_to_clear ) ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 286 | 2 | push @out, sprintf( ' Time to clear : %.2f min', $tc ); | |||||||||||||||||||||||||||||||||||||||||
| 287 | } | ||||||||||||||||||||||||||||||||||||||||||
| 288 | 2 | ▶ | if ( defined $t ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 289 | push @out, sprintf( ' Etch time : %.2f min (over-etch %.0f%%)', | ||||||||||||||||||||||||||||||||||||||||||
| 290 | 2 | ▶ | $t, ( $self->{overetch} // 0 ) * 100 ); | ||||||||||||||||||||||||||||||||||||||||
|
Condition50%1/2
$self->{"overetch"} // 0
MC/DC0%0/1
$self->{"overetch"} // 0
$self->{"overetch"}
Truth table50%1/2
A
A= $self->{"overetch"}
| |||||||||||||||||||||||||||||||||||||||||||
| 291 | 2 | push @out, sprintf( ' Etch depth : %s nm', _num( $self->etch_depth($t) ) ); | |||||||||||||||||||||||||||||||||||||||||
| 292 | } | ||||||||||||||||||||||||||||||||||||||||||
| 293 | |||||||||||||||||||||||||||||||||||||||||||
| 294 | # profile | ||||||||||||||||||||||||||||||||||||||||||
| 295 | 2 | ▶ | if ( defined $self->feature_cd && defined $t ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $self->feature_cd and defined $t
MC/DC0%0/2
defined $self->feature_cd and defined $t
defined $self->feature_cd
defined $t
Truth table33%1/3
A and B
A= defined $self->feature_cdB= defined $t
| |||||||||||||||||||||||||||||||||||||||||||
| 296 | 0 | my $p = $self->profile($t); | |||||||||||||||||||||||||||||||||||||||||
| 297 | 0 | push @out, ' ' . '-' x 62; | |||||||||||||||||||||||||||||||||||||||||
| 298 | 0 | push @out, sprintf( ' Feature (mask CD) : %s nm', _num( $p->{feature_cd} ) ); | |||||||||||||||||||||||||||||||||||||||||
| 299 | 0 | push @out, sprintf( ' Undercut (per side) : %s nm', _num( $p->{undercut} ) ); | |||||||||||||||||||||||||||||||||||||||||
| 300 | 0 | push @out, sprintf( ' Etch bias (CD gain) : %s nm', _num( $p->{etch_bias} ) ); | |||||||||||||||||||||||||||||||||||||||||
| 301 | push @out, sprintf( ' Top / bottom width : %s / %s nm', | ||||||||||||||||||||||||||||||||||||||||||
| 302 | 0 | _num( $p->{top_width} ), _num( $p->{bottom_width} ) ); | |||||||||||||||||||||||||||||||||||||||||
| 303 | 0 | push @out, sprintf( ' Sidewall angle : %.1f deg', $p->{sidewall_angle} ); | |||||||||||||||||||||||||||||||||||||||||
| 304 | push @out, sprintf( ' Aspect ratio : %.2f : 1', $p->{aspect_ratio} ) | ||||||||||||||||||||||||||||||||||||||||||
| 305 | 0 | ▶ | if defined $p->{aspect_ratio}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 306 | } | ||||||||||||||||||||||||||||||||||||||||||
| 307 | |||||||||||||||||||||||||||||||||||||||||||
| 308 | # mask survival | ||||||||||||||||||||||||||||||||||||||||||
| 309 | 2 | ▶ | if ( defined( my $ml = $self->mask_loss($t) ) ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 310 | 2 | push @out, ' ' . '-' x 62; | |||||||||||||||||||||||||||||||||||||||||
| 311 | 2 | push @out, sprintf( ' Mask etch rate : %s nm/min', _num( $self->mask_etch_rate ) ); | |||||||||||||||||||||||||||||||||||||||||
| 312 | 2 | push @out, sprintf( ' Mask loss : %s nm', _num($ml) ); | |||||||||||||||||||||||||||||||||||||||||
| 313 | 2 | ▶ | if ( defined( my $surv = $self->mask_survives($t) ) ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 314 | push @out, sprintf( ' Mask remaining : %s nm (%s)', | ||||||||||||||||||||||||||||||||||||||||||
| 315 | 0 | ▶ | _num( $self->{mask_thickness} - $ml ), | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 316 | $surv ? 'OK' : 'MASK CONSUMED!' ); | ||||||||||||||||||||||||||||||||||||||||||
| 317 | } | ||||||||||||||||||||||||||||||||||||||||||
| 318 | } | ||||||||||||||||||||||||||||||||||||||||||
| 319 | |||||||||||||||||||||||||||||||||||||||||||
| 320 | # substrate over-etch | ||||||||||||||||||||||||||||||||||||||||||
| 321 | 2 | ▶ | if ( defined( my $so = $self->substrate_overetch($t) ) ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 322 | 2 | push @out, sprintf( ' Substrate over-etch (%s) : %s nm', | |||||||||||||||||||||||||||||||||||||||||
| 323 | $self->substrate->pretty, _num($so) ); | ||||||||||||||||||||||||||||||||||||||||||
| 324 | } | ||||||||||||||||||||||||||||||||||||||||||
| 325 | |||||||||||||||||||||||||||||||||||||||||||
| 326 | # uniformity | ||||||||||||||||||||||||||||||||||||||||||
| 327 | 2 | ▶ | if ( $self->{uniformity} ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 328 | 0 | my $u = $self->uniformity_report; | |||||||||||||||||||||||||||||||||||||||||
| 329 | 0 | push @out, ' ' . '-' x 62; | |||||||||||||||||||||||||||||||||||||||||
| 330 | 0 | push @out, sprintf( ' Uniformity : +/- %.0f%%', $u->{uniformity} * 100 ); | |||||||||||||||||||||||||||||||||||||||||
| 331 | 0 | ▶ | if ( defined $u->{clear_fast} ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 332 | push @out, sprintf( ' Clear time span: %.2f - %.2f min', | ||||||||||||||||||||||||||||||||||||||||||
| 333 | 0 | $u->{clear_fast}, $u->{clear_slow} ); | |||||||||||||||||||||||||||||||||||||||||
| 334 | push @out, sprintf( ' Min over-etch to clear whole wafer : %.0f%%', | ||||||||||||||||||||||||||||||||||||||||||
| 335 | $u->{overetch_to_clear_all} * 100 ) | ||||||||||||||||||||||||||||||||||||||||||
| 336 | 0 | ▶ | if defined $u->{overetch_to_clear_all}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 337 | } | ||||||||||||||||||||||||||||||||||||||||||
| 338 | } | ||||||||||||||||||||||||||||||||||||||||||
| 339 | |||||||||||||||||||||||||||||||||||||||||||
| 340 | 2 | push @out, '=' x 66; | |||||||||||||||||||||||||||||||||||||||||
| 341 | 2 | return join( "\n", @out ) . "\n"; | |||||||||||||||||||||||||||||||||||||||||
| 342 | } | ||||||||||||||||||||||||||||||||||||||||||
| 343 | |||||||||||||||||||||||||||||||||||||||||||
| 344 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 345 | # Coercion helpers | ||||||||||||||||||||||||||||||||||||||||||
| 346 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 347 | 51 | ▶ | sub _as_material { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_as_material: called CC=6 SCAR=20.3
| |||||||||||||||||||||||||||||||||||||||||||
| 348 | 51 | my ( $self, $m ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 349 | 51 | ▶ | return undef unless defined $m; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 350 | 32 | ▶ | return $m if ref $m && $m->isa('Physics::Etch::Material'); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
ref $m and $m->isa("Physics::Etch::Material")
MC/DC50%1/2
ref $m and $m->isa("Physics::Etch::Material")
ref $m
$m->isa("Physics::Etch::Material")
Truth table66%2/3
A and B
A= ref $mB= $m->isa("Physics::Etch::Material")
| |||||||||||||||||||||||||||||||||||||||||||
| 351 | 12 | ▶ | return Physics::Etch::Material->new( name => $m ) unless ref $m; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 352 | 0 | ▶ | return Physics::Etch::Material->new(%$m) if ref $m eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 353 | 0 | croak 'material must be a Physics::Etch::Material, name, or hashref'; | |||||||||||||||||||||||||||||||||||||||||
| 354 | } | ||||||||||||||||||||||||||||||||||||||||||
| 355 | |||||||||||||||||||||||||||||||||||||||||||
| 356 | 17 | ▶ | sub _as_etchant { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_as_etchant: called CC=6 SCAR=21.4
| |||||||||||||||||||||||||||||||||||||||||||
| 357 | 17 | my ( $self, $e, $type ) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 358 | 17 | ▶ | return undef unless defined $e; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 359 | 17 | ▶ | return $e if ref $e && $e->isa('Physics::Etch::Etchant'); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
ref $e and $e->isa("Physics::Etch::Etchant")
MC/DC50%1/2
ref $e and $e->isa("Physics::Etch::Etchant")
ref $e
$e->isa("Physics::Etch::Etchant")
Truth table66%2/3
A and B
A= ref $eB= $e->isa("Physics::Etch::Etchant")
| |||||||||||||||||||||||||||||||||||||||||||
| 360 | 10 | ▶ | return Physics::Etch::Etchant->new( name => $e, type => $type ) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 361 | unless ref $e; | ||||||||||||||||||||||||||||||||||||||||||
| 362 | 0 | ▶ | return Physics::Etch::Etchant->new( type => $type, %$e ) if ref $e eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 363 | 0 | croak 'etchant must be a Physics::Etch::Etchant, name, or hashref'; | |||||||||||||||||||||||||||||||||||||||||
| 364 | } | ||||||||||||||||||||||||||||||||||||||||||
| 365 | |||||||||||||||||||||||||||||||||||||||||||
| 366 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 367 | # Formatting helpers | ||||||||||||||||||||||||||||||||||||||||||
| 368 | # --------------------------------------------------------------------------- | ||||||||||||||||||||||||||||||||||||||||||
| 369 | 2 | ▶ | sub _deg { $_[0] * 180 / 3.14159265358979 } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_deg: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 370 | |||||||||||||||||||||||||||||||||||||||||||
| 371 | 18 | ▶ | sub _num { | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_num: called CC=7 SCAR=21.0
| |||||||||||||||||||||||||||||||||||||||||||
| 372 | 18 | my ($n) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 373 | 18 | ▶ | return 'n/a' unless defined $n; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 374 | 18 | my $a = abs $n; | |||||||||||||||||||||||||||||||||||||||||
| 375 | 18 | ▶ | return sprintf( '%.3g', $n ) if $a != 0 && ( $a < 0.1 || $a >= 100000 ); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$a != 0 and $a < "0.1" || $a >= 100000
$a < "0.1" or $a >= 100000
MC/DC0%0/3
$a != 0 and $a < "0.1" || $a >= 100000
$a != 0
$a < "0.1"
$a >= 100000
Truth table25%1/4
A and B or C
A= $a != 0B= $a < "0.1"C= $a >= 100000
| |||||||||||||||||||||||||||||||||||||||||||
| 376 | 18 | ▶ | return sprintf( '%.0f', $n ) if $a >= 100; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 377 | 10 | ▶ | return sprintf( '%.1f', $n ) if $a >= 10; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 378 | 4 | return sprintf( '%.2f', $n ); | |||||||||||||||||||||||||||||||||||||||||
| 379 | } | ||||||||||||||||||||||||||||||||||||||||||
| 380 | |||||||||||||||||||||||||||||||||||||||||||
| 381 | 5 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 382 | |||||||||||||||||||||||||||||||||||||||||||
| 383 | __END__ | ||||||||||||||||||||||||||||||||||||||||||