VVang
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 交接文件 ###### tags: `aging` [toc] # 實驗環境簡介 - modelcard_experiment 裡面是用來算出每年 Vth 值的 script,得到 Vth 值再使用到[這個網站](http://ptm.asu.edu/) 製作 PTM model card - hspice_experiment 算出每個 benchmark 的 delay 和 power consumption - multicore_experiment 模擬每個 benchmark 的老化,計算每個 policy 的 lifetime 和 power consumption ``` +-- experiment/ | +-- hspice_experiment/ | +-- gen_benchmark_profile/ | +-- multicore_experiment/ | +-- modelcard_experiment/ ``` 這個 work 主要是做 task-to-core assignment, 我們將每個 benchmark circuit 當作 core,並將他們的 input pattern 當作 task, 因此一個 benchmark run 一組 input pattern 的時間就是每個 task 的執行時間 # hsipice experiment file structure ``` +-- hspice_experiment/ | +-- benchmark/ | +-- customized_32nm_model_card/ | +-- hspice_result/ | +-- input_pattern/ | +-- model_card/ | +-- ncverilog/ | +-- script/ | +-- test_header/ | +-- v2lvs/ ``` 從 github clone 下來之後,進到 hsipice_experiment 目錄,第一步先執行 ``` ln -s script/* . ``` :::info 先把所有 script 都 link 到這個目錄下,這樣執行時路徑才不會出錯 ::: 在這個實驗中會執行 4 個 script: 1. gen_input_pattern.pl 產生 benchmark circuit 的 input pattern 2. run_ncverilog.pl 產生 benchmark circuit 的 output pattern 3. run_input_profile.pl 產生 benchmark circuit 在某個電壓之下,不同時間的 spice 檔案 4. run_hspice.pl 執行 hspice,得出每個 spice 檔案的 (不同老化時間) 的 delay, power 以下以 c432 這個 benchmark 為例子 ### 1. gen_input_pattern.pl 使用方式為 :::success ./gen_input_pattern.pl $benchmark $number_of_tasks $number_of_pattern ::: 執行 ``` ./gen_input_pattern.pl c432 20 16 ``` 第一次出現錯誤 ![](https://i.imgur.com/pKSKJmz.png) > export [PERLLIB](https://tw.perlmaven.com/how-to-change-inc-to-find-perl-modules-in-non-standard-locations) > `export PERLLIB=/home/wang/aging/hspice_experiment/ncverilog` ```cpp echo $PERLLIB /home/wang/aging/hspice_experiment/ncverilog$ ``` ```cpp sub transpose_input_vec_file{ ... my $input_dir = "./input_pattern"; ... } ``` 執行後可以看到 input_pattern/c432 目錄下產生了 20 組 input_vec_file, ![](https://i.imgur.com/KnHPz9f.png) trans 開頭的是將原本的 input_vec_file 進行 transpose 得到的,這只是為了方便 script 讀取,不須理會 打開其中一個 ``` vi ./input_pattern/c432/rand_input_vector_c432_0.out ``` ![](https://i.imgur.com/FMQ8CrZ.png) 檔名最後面的 0 代表這是 task 0,可以看到裡面有 16 組 input pattern,每一條 pattern 的長度等於 input pin 個數 ### 2. run_ncverilog.pl 使用方式為 :::success ./run_ncverilog.pl $benchmark $number_of_tasks ::: ``` ./run_ncverilog.pl c432 20 ``` ### 3. run_input_profile.pl 使用方式為 :::success ./run_input_profile.pl $benchmark $number_of_pattern $number_of_tasks ::: ``` ./run_input_profile.pl c432 16 20 ``` ### 4. run_hspice.pl 使用方式為 :::success ./run_hspice.pl $benchmark $number_of_tasks ::: ``` ./run_hspice.pl c432 N |& tee log/run_hspice_c432.log ``` # generate benchmark profile 這個部分是要將前面 hspice experiment 所產生的結果,蒐集成一個紀錄 delay/power consumption 的檔案 (benchmark_profile),後續的 multicore experiment 會使用這些 benchmark_profile - 步驟 1. 打開 run_simulate.pl,修改 benchmark 名稱 ![](https://i.imgur.com/e18tccU.png) 2. 打開 source_code/getTaskProfile.cpp,將最底下的 GetTaskProfile function 內的第一個for迴圈中的數字,改成要讀取的電壓值 (例如 hspice experiment中,用 0.8v,則設 i=8;i<9) ![](https://i.imgur.com/dJm79BW.png) 3. 執行 ./run_simulate.pl,如果遇到 Fail to open 的錯誤訊息,通常是因為有些 result 檔案沒有放到正確位置,因此讀取不到,例如以下,把 0_12_50_9m.* 全放進 0_12_50_9m/ ,再重跑一次即可 ![](https://i.imgur.com/HmD99J5.png) ![](https://i.imgur.com/4nHNC3u.png) 4. 跑完的結果會放在 benchmark_profile 內,把他複製到 ../multicore_experiment/benchmark_profile,進行後續實驗 ![](https://i.imgur.com/QiX4fL5.png) # multicore experiment file structure ``` +-- multicore_experiment/ | +-- benchmark_profile/ | +-- gen_env/ | +-- parse_result/ | +-- object_code/ | +-- source_code/ | +-- getTaskProfile.h | +-- getTaskProfile.cpp | +-- parseENV.h | +-- parseENV.cpp | +-- parseSTG.h | +-- parseSTG.cpp | +-- read_mt.h | +-- read_mt.cpp | +-- readTaskProfile.h | +-- readTaskProfile.cpp | +-- task.h | +-- task.cpp | +-- sim.h | +-- sim.cpp | +-- main.cpp / +-- task_graph / +-- env ``` 這個實驗中,會模擬heterogeneous multicore system的行為,讀取事先定義好的 task graph,依序執行 task。 - 步驟 1. 設定 big/little core 的 benchmark,以及設定要 run 的 policy ![](https://i.imgur.com/MPePCyj.png) 2. 設定 env (critical task 和 non-critical task 組合) 3. 執行 ./run_simulate.pl 4. 至 parse_result/ ,修改 parse_result.pl 的 benchmark ![](https://i.imgur.com/QnaBwwO.png) 5. 執行 ./parse_result,結果會整理成一份 csv 檔案,其中包含 - 每個 policy 的 big/little cluster/total lifetime, energe, power consumption - 每個 policy 的結果 normalize 到 Sym policy 的結果 ![](https://i.imgur.com/SvehDOv.png) 6. paper 中的圖表即是將每個 benchmark 的 lifetime/power normalization 結果放在一起製作圖表 ![](https://i.imgur.com/T48lSna.png) ![](https://i.imgur.com/9Ri361g.png) # model card experiment 這個實驗套用了較新版本的 vth equation,基本上已完成,不需要更改,細節可參考[這篇論文](https://ieeexplore.ieee.org/document/8563055)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully