2021年5月18日 星期二

Virtuoso Layout 備忘錄

  • 顯示/隱藏 instance 內容
          Shift + f / Ctrl + f
  • 取消尺規自動貼齊
          k -> 滑鼠右鍵 -> smart snapping off
  • 畫斜的 path
          Create -> Shape -> Path (p) -> 按下F3
  • 在 LVS 時忽略 Dummy 電晶體 

          Setup -> LVS Options


  • Pin 用特定金屬的 pin layer (pn) 來標示
          Pin 不要打在尺規上,否則清除尺規時 pin 會一起消失


2020年10月30日 星期五

Compute-in-Memory

 
Crossbar Array (12x12) for Convolutional Layer
https://ieeexplore.ieee.org/abstract/document/7479502
- July 2016
- First demonstration of crossbar RRAM for conv operation

- Dec. 2017
- First demonstration of 1T1R array for conv operation

1T1R Array (Eight 2048-Cell Arrays) for CNN
- Jan. 2020
- Off-chip ARM core for ReLU
- 11,041 GOPS/W with 96% accuracy on MNIST

1T1R Array for Ternary Weights Binary Inputs CNN
- Aug. 2019
- FPGA for controller, activation function and pooling
- 16.95 TOPS/W with 97% accuracy on MNIST

1T1R Array (Eight 256x512 Arrays) for Multibit Input, Weight and Output CNN
- Jan. 2020
- 2-bit input, 3-bit weight and 4-bit output
- 53.17 TOPS/W for 1-bit input
- 21.9 TOPS/W for 2-bit input
- Accumulation parallelism: 9

1T1R Array (Eight 512x512 Arrays) for Multibit Input, Weight and Output CNN
- Feb. 2020
- 2-bit input, 4-bit-weight and 10-bit output
- 45.52 TOPS/W
- Accumulation parallelism: 16

1T1R Array (48 256x256 Arrays) for Multibit Input, Weight and Output CNN
- Aug. 2022
- Use voltage-mode sensing instead of current-mode sensing
- 8-bit input, 4-bit-weight and 10-bit output
- 43 TOPS/W for 1-bit input
- 40 TOPS/W for 2-bit input
- 16 TOPS/W for 4-bit input
- 7 TOPS/W for 8-bit input
- Accumulation parallelism: 256


Reference Survey Paper


2020年8月30日 星期日

喜歡的影視

 電影

雨人、心靈捕手、火線大逃亡、少年Pi的奇幻漂流、上帝之子、關鍵少數、悲慘世界、賽德克巴萊、新天堂樂園、與神同行、KANO、孤味、高年級實習生、流浪地球、葉問、遇見街貓BOB、心中的小星星、幸福綠皮書、末代武士、奇蹟·笨小孩、刺激1995、峰迴路轉、大賣空、分秒幣爭

動畫

可可夜總會、風之谷、龍貓、天空之城、魔法公主、魔女宅急便、神劍闖江湖

電視劇

通靈少女、茶金、用九柑仔店、警察榮譽、非常律師禹英禑、重啟人生、舞伎家的料理人

紀錄片

大地之吻、RBG不恐龍大法官、社子島少年行


2020年6月1日 星期一

Sheet Resistance


當我們要將設計好的電路進行製造之前,我們要進行 layout,也就是畫出電路的佈局圖。在進行 pre-simulation 時,電路模型是很理想的情況,不會考慮導線上的寄生電阻和電容,當我們進行佈局時,導線的長、寬、間距就會影響到這條導線的電阻和電容值。

一般導線的電阻值是由小方塊的導線電阻去計算出來的,這個小方塊的導線電阻稱為 sheet resistance。在製程文件裡面,通常會看到 sheet resistance 與 W/S 有關,其中 W 即是小方塊導線的寬度,而 S 則是導線與其他導線的間距。

導線之間的間距影響的應該是電容值吧?為什麼會影響電阻值呢?

原因與半導體製造的過程有關,一條導線是單獨存在,還是旁邊有其它導線存在,會影響製造時蝕刻的速率,造成金屬線的特性產生差異。

Reference


2020年5月21日 星期四

電晶體模型之分類


在 model 中常見的名詞:
  • SVT:standard threshold voltage
  • LVT:low threshold voltage
  • HVT:high threshold voltage
  • Native:threshold voltage approaches 0V
  • Overdrive:通常在較先進製程中,元件所能承受的電壓也較小,但可以透過加大 Lmin (最小 channel length),使元件能夠承受較高的電壓。
  • Underdrive:類似於 overdrive,在相同製程中,由於某些電路區塊的電壓較低,可以放寬 Lmin 的限制,讓元件的 channel length 可以小一點。


模擬製程偏移對電路的影響


在做電路模擬時,通常有以下幾種不同的模擬情境:
  1. Total corner
  2. Global corner + Local MC
  3. Local MC only
  4. Global MC + Local MC

Total Corner

電路中所有的電晶體都會套用同一種 corner 的電晶體 Vth。一般在模擬時,至少須包含以下幾種 corner:TT、SS、FF、SF、FS,其中的 T、S、F 分別代表電晶體的速度為 typical、slow、fast,前者為 NMOS,後者為 PMOS。

Global Corner + Local MC

首先我們從 TT、SS、FF、SF、FS 中選定一個 corner,所有電晶體 Vth 的平均值就由這個選定的 corner 來決定,而每一個電晶體又會依此平均值而產生製程偏移。

Local MC Only

所有電晶體 Vth 的平均值都是 TT corner,但每一個電晶體會依此平均值產生製程偏移。

Global MC + Local MC

每一個電晶體的 Vth 可能落在不同的 corner 當中。


Reference

2020年4月25日 星期六

PyTorch no_grad


在進行 back-propagation 時,有些路徑是我們不想要去計算 gradient 的,這時我們可以用 no_grad() 這個 function。但有一個需要注意的地方是,只有在 no_grad() 底下產生出來的 tensor 才會被 disable gradient。以下舉兩個例子:

a = torch.tensor(1.0, requires_grad=True)
with torch.no_grad():
     b = a
b.backward()

這時候我們去看 a.grad,會發現還是有 gradient 產生。原因就在於,這個 b = a 其實只是讓 b 成為一個 a 的 reference,也就是 b 其實就是 a,只是名字換了而已。在這種情況下,b 不是一個在 no_grad() 底下產生的 tensor,因此還是會有 gradient。

a = torch.tensor(1.0, requires_grad=True)
with torch.no_grad():
     b = a + 0
b.backward()

假如改成 b = a + 0,那所產生的 b 就是一個新的 tensor,並且此 tensor 是不會被計算 gradient 的。