2026年5月18日 星期一

Grade EX#

   designated homework assignment EX#9


1. look up the matched homework assignment published within two weeks in 

https://minstral.blogspot.com/

2. grade in depth submitted to gmail within 2 weeks.
3. Do not include scores/marks.

4. Mark you are Claude TA. positive tone, bilingual, english first.
5. Compose reply. Output grading in plain text. do not send it out. keep in the draft box.

6. batch of five.
7 skip those graded

Grade HW#

  designated homework assignment HW#9


1. look up the matched homework assignment published within two weeks in 

https://nptechsl.blogspot.com/

2. grade in depth submitted to gmail within 2 weeks.
3. Do not include scores/marks.

4. Mark you are Claude TA. positive tone, bilingual, english first.
5. Compose reply. Output grading in plain text. do not send it out. keep in the draft box.

6. batch of five.
7 skip those graded

EX#11

 課堂練習 

Deadline:  Saturday at 23:59 (one more week)

Send all the share links to  me chang212@gmail.com by email with subject EX#11 [your id, your name]


PCB Trace Routing and/or Parameter Tune-Up 

1. Optimize trace routing for the Differential Pair Circuit on PCB 


trace routing, share


Steps

Starting from the imperfect design, complete the trace routing. Do trace routing ( 參考 share, share 2, share 3)








3. 使用鑽孔路徑演算法進行以下PCB 鑽孔(演算法 提供參考)


PCB 1





PCB 2

2026年5月12日 星期二

HW#11 RF IC Placement & Routing

   Benchmark  Two-stage Cascode Class-AB RF power amplifier targeting 5G n78 (3.5 GHz) in TSMC 28nm RF

1. Experiment with 30 seeds
Measure success, congestion, wirelength, overlap pairs (before/after)






Placement style 1



Placement artifact style 2


 


2. Benchmark the P&R for OP 741.

Experiment with 3 seeds
Measure success, congestion, wirelength, overlap pairs (before/after), Vin length match

2026年5月6日 星期三

HW#10

  1. Benchmark the three designs of RF PA Drivers


Closed-form Optimizer with Load-Pull Contours 

Performance-first Thermal build  ∠Γ_3f₀ phase (deg) · open=0, -170 deg

Margin-first Thermal build ∠Γ_3f₀ phase (deg) · open=0, -170 deg


Using Cowork or Claude.ai, benchmark the three models. Experiment with 5 seeds. For each seed, optimize the circuit design using built-in A* and then NM. 
  • For each seed, record metrics from the cascaded optimizers: 
  • Compare Closed-Form vs. margin-first build vs. comprehensive model
  • -Tabulate Gain, Pout, PAE, OP1dB, S₁₁ (5 metrics × 10 seeds = 40 cells).
  • -Identify which metric the closed-form most over- or under-estimates.
  • Cross-check both thermal designs: compute junction temperature rise ΔT_j at peak Pout. Which design runs cooler? By how many °C?
  • -Build a 2×2 comparison table: rows = {Performance-first, Margin-first}, columns = {Fitness, min-spec-margin (dB), ΔT_j (°C), PAE @ 6dB back-off}.
  • Visualize all of your data

  • Supplemental

    2026年5月4日 星期一

    Grade EX#2

     I cannot see any Bode plots in your sharing.


    This is not the way to share artifacts in Claude.



      do not initiate a new mail for the same problem.

    Prob 1.

    Check out a more accurate version of Bode plot.

    https://claude.ai/public/artifacts/afe5d364-02dc-44b6-b468-ba609db00883



    Your ChatGPT is in the intuitive mode. Pls try to turn on the Thinking mode.

    Thinking mode is critical for problems with complex constraints.

    Why?

    Grade EX#3 Chain of Thought


    Unfortunately, 8 persons is not the right answer. Please rework your solution and support it with an animation showing each step of the process.


    The answer (20 persons) is correct. That said, your solution is incomplete — not all erroneous intermediate steps were identified and shown as a chain of thought process.

    Animation of thoughts, not just solution, 2

    (包含問題分析、每個嘗試的死路、突破點、逐階段的約束驗證,以及最後的最優性證明和經驗總結。)

    Analysis of strategies


    Grade EX#7 Hypersurface and Optimization

    in gmail, grade in depth EX#7. positive tone, bilingual, english first, mark graded by Claude Assistant, compose reply in the same thread rather than an independent mail, do not send, save in the draft box, wait for my confirmation 

    general guidelines for grading

    Scientific thinking——問對問題、察覺邏輯漏洞——這件事 AI 取代不了。

    工具愈方便,這個能力就愈不能少。

    check physical accuracy and correctness.



    Pls put your final version of homework right here. Thanks.

    do not initiate new email.

    stop here.


    Grade EX#8 LNA

     read assignment EX#8 at https://minstral.blogspot.com/2026/04/ex8-lna-low-noise-amplifier.html

    grade in depth EX#8 submitted to gmail sat. Do not include scores/marks.
    Mark you are Claude TA. positive tone, bilingual, english first. Compose reply. batch of five. Output grading in plain tex. do not send it out. keep in the draft box. 


    Grade HW# 8 Benchmark with Claude Cowork

     read assignment HW#8 at https://nptechsl.blogspot.com/2026/04/hw8-claude-cowork.html

    grade in depth HW#8 submitted to gmail within one week. Do not include scores/marks.
    Mark you are Claude TA. positive tone, bilingual, english first. Compose reply. batch of five. Output grading in plain tex. do not send it out. keep in the draft box. 


    HW#9

      課堂練習 

    Deadline: This Saturday at 23:59

    Send all the share links to  me chang212@gmail.com by email with subject HW#9 [your id, your name]


    1. Benchmark the three algorithms (GD, NM, A*) and their cascades (one designed by you and the other design by AI )

    • For the five methods, each runs with 10 seeds
    • Tabulate Gain, Pout, PAE, OP1dB, S₁₁ (5 methods = 5 tables, each table with 5 metrics × 10 seeds = 40 cells).
    • Visualize all of your data

    Two-stage Cascode Class-AB RF PA Driver targeting 5G n78 (3.5 GHz) in TSMC 28nm RF

    Build Sub 6 GHz Power Amplifier Optimizer with Die Synced
    shareartifact (Closed-Form)

    2. Benchmark the three designs of RF PA Drivers


    Closed-form Optimizer with Load-Pull Contours 

    Performance-first Thermal build  ∠Γ_3f₀ phase (deg) · open=0, -170 deg

    Margin-first Thermal build ∠Γ_3f₀ phase (deg) · open=0, -170 deg


    Using Cowork or Claude.ai, benchmark the three models. Experiment with 5 seeds. For each seed, optimize the circuit design using built-in A* and then NM. 
    • For each seed, record metrics from the cascaded optimizers: 
    • Compare Closed-Form vs. margin-first build vs. comprehensive model
    • -Tabulate Gain, Pout, PAE, OP1dB, S₁₁ (5 metrics × 10 seeds = 40 cells).
    • -Identify which metric the closed-form most over- or under-estimates.
    • Cross-check both thermal designs: compute junction temperature rise ΔT_j at peak Pout. Which design runs cooler? By how many °C?
    • -Build a 2×2 comparison table: rows = {Performance-first, Margin-first}, columns = {Fitness, min-spec-margin (dB), ΔT_j (°C), PAE @ 6dB back-off}.
    • Visualize all of your data

    Supplemental


    2026年4月27日 星期一

    EX#8 Apple C1 LNA

      

    建議工具

    使用 Claude Sonnet 4.6 推理模式(手動切換,免費用戶額定時間內只能使用三次)

    使用 ChatGPT 5 推理模式(自動切換)

    使用 Gemini 3.0 Pro 免費額度最高 1M tokens (永遠推理模式)

    使用 Grok 4 推理模式(自動切換)



    How to publish a Claude artifact

    How to share a ChatGPT link

    How to share a Grok link

    How to share Gemini Link



    作業繳交規範

    guidelines


    Content share 作業繳交格式

    • share only link, pure text, markdown (md)
    • no attachments accepted, no html, screen dump, or png
    • non-compliant homework will be rejected and returned to you


    課堂練習 

    Deadline: This Saturday at 23:59

    Send all the share links to  me chang212@gmail.com by email with subject EX#8  [your id, your name]


     1.  Study Apple C1 Architecture

    (a) make

    LNA schematic (TSMC N7 製程的完整設計流程,包含完整元件表、元件值推導公式、die 面積估算) LNA=Low Noise Amplifier


    (b) make

    LNA Die


    (c) Build

    LNA Optimizer (SMITH Chart, Frequency Response)





    (d) Build a Simplified (closed-form) LNA optimizer on Die, 3.5 GHz LNA TSMC N7. 


    PromptsCont. Prompts (same as last)

    (e) Build an MNA model (Modified Nodal Analysis, as used in Cadence Spectre engine)  to optimize. Must verify your results to meet spec and parameters have to be realistic.



    2026年4月9日 星期四

    EX#7 Mathematical Optimization

     課堂練習 

    Deadline:  Next Saturday at 23:59 (one more week)

    Send all the share links to  me chang212@gmail.com by email with subject EX#7 [your id, your name]

    Optimization in Hyperspace — Homework Assignments

    md version

    Based on the "Optimization in Hyperspace" artifact — which visualizes how algorithms like Gradient Descent, Nelder-Mead, A* Search, Simulated Annealing, and Global Optimization navigate a 3D fitness landscape full of local peaks and valleys — here are 3 homework assignments at different levels:


    Homework Assignment 1 — Conceptual Understanding

    Title: Reading the Fitness Landscape

    Objective: Connect visual intuition to algorithmic concepts.

    Instructions: Using the "Optimization in Hyperspace" visualizer, observe how each of the five algorithms (Gradient Descent, Nelder-Mead, A* Search, Simulated Annealing, and Global Optimization) moves across the 3D fitness landscape. Then write a 1–2 page reflection answering the following:

    1. Describe the fitness landscape in your own words. What do the peaks represent? What do the valleys represent? In a real optimization problem, what might each correspond to?
    2. Which algorithms appear to get "stuck" at a local optimum (a smaller peak that is not the tallest)? Explain why this happens based on how those algorithms work.
    3. Which algorithms eventually find the global optimum (the tallest peak)? What property of those algorithms allows them to escape local optima?
    4. Define the exploration vs. exploitation trade-off in optimization. For each algorithm in the visualizer, classify it as leaning toward exploration, exploitation, or a balance of both — and justify your answer in one sentence each.

    Deliverable: Written reflection (300–500 words), submitted as a PDF.


    Homework Assignment 2 — Mathematical Analysis

    Title: Gradient Descent in Your Own Hands

    Objective: Implement and analyze gradient descent on a multimodal function.

    Instructions: Consider the 2D function:

    f(x,y)=sin(x)cos(y)+0.1(x2+y2)f(x, y) 

    This function has multiple local maxima and minima, similar to the landscape in the visualizer.

    1. Plot the function surface over the domain x[5,5]x \in [-5, 5] y[5,5]y \in [-5, 5]  using Python (matplotlib) or any tool of your choice.
    2. Implement gradient descent (minimization) from scratch using the update rule:
    xt+1=xtαf(xt,yt)

    Test at least three different starting points and three different learning rates (α=0.01,0.1,0.5\alpha = 0.01, 0.1, 0.5 ).

    1. Record for each run: the starting point, the final converged point, the function value at convergence, and whether it found a global or local minimum.
    2. Answer: How does the choice of starting point affect which minimum is found? Relate this back to what you observed in the 3D visualizer — why is gradient descent susceptible to the landscape's topology?

    Deliverable: Code + a short written report (1 page) comparing your runs and drawing conclusions.





    Homework Assignment 3 — Comparative Algorithm Design

    Title: When Does Simulated Annealing Beat Gradient Descent?

    Objective: Empirically compare a local vs. global optimization strategy.

    Instructions: Using Python (or pseudocode + written analysis), design an experiment that compares Gradient Descent and Simulated Annealing on a fitness landscape of your choice (you may use the function from HW2 or define your own multimodal function with at least 3 local optima).

    1. Implement both algorithms. For Simulated Annealing, use an exponential cooling schedule:
    T(t)=T0γtT(t) = T_0 \cdot \gamma^t

    where T0T_0  is the initial temperature and γ(0,1)\gamma \in (0,1)  is the cooling rate.

    1. Run each algorithm 50 times from random starting points uniformly sampled from the domain. Record what fraction of runs find the global optimum for each algorithm.
    2. Vary the SA temperature schedule — test at least two values each for T0T_0  (high vs. low initial temperature) and γ\gamma  (fast vs. slow cooling). How does the temperature schedule affect the balance between exploration and exploitation? Which setting performs best?
    3. Create a summary table and at least one plot (e.g., success rate vs. cooling rate) comparing the algorithms.
    4. Conclude: In what problem scenarios would you recommend Simulated Annealing over Gradient Descent? Are there situations where the reverse is true? Use your results as evidence.

    Deliverable: Code + a 1–2 page written analysis with your table and plot included.





    These three assignments build progressively — from conceptual understanding, to mathematical implementation, to comparative experimental design — directly grounded in what the "Optimization in Hyperspace" visualizer demonstrates. 

    HW#7 Analog IC Design

     

    課堂練習 

    Deadline: This Saturday at 23:59

    Send all the share links to  me chang212@gmail.com by email with subject HW#6 [your id, your name]

    任選1題



    1  (a) A BJT Differential Pair IC Die  (share) is incorrectly designed. Fix the die. 

    (b) Make a schematic

    (c) Do parameter optimization via SA (simulated annealing)

    (d) Placement & Routing for the die

    For example you may use Quadratic Placement  & ILP+PathFinder+A* Routing














    2. Design 2-stage diff pair (share from very simple diff pair)

    (a)  Make a schematic,  

    (b) Draw a  silicon die, considering Miller Compensation

    (c) Do P&R (Placement & Routing) for the IC
    See example of  P&R+opt compo

    2026年4月6日 星期一

    HW#6 PLL

     本次習題基本說明

    進階說明


     1. (a) Build a 9.0 GHz 65 nm Fractional-N PLL Synthesizer with NM Optimization 


    (b)  Cross check your PLL  by MNA

    Hint: What is NM method? NM Algo


    2.

    (a) Build Apple C1 ADPLL — 7.0 GHz (spec) with A* optimization, TSMC N7

    Apple C1 ADPLL — 7.0 GHz  





    EX#6 A* Scheduling

    本次習題基本說明

    進階說明


         Handouts


    Comparison of LLMs
    Claude Opus 4.6 optimal (visualizing how AI thinks)
    Gemini 3.0 Pro 推理,optimal
    ChatGPT 5, end results 流程圖  feasible, not optimal,

    課堂練習 

    Deadline: This Saturday at 23:59

    Send all the share links to  me chang212@gmail.com by email with subject EX#6 [your id, your name]



     1. 搶救感恩節晚餐大作戰講義 題目 使用AI推理或用程式計算出最佳計畫, 然後將求解過程視覺化


    推理視覺化(動畫)

    style 1


    style 2



    A* 搜尋樹狀圖(動畫)

    style 1


    style 2



    2. 搶救感恩節晚餐大作戰講義 題目 使用AI推理或用程式計算出最佳計畫, 然後將得出結果視覺化



    狀態圖(State Diagram) 









    state diagram with aligned timeline





    看板圖 (Kanban)


     (interactive timeline)




    流程圖(Flow chart)




    timed flowchart with interactive timeline (share)