---
# System prepended metadata

title: TinyNet
tags: [Simulator]

---


###### members: @kimpao

## check list
- SRAM
    - [x] 用double buffer
        - [x]  當buffer滿的時候，一次只移動一個tensor到另一個buffer或DRAM
    - [x] active buffer中的tensor依照remain use time排序 (remain use time越少的排在越前面，更容易被踢回DRAM)
    - [x] 從input active buffer跟output drain buffer要被踢回DRAM的tensor會先留在一個SRAM中的暫存空間，滿了才會一起踢回DRAM
        - 暫存空間 : input active buffer : input prefetch buffer = 0.1 : 0.45 : 0.45
    - [x] 可以設定各個buffer的大小，暫存空間大小，DRAM跟SRAM之間的bandwidth
- scheduling
    - [x] 用新的scheduling讓SRAM中的data reuse可以更高
        - 執行當下reuse比例跟量最高op
        - 第一次執行用來確定op的執行順序
    - [x] 需要去DRAM抓tensor時，prefetch後面要執行的operators需要的tensors
        - 盡量每次滿足DRAM的bandwidth
        - 第二次執行用來達到最好的prefetch效果 (減少access DRAM的次數)
        - [x] 可以支持同時執行多個operator執行 (未測試)
- [x] 測試super resolution models
- [x] 用MAESTRO評估多大的systolic array最少需要多少SRAM大小
- [x] 寫回planaria (先測試能不能反映平行度)
- fused layer比較
    - 有多考慮weight
    - 有考慮fully utilization
    - 有修改SRAM replacement policy
- bandwidth
    - 頻率為2133MHz, bandwidth為17GB/s
        - $\frac{1.7*10^{10}}{2.133*10^{9}}=8$ byte/cycle

## Weekly Progress
* [10/06/2022 - 10/13/2022](/RURznCFtSryJ-SAi_NXpuQ)
* [10/13/2022 - 10/20/2022](/xka9bNIZRWScUUDNJHt9mg)
* [10/20/2022 - 10/27/2022](/L4qEIy3zRUi63IUExdLoCg)
* [10/27/2022 - 11/03/2022](/HKKgdgHATHOqeuSaU6rDVA)
* [11/03/2022 - 11/10/2022](/1iB4unWtT7iO8MyCCp4FPQ)
* [11/10/2022 - 11/17/2022](/kF6QtlBATQeQh1-BbL_NBw)
* [11/17/2022 - 11/24/2022](/UTpDmEVHQn-xppj7mDhkkA)
* [11/24/2022 - 12/01/2022](/XwiSqagcSCevkjS19W63dg)
* [12/01/2022 - 12/08/2022](/8i9dp1hvRVufjE7gZXtOIw)
* [12/08/2022 - 12/15/2022](/5YmnN4XyRC2rnXZg5RMpWQ)
* [12/15/2022 - 12/22/2022](/_ztDpFEKSiKagkHi0tsOKg)
* [12/22/2022 - 01/05/2023](/nN3B0JOXQTedXUqy9xkPig)
* [01/05/2023 - 01/17/2023](/H8RzSCDMQ_G8y5lr9_OGww)
* [01/17/2023 - 02/02/2023](/UhoPj54lR5OIZiHW_3PWiw)
* [02/09/2023 - 02/15/2023](/Du9Q3gdzSH-00wxeV7oW-g)
* [02/15/2023 - 02/22/2023](/Q5BNLGJMTx6QoeqUJFantw)
* [02/22/2023 - 03/01/2023](/SJvZUV7Ri)
* [03/01/2023 - 03/08/2023](/SysOKw3Aj)
* [03/08/2023 - 03/15/2023](/HJNw8jS1h)
* [03/15/2023 - 03/29/2023](/Sy2wFyJZ2)
* [03/29/2023 - 04/12/2023](/r15dvvez3)
* [04/12/2023 - 04/20/2023](/SJJTAkrGn)
* [04/20/2023 - 04/26/2023](/BJeilSZ7h)
* [04/26/2023 - 05/03/2023](/HJphmSUm2)
* [05/03/2023 - 05/10/2023](/rJNIJjgEh)
* [05/10/2023 - 05/17/2023](/SyJeSzAEh)
* [05/17/2023 - 05/24/2023](/HJyUR1MBh)
* [05/24/2023 - 05/31/2023](/rk709fZ82)
* [05/31/2023 - 06/07/2023](/H1CY8Js83)
* [06/07/2023 - 06/14/2023](/SkFcESQD2)
* [06/14/2023 - 06/21/2023](/H1SB5FnP3)
* [06/21/2023 - 06/28/2023](/rJeaYOSdn)
* [06/28/2023 - 07/05/2023](/HylGj8tu3)
* [07/05/2023 - 07/12/2023](/H1_2HifF2)
* [07/12/2023 - 07/19/2023](/S1xzgVasKn)
* [07/20/2023 - 07/27/2023](/HkpXpz85h)
* [07/27/2023 - 08/03/2023](/HJ4flv1i3)
* [08/03/2023 - 08/10/2023](/Synqz1Fin)
* [08/10/2023 - 08/17/2023](/HkC770vn3)
* [08/17/2023 - 09/01/2023](/SJDmCvTnn)
* [09/01/2023 - 09/07/2023](/rJtJ0ekC3)
* [09/07/2023 - 09/14/2023](/rJ7XbOPCh)
* [09/14/2023 - 09/21/2023](/HyYZvex1T)
* [09/21/2023 - 09/28/2023](/B1sHOPKyT)
* [09/28/2023 - 10/05/2023](/SkIDjnMgp)
* [10/05/2023 - 10/12/2023](/BkQre0oea)
* [10/12/2023 - 10/19/2023](/BJl0hJ_-T)
* [10/19/2023 - 10/26/2023](/By_C3GA-a)
* [10/26/2023 - 11/02/2023](/S1eEGtNpMT)
* [11/02/2023 - 11/09/2023](/rknl3AXXT)
* [11/09/2023 - 11/16/2023](/rkohXW676)
* [11/16/2023 - 11/23/2023](/B1IKh2K46)
* [11/23/2023 - 11/30/2023](/rJR4q96Va)
* [11/30/2023 - 12/07/2023](/Hko2X2KHT)
* [12/07/2023 - 12/14/2023](/HJhCklL8p)
* [12/14/2023 - 12/21/2023](/Hkq4DvaLp)
* [12/21/2023 - 12/28/2023](/Hkjnl0-DT)
* [12/28/2023 - 01/04/2024](/B1SGyziDa)
* [01/04/2024 - 01/11/2024](/rJQQKn7uT)
* [01/11/2024 - 01/18/2024](/SJSbbKWYa)
* [01/18/2024 - 01/25/2024](/rk4klMIYa)
* [01/25/2024 - 02/01/2024](/BkZDL975T)
* [02/01/2024 - 02/22/2024](/r1CQtK99a)
* [02/22/2024 - 02/29/2024](/rkTZnAN3a)
* [02/29/2024 - 03/14/2024](/SJ8B1WWpT)