Chip Foundry Services Request Assessment

Layout Mathematics

Semiconductor Manufacturing Process: Layout Mathematical Modeling

1. Problem Context

A modern semiconductor fabrication facility (fab) involves:

Process Complexity

  • 500–1000+ individual process steps per wafer
  • Multiple product types with different process routes
  • Strict process sequencing and timing requirements

Re-entrant Flow Characteristics

  • Wafers revisit the same tool types (e.g., lithography) 30–80 times
  • Creates complex dependencies between process stages
  • Traditional flow-shop models are inadequate

Stochastic Elements

  • Tool failures and unplanned maintenance
  • Variable processing times
  • Yield loss at various process steps
  • Operator availability fluctuations

Economic Scale

  • Leading-edge fab costs: 15–20+ billion
  • Equipment costs: 50M–150M per lithography tool
  • High cost of WIP (work-in-process) inventory

2. Core Mathematical Formulations

2.1 Quadratic Assignment Problem (QAP)

The foundational model for facility layout optimization:

$$\min \sum_{i=1}^n \sum_{j=1}^n \sum_{k=1}^n \sum_{l=1}^n f_{ij} \cdot d_{kl} \cdot x_{ik} \cdot x_{jl}$$

Subject to:

$$\sum_{k=1}^n x_{ik} = 1 \quad \forall i \in \{1, \ldots, n\}$$
$$\sum_{i=1}^n x_{ik} = 1 \quad \forall k \in \{1, \ldots, n\}$$
$$x_{ik} \in \{0, 1\} \quad \forall i, k$$

Variables:

SymbolDescription
$f_{ij}$Material flow frequency between tool groups $i$ and $j$
$d_{kl}$Distance between locations $k$ and $l$
$x_{ik}$Binary: $1$ if tool group $i$ assigned to location $k$, $0$ otherwise
$n$Number of departments/locations

Complexity Analysis:

  • Problem Class: NP-hard
  • Practical Limit: Exact solutions feasible for $n \le 30$
  • Large Instances: Require heuristic/metaheuristic approaches

2.2 Mixed-Integer Linear Programming (MILP) Extension

For realistic industrial constraints:

$$\min \sum_{i,j} c_{ij} \cdot f_{ij} \cdot z_{ij} + \sum_k F_k \cdot y_k$$

Capacity Constraint:

$$\sum_{p \in P} d_p \cdot t_{pk} \le C_k \cdot A_k \cdot y_k \quad \forall k$$

Space Constraint:

$$\sum_i a_i \cdot x_{ik} \le S_k \quad \forall k$$

Adjacency Requirement (linearized):

$$x_{ik} + x_{jl} \le 1 + M \cdot (1 - adj_{kl}) \quad \forall (i,j) \in R$$

Variables:

SymbolDescription
$c_{ij}$Unit transport cost between $i$ and $j$
$z_{ij}$Distance variable (linearized)
$y_k$Binary: tool purchase decision for type $k$
$F_k$Fixed cost for tool type $k$
$d_p$Demand for product $p$
$t_{pk}$Processing time for product $p$ on tool $k$
$C_k$Capacity of tool type $k$
$A_k$Availability factor for tool $k$
$a_i$Floor area required by department $i$
$S_k$Available space in zone $k$
$M$Big-M constant
$R$Set of required adjacency pairs

2.3 Network Flow Formulation

Wafer flow modeled as a multi-commodity network flow problem:

$$\min \sum_{(i,j) \in E} \sum_{p \in P} c_{ij} \cdot x_{ij}^p$$

Flow Conservation Constraint:

$$\sum_{j:(i,j) \in E} x_{ij}^p - \sum_{j:(j,i) \in E} x_{ji}^p = b_i^p \quad \forall i \in V, \forall p \in P$$

Arc Capacity Constraint:

$$\sum_{p \in P} x_{ij}^p \le u_{ij} \quad \forall (i,j) \in E$$

Variables:

SymbolDescription
$E$Set of arcs (edges) in the network
$V$Set of nodes (vertices)
$P$Set of product types (commodities)
$x_{ij}^p$Flow of product $p$ on arc $(i,j)$
$c_{ij}$Cost per unit flow on arc $(i,j)$
$b_i^p$Net supply/demand of product $p$ at node $i$
$u_{ij}$Capacity of arc $(i,j)$

3. Queuing Network Models
3.1 Fundamental Performance Metrics

Little's Law (fundamental relationship):

$$L = \lambda \cdot W$$

Equivalently:

$$\mathrm{WIP} = \mathrm{Throughput} \times \mathrm{Cycle\ Time}$$

Station Utilization:

$$\rho_k = \dfrac{\lambda \cdot v_k}{\mu_k \cdot m_k}$$

Definitions:

  • $L$ — Average number in system (WIP)
  • $\lambda$ — Arrival rate (throughput)
  • $W$ — Average time in system (cycle time)
  • $\rho_k$ — Utilization of station $k$
  • $v_k$ — Average number of visits to station $k$ per wafer
  • $\mu_k$ — Service rate at station $k$
  • $m_k$ — Number of parallel tools at station $k$

3.2 Cycle Time Approximation

Kingman's Formula (GI/G/1 approximation):

$$W_q \approx \left(\dfrac{C_a^2 + C_s^2}{2}\right) \cdot \left(\dfrac{\rho}{1-\rho}\right) \cdot \bar{s}$$

Extended GI/G/m Approximation:

$$CT_k \approx t_k \cdot \left[1 + \dfrac{C_a^2 + C_s^2}{2} \cdot \dfrac{\rho_k^{\sqrt{2(m_k+1)}}-1}{m_k \cdot (1-\rho_k)}\right]$$

Total Cycle Time:

$$\mathrm{CT}_{\text{total}} = \sum_{k \in K} v_k \cdot CT_k + \sum_{\text{moves}} T_{\text{transport}}$$

Variables:

SymbolDescription
$W_q$Average waiting time in queue
$C_a^2$Squared coefficient of variation of inter-arrival times
$C_s^2$Squared coefficient of variation of service times
$\bar{s}$Mean service time
$t_k$Mean processing time at station $k$
$CT_k$Cycle time at station $k$
$K$Set of all stations
$T_{\text{transport}}$Transport time between stations

3.3 Re-entrant Flow Complexity

Characteristics of Re-entrant Systems:

  • Variability Propagation: Variance accumulates through network
  • Correlation Effects: Successive visits to same station are correlated
  • Priority Inversions: Lots at different stages compete for same resources

Variability Propagation (Linking Equation):

$$C_{a,j}^2 = 1 + \sum_i p_{ij}^2 \cdot \dfrac{\lambda_i}{\lambda_j} \cdot (C_{d,i}^2 - 1)$$

Departure Variability:

$$C_{d,k}^2 = 1 + (1 - \rho_k^2) \cdot (C_{a,k}^2 - 1) + \rho_k^2 \cdot (C_{s,k}^2 - 1)$$

Where:

  • $p_{ij}$ — Routing probability from station $i$ to $j$
  • $C_{d,k}^2$ — Squared CV of departures from station $k$

4. Stochastic Modeling

4.1 Random Variable Distributions

ElementTypical DistributionParameters
Processing timeLog-normal$\mu$, $\sigma$ (log-scale)
Tool failure (TTF)Exponential / Weibull$\lambda$ or $(\eta, \beta)$
Repair time (TTR)Log-normal$\mu$, $\sigma$
YieldBeta / Truncated Normal$(\alpha, \beta)$ or $(\mu, \sigma, a, b)$
Batch sizeDiscrete (Poisson)$\lambda$

Log-normal PDF:

$$f(x; \mu, \sigma) = \dfrac{1}{x\sigma\sqrt{2\pi}}\exp\left(-\dfrac{(\ln x - \mu)^2}{2\sigma^2}\right), \quad x > 0$$

Weibull PDF (for reliability):

$$f(x; \eta, \beta) = \dfrac{\beta}{\eta}\left(\dfrac{x}{\eta}\right)^{\beta-1}\exp\left(-\left(\dfrac{x}{\eta}\right)^{\beta}\right), \quad x \ge 0$$

4.2 Markov Decision Process (MDP) Formulation

For sequential decision-making under uncertainty:

Bellman Equation:

$$V^*(s) = \max_{a \in A(s)}\left[R(s, a) + \gamma\sum_{s' \in S} P(s' \mid s, a) \cdot V^*(s')\right]$$

Optimal Policy:

$$\pi^*(s) = \operatorname*{argmax}_{a \in A(s)}\left[R(s, a) + \gamma\sum_{s' \in S} P(s' \mid s, a) \cdot V^*(s')\right]$$

MDP Components:

ComponentDescriptionExample in Fab Context
$S$State spaceQueue lengths, tool status, lot positions
$A(s)$Action set at state $s$Dispatch rules, maintenance decisions
$P(s' \mid s, a)$Transition probabilityProbability of tool failure/repair
$R(s, a)$Immediate rewardNegative cycle time, throughput
$\gamma$Discount factor$\gamma \in [0, 1)$

5. Hierarchical Layout Structure

5.1 Bay Layout Architecture

Modern fabs use a hierarchical bay layout:

Layout Mathematics & Constructive Solid Geometry Polygon Operations, Spatial Indexing (R-Trees), and Layout Compaction Solvers Polygon Boolean Ops A ∪ B Weiler-Atherton Clipping Sweep-Line Algorithm O((N + K) log N) Bentley-Ottmann Intersections Spatial Hierarchy (R-Tree) Bounding Box Hierarchy (MBR) R N1 N2 O(log N) Query DRC Window Queries & Overlap Detection Graph-Based Compaction x₁ x₂ x₃ x₂ - x₁ ≥ d_min DAG Longest Path LP Solver Linear Programming (LP) Minimize: Total Area (W × H) Subject to: DRC Distance Constraints Simplex / Interior Point Optimal Wire Stretching Mathematical Foundations of Computer-Aided Design (CAD) & Physical Verification Layout Engines

Two-Level Optimization:

1. Macro Level: Assign tool groups to bays
- Objective: Minimize interbay transport
- Constraints: Bay capacity, cleanroom class requirements

2. Micro Level: Arrange tools within each bay
- Objective: Minimize within-bay movement
- Constraints: Tool footprint, utility access

5.2 Distance Metrics

Rectilinear (Manhattan) Distance:

$$d(k, l) = |x_k - x_l| + |y_k - y_l|$$

Euclidean Distance:

$$d(k, l) = \sqrt{(x_k - x_l)^2 + (y_k - y_l)^2}$$

Actual AMHS Path Distance:

$$d_{\text{AMHS}}(k, l) = \sum_{(i,j) \in \text{path}(k,l)} d_{ij} + \sum_{\text{intersections}} \tau_{\text{delay}}$$

Where $(x_k, y_k)$ and $(x_l, y_l)$ are coordinates of locations $k$ and $l$.

6. Objective Functions

6.1 Multi-Objective Formulation

$$\min F(x) = \begin{bmatrix} f_1(x) \\ f_2(x) \\ f_3(x) \\ f_4(x) \end{bmatrix} = \begin{bmatrix} \text{Material Handling Cost} \\ \text{Cycle Time} \\ \text{Work-in-Process (WIP)} \\ -\text{Throughput} \end{bmatrix}$$

6.2 Individual Objective Functions

Material Handling Cost:

$$f_1(x) = \sum_{i<j} f_{ij} \cdot d(\pi(i), \pi(j)) \cdot c_{\text{transport}}$$

Cycle Time:

$$f_2(x) = \sum_{k \in K} v_k \cdot [t_k + W_{q,k}(x)] + \sum_{\text{moves}} T_{\text{transport}}(x)$$

Work-in-Process:

$$f_3(x) = \sum_{k \in K} L_k(x) = \sum_{k \in K} \lambda_k \cdot W_k(x)$$

Throughput (bottleneck-constrained):

$$f_4(x) = -X = -\min_{k \in K}\left(\dfrac{\mu_k \cdot m_k}{v_k}\right)$$

Variables:

SymbolDescription
$\pi(i)$Location assigned to department $i$
$c_{\text{transport}}$Unit transport cost
$W_{q,k}$Waiting time at station $k$
$L_k$Average queue length at station $k$
$X$System throughput

6.3 Weighted-Sum Scalarization

$$\min F(x) = \sum_{i=1}^4 w_i \cdot \dfrac{f_i(x) - f_i^{\min}}{f_i^{\max} - f_i^{\min}}$$

Where:

  • $w_i$ — Weight for objective $i$ (with $\sum_i w_i = 1$)
  • $f_i^{\min}$, $f_i^{\max}$ — Normalization bounds for objective $i$

7. Constraint Categories

7.1 Constraint Summary Table

CategoryMathematical FormDescription
Space$\sum_i A_i \cdot x_{ik} \le S_k$Total area in zone $k$
Adjacency (required)$\lvert \mathrm{loc}(i) - \mathrm{loc}(j) \rvert \le \delta_{ij}$Tools must be close
Separation (forbidden)$\lvert \mathrm{loc}(i) - \mathrm{loc}(j) \rvert \ge \Delta_{ij}$Tools must be apart
Cleanroom class$\mathrm{class}(\mathrm{loc}(i)) \ge \mathrm{req}_i$Cleanliness requirement
Utility access$\sum_{i \in \text{zone}} \mathrm{power}_i \le P_{\text{zone}}$Power budget
Aspect ratio$L/W \in [r_{\min}, r_{\max}]$Layout shape

7.2 Detailed Constraint Formulations

Non-Overlapping Constraint (for unequal areas):

$$x_i + w_i \le x_j + M(1 - \alpha_{ij}) \quad \text{OR}$$
$$x_j + w_j \le x_i + M(1 - \beta_{ij}) \quad \text{OR}$$
$$y_i + h_i \le y_j + M(1 - \gamma_{ij}) \quad \text{OR}$$
$$y_j + h_j \le y_i + M(1 - \delta_{ij})$$

With:

$$\alpha_{ij} + \beta_{ij} + \gamma_{ij} + \delta_{ij} \ge 1$$

Cleanroom Zone Assignment:

$$\sum_{k \in Z_c} x_{ik} = 1 \quad \forall i \text{ with } \mathrm{req}_i = c$$

Where $Z_c$ is the set of locations with cleanroom class $c$.

8. Solution Methods

8.1 Exact Methods

Applicable for small instances ($n \le 30$):

  • Branch and Bound:
  • Uses Gilmore-Lawler bound for pruning
  • Lower bound: $\mathrm{LB} = \sum_i \min_k(\mathrm{flow}_i \cdot \mathrm{dist}_k)$
  • Dynamic Programming:
  • For special structures (e.g., single-row layout)
  • Complexity: $O(n^2 \cdot 2^n)$ for general case
  • Cutting Plane Methods:
  • Linearize QAP using reformulation-linearization technique (RLT)

8.2 Construction Heuristics

CRAFT (Computerized Relative Allocation of Facilities Technique):

│─────────────────────────────────────────────────────────────││ Algorithm CRAFT: ││ 1. Start with initial layout ││ 2. Evaluate all pairwise exchanges ││ 3. Select exchange with maximum cost reduction ││ 4. If improvement found, goto step 2 ││ 5. Return final layout ││─────────────────────────────────────────────────────────────│

CORELAP (Computerized Relationship Layout Planning):

│────────────────────────────────────────────────────────────││ Algorithm CORELAP: ││ 1. Calculate Total Closeness Rating (TCR) for each dept ││ 2. Place department with highest TCR at center ││ 3. For remaining departments: ││ a. Calculate placement score for candidate locations ││ b. Place dept at location maximizing adjacency ││ 4. Return layout ││────────────────────────────────────────────────────────────│

ALDEP (Automated Layout Design Program):

│─────────────────────────────────────────────────────────────││ Algorithm ALDEP: ││ 1. Randomly select first department ││ 2. Scan relationship matrix for high-rated pairs ││ 3. Place related departments in sequence ││ 4. Repeat until all departments placed ││ 5. Evaluate layout; repeat for multiple random starts ││─────────────────────────────────────────────────────────────│

8.3 Metaheuristics

Genetic Algorithm (GA):

│────────────────────────────────────────────────────────────││ Algorithm GA_for_Layout: ││ Initialize population P of size N (random permutations) ││ Evaluate fitness f(x) for all x in P ││ ││ While not converged: ││ Selection: ││ Parents = TournamentSelect(P, k=3) ││ Crossover (PMX or OX for permutations): ││ Offspring = PMX_Crossover(Parents, p_c=0.8) ││ Mutation (swap or insertion): ││ Offspring = SwapMutation(Offspring, p_m=0.1) ││ Evaluation: ││ Evaluate fitness for Offspring ││ Replacement: ││ P = ElitistReplacement(P, Offspring) ││ ││ Return best solution in P ││────────────────────────────────────────────────────────────│

Simulated Annealing (SA):

$$P(\text{accept worse solution}) = \exp\left(-\dfrac{\Delta f}{T}\right)$$
│────────────────────────────────────────────────────────────││ Algorithm SA_for_Layout: ││ x = initial_solution() ││ T = T_initial ││ ││ While T > T_final: ││ For i = 1 to iterations_per_temp: ││ x' = neighbor(x) (e.g., swap two departments) ││ Δf = f(x') - f(x) ││ ││ If Δf < 0: ││ x = x' ││ Else If random() < exp(-Δf / T): ││ x = x' ││ ││ T = α × T (Cooling, α ≈ 0.95) ││ ││ Return x ││────────────────────────────────────────────────────────────│

Cooling Schedule:

$$T_{k+1} = \alpha \cdot T_k, \quad \alpha \in [0.9, 0.99]$$

8.4 Simulation-Optimization Framework

│─────────────│ │──────────────────│ │─────────────────││ Layout │────▶│ Discrete-Event │────▶│ Performance ││ Solution │ │ Simulation │ │ Metrics ││─────────────│ │──────────────────│ │────────┬────────│ ▲ │ │ │ │ │──────────────────│ │ │─────────│ Optimization │◀────────────────│ │ Algorithm │ │──────────────────│

Surrogate-Assisted Optimization:

$$\hat{f}(x) \approx f(x)$$

Where $\hat{f}$ is a surrogate model (e.g., Gaussian Process, Neural Network) trained on simulation evaluations.

9. Advanced Topics

9.1 Digital Twin Integration

Real-Time Layout Performance:

$$\mathrm{KPI}(t) = g(x_{\text{layout}}, s(t), \theta(t))$$

Where:

  • $s(t)$ — System state at time $t$
  • $\theta(t)$ — Real-time parameter estimates

Applications:

  • Real-time cycle time prediction
  • Predictive maintenance scheduling
  • Dynamic dispatching optimization

9.2 Machine Learning Hybridization

Graph Neural Network (GNN) for Layout:

$$h_v^{(l+1)} = \sigma\left(W^{(l)} \cdot \mathrm{AGGREGATE}\left(\{h_u^{(l)} : u \in N(v)\}\right)\right)$$

Reinforcement Learning for Dispatching:

$$Q(s, a) \leftarrow Q(s, a) + \alpha\left[r + \gamma\max_{a'} Q(s', a') - Q(s, a)\right]$$

Surrogate Model (Neural Network):

$$\widehat{CT}(x) = NN_{\theta}(x) \approx E[\text{Simulation}(x)]$$

9.3 Robust Optimization

Min-Max Formulation:

$$\min_{x \in X} \max_{\xi \in U} f(x, \xi)$$

Uncertainty Set (Polyhedral):

$$U = \{\xi : |\xi - \bar{\xi}|_{\infty} \le \Gamma\}$$

Chance-Constrained Formulation:

$$\min_x E[f(x, \xi)]$$
$$\text{s.t.} \quad P(g(x, \xi) \le 0) \ge 1 - \epsilon$$

Where:

  • $\xi$ — Uncertain parameters (demand, yield, tool availability)
  • $U$ — Uncertainty set
  • $\Gamma$ — Budget of uncertainty
  • $\epsilon$ — Acceptable violation probability

9.4 Multi-Objective Optimization

Pareto Optimality:

Solution $x^*$ is Pareto optimal if there exists no $x$ such that:

$$f_i(x) \le f_i(x^*) \quad \forall i \quad \text{and} \quad f_j(x) < f_j(x^*) \quad \text{for some } j$$

NSGA-II Crowding Distance:

$$d_i = \sum_{m=1}^M \dfrac{f_m^{(i+1)} - f_m^{(i-1)}}{f_m^{\max} - f_m^{\min}}$$

10. Key Insights

10.1 Fundamental Observations

1. Multi-Scale Nature:
- Nanometer-scale process physics
- Meter-scale equipment layout
- Kilometer-scale supply chain

2. Re-entrant Flow Complexity:
- Traditional queuing theory requires significant adaptation
- Correlation effects are significant
- Scheduling and layout are tightly coupled

3. Simulation Necessity:
- Analytical models sacrifice too much fidelity
- High-fidelity simulation essential for validation
- Surrogate models bridge the gap

4. Layout-Scheduling Interaction:
- Optimal layout depends on dispatch policy
- Optimal dispatch depends on layout
- Joint optimization is active research area

5. Industry Trends Impact Modeling:
- EUV lithography changes bottleneck structure
- 3D integration (chiplets, stacking) changes flow patterns
- High-mix low-volume increases variability

10.2 Practical Recommendations

  • Start with QAP formulation for initial layout
  • Use queuing models for performance estimation
  • Validate with discrete-event simulation
  • Apply metaheuristics for large-scale instances
  • Consider multi-objective formulation for trade-off analysis
  • Integrate digital twin for real-time optimization

Symbol Reference

SymbolDescriptionTypical Units
$n$Number of departments/tools—
$f_{ij}$Flow frequencylots/hour
$d_{kl}$Distancemeters
$\lambda$Arrival ratelots/hour
$\mu$Service ratelots/hour
$\rho$Utilization—
$CT$Cycle timehours
$WIP$Work-in-processlots
$X$Throughputlots/hour
$C^2$Squared coefficient of variation—
$m$Number of parallel servers—