2026年4月11日 星期六

Placement & Rotuing

RF Power Amplifier


PA Placement

originalfixed (hardcoded), SA 1QPQP+SA (Small WireLen, non 0 viol.), 

QP+ILP+PrePass (No A* or SA, viol.) comparison with ACS summary, detail

Slides




BJT Differential Pair 

2026年4月8日 星期三

健康照護科技專題(二) Syllabus 2026 Fall

 (切換完整版課綱)

開場


Unit 1: AI Computer Vision

CNN (Convolutional Neural Networks) Handwashing

YOLO  (You Only Look Once) YOLOv7 list

ViT (Vision Transformers) wafer defects heat map comparison

VLM (Vision Language Models) nutrition analysis

Tesla AI Vision

HW#1 AI in Computer Vision


Unit 2: 盲人環境輔助理解,空間導航

空間資訊與識別輔助 


真實世界 3d 模型製作

HW#2 Understanding environments


Unit 3: 3d障礙偵測演算法

障礙偵測(Recast 原理)

Simulating A Navigation Assistant with sonar 

HW#3 Obstacle detection


Unit 4: 避障演算法

Voronoi an introduction, Voronoi for Place Names 

Voronoi 2D navigation (show Voronoi) (Rural Road 2d)

Voronoi-based Safe Routing Planning (Country Alley  2d)

Voronoi waypoints for navigation (share) (Campus Alley 3d) vs. non Voronoi 

A* search for Voronoi Navigation around moving obstacles



Unit 5: 環境安全檢測與評估視覺化 using Claude

Hazard detection (環境危害偵測)


Home Hazard chain identification and animation (居家危害鏈偵測與危害視覺化)


Unit 6: 


Unit 8 Space-Time Evolution


Unit 9 Advanced Prompts

How to scale up: Compound Artifacts


Unit 10 

AI for Academic Documentation


__________________________________________________________________

規模 9.0 程式設計的地震 



___________________________________________________________

Prompt Engineering Guide


Japan in Geological evolution



Prompts for scientific accuracy


2026年4月7日 星期二

HW#6 A* Circuit Optimization

 本次作業詳細說明


  課堂練習 

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. Design a Two-Stage BJT Amplifier according to goals specified using A* (Parameters to optimize RE1, RC1. RE2. RC2) 


A* search for optimizationshare  (c_mu=3 pF, c_pi=22 pF)




2. Optimize LM3886 class AB audio amplifier IC using A* (Parameters to optimize: resistors except the load) 

LM3886

A Search Setup*

  • State space: 5 components × 5 E12 values each = 3,125 possible states
  • g(n): actual steps taken from the start configuration
  • h(n): circuit performance cost (the heuristic) — sum of 5 weighted penalties
  • f(n) = g + h: A* priority queue ordering

Cost function (5 components, all minimized):

  • Gain: quadratic penalty for deviation from 26 dB (20×)
  • f_low: penalty if low-frequency cutoff exceeds 10 Hz
  • f_high: penalty if high-frequency cutoff falls below 100 kHz
  • Bias: penalizes Rb1 ≠ Rb2 (asymmetric thermal tracking)
  • Re stability: log-scale penalty away from 0.47 Ω optimum

the architecture inside the LM3886 and TDA7293
optimizer A* (share)

Lessons learned from AI use

Lesson 1

Design a Two-Stage BJT Amplifier (Parameters to optimizeRE1, RC1. RE2. RC2)

Note this is a degenerate model 




A* search for optimization, share 4-parameter (for bypassed model c_mu=3 pF, c_pi=22 pF) note: goal reached is actually current step, not current best


revised to OCT  model  A* search for optimizationshare 4-parameter (for bypassed model c_mu=3 pF, c_pi=22 pF)


using 2N2222 parameters (share)


Lesson 2

 Schematic 




Slides

Handouts



Lesson 3

MNA verification 



2026年3月31日 星期二

HW#5 LNA Optimization

1, 2 任選一題

本次作業詳細說明

1. Make a GD/(A*)+MNA Optimizer on a Apple C1 LNA Die

Hint: artifactshare


DE+MNA Optimizer on Die artifact


2. To achieve the 15-20 dB gain target and improve the LNA performance to match the schematic specs, use Differential Evolution Optimization to optimize the LNA performance.
Must verify your results to meet spec and parameters have to be realistic.

Hint: (DE+MNA Optimizer on Die artifact




demo (transfer function), ngspice, MNA of LNA

 









Want to get these figures, see the Claude share. (Opus 4.6)

2026年3月24日 星期二

HW#4 RF IC Design


建議工具

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

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

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


How to publish a Claude artifact

How to share a ChatGPT link

How to share Gemini Link


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 HW#4  [your id, your name]



Study Apple C1 Architecture

(a) On Claude, Run NGSpice for the LNA using given parameters. If the results do not match, explain why.

(b) Run an MNA simulation (Modified Nodal Analysis, as used in Cadence Spectre engine). Optimize the IC design to meet specs.

 

Optimized parameters (share)





running ngspice in Claude VM (amazing story)





initial parameters (MNA)




optimized parameters (share)



(c)  Perform DRC (Design Rule Check) for the  3.5 GHz LNA. If it is not entirely design rule compliant, redesign to make the layout more DRC driven.







(DRC, share) (DRC-driven, artifact)





2026年3月13日 星期五

Follow up of HW#3, Placement


PA Placement

original, fixed (hardcoded), SA 1, QP, QP+SA (Small WireLen, non 0 viol.), 

QP+ILP+PrePass (No A* or SA, viol.) comparison with ACS summary, detail


PA Parameter Optimization

original (analytical), Hessian, MNA (post QP+SA)


PA LessonsPA Verified by by computing the exact KCL residual at its converged solution, not because of blow up of MNA (share)


PA issues system crash, reality check, UI design




LNA reality check in simulator, prompt for spec compliance

 

LNA v3 (closed-form), V3 pathway to tape-out (advanced, ok omitted)




Overall


1 What is simulated annealing? shown on hyperfunctions comparing to other algorithms

2026年3月10日 星期二

HW#3 IC Design with Advanced AI

建議工具

使用 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


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 HW#3  [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.







Comparing A* & DFS/BFS

 A*/DFS

A*/DFS/BFS

2026年3月3日 星期二

JEPA Prediction for robot collision avoidance walking pedestrians

 Voronoi start-up A* + Repelling (example illustrated)





Core Navigation Repalced with JEPA + A*


HW#2 Reasoning and Search

 

建議工具

使用 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


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 HW#2  [your id, your name]


1.   

Solve Pz 2 using chain of thought (CoT) reasoning with each step whether correct or incorrect, showing backtracking. 

Animate the CoT process in the above synced with river crossing scenarios.  

Animate search tree with synced progression (A*/BFS side-by-side)

 2. 

Solve Pz 20 using chain of thought (CoT) reasoning with each step whether correct or incorrect, showing backtracking. 

Animate the CoT process in the above synced with river crossing scenarios.  

Animate search tree with synced progression (A*/BFS side-by-side)

2026年2月24日 星期二

Chain of Thought (CoT)

HW#1 Use AI Professionally

 

建議工具

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

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

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

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


課堂練習 

Deadline: This Saturday at 23:59

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

How to publish a Claude artifact

How to share a ChatGPT link

How to share a Grok link

How to share Gemini Link


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


任選一題



1. 

(a) Solve River Puzzles  (Pz 3Pz 20) by Chain of Thought and Visualize/Animate the process

(b) Verify each step not violating constraints and correctness.


2. Comparing LLMs: Claude 4.6, Gemini 3.0 Pro, ChatGPT 5.0 (三選二) for the following task.

Animate in 3d (in three.js) Yagi-Uda Antenna, AI pipe inspector, or things you choose. (擇一)

The animation must be scientifically accurate




Hints

  • Reasoning/Think/Extended Thinking Mode of the AI platform you use may be required for all the problems here
  • Pz 3 solutions on various platforms
  • Experiments on Pz 20 

River Crossing 20

 problem

animation23d

Animation of thoughts, not just solution, 2

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

Analysis of strategies



Part II 

2026年2月23日 星期一

AI Platforms & Variations

 


推薦 Opus 4.6 搭配思考模式(extended thinking)

我的使用體驗:

一次到位 vs. 反覆修正:這是 Opus 和 Sonnet 之間最核心的差異。Sonnet 在簡單任務上表現不錯,但面對複雜問題——像我們常做的 Three.js 地質動畫、LNA 教學投影片、A* 搜尋演算法視覺化這類高度整合的工作——Sonnet 容易在細節上出錯,需要來回修正好幾輪。Opus 因為推理深度更深,往往第一次就能把架構、邏輯、細節都處理到位。

Token 消耗的取捨:誠實地面對 Opus 單次消耗更多 token,這是因為思考模式下模型會在回應前進行更長的內部推理鏈。但從「總成本」角度來看,如果 Sonnet 要錯三次才修正到對,累積的 token 消耗和時間成本反而可能更高。這其實是一個「單次成本高但總效率高」vs.「單次便宜但需要多輪迭代」的經典取捨。

「比較一陣子才固定使用」:經過實際比較後的結論,更有參考價值。


AI Basics

 最好的程式語言 (Python? JavaScript?)

Prompt in English vs. Traditional English (中文版)

為什麼我的AI跟你不一樣: factorsbasic skills美學



supplemental


archive

2026年2月20日 星期五