劉育嘉
    • 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
    • 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 Versions and GitHub Sync Note Insights 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Hspice 內容 ## Display Simulation Result 使用.option post來儲存輸入電路描述檔的輸出模擬結果,hspice會另外儲存waveform。 記得將 post=2 來將Output format 變成ASCII的模式儲存。 :::warning <font color="#f00">Hspice中,語法輸入不分大小寫!! (一律小寫)</font> ::: ## 輸入檔的使用 (netlist file) ### components (重要) :::warning <font color="#f00">Hspice中,描述電晶體腳位皆為逆時針敘述!!</font> ::: 1.MOSFET (M) <font color="#f00"> 元件名稱 Drain(D) Gate(G) Source(S) Body(B) mod length width</font> ex: M1 n1 in vdd vdd nch l=1u(m) w=1u(m) ![](https://i.imgur.com/jHkWji0.png) <font color="#2B78F8">箭頭向內為NMOS,箭頭向外圍PMOS 若沒指定 PMOS的Body接VDD正極 NMOS的Body接gnd</font> 2.Diode (D) <font color="#f00"> 二極體名稱 正極接點 負極接點 模型名稱 width length</font> 3.BJT (Q) <font color="#f00"> 電晶體名稱 Collecter(C) Base(B) Emitter(E) Substrate(S)</font> ![](https://i.imgur.com/xZlSI7j.png) 4.JFET (J) <font color="#f00"> 電晶體名稱 Drain(D) Gate(G) Source(S) ![](https://i.imgur.com/rgRaijb.png) </font> 5.Source 基本電壓/電流源語法陳述:<font color="#f00"> V電壓/電流源名稱 正節點 負節點 <DC=直流值> <暫態型式及時變描述> <AC=交流值,<相腳>> </font> :::info 時變電源共有六種 (一)脈衝電源(Pulse) (二)阻尼式弦波電源(Damped Sinusoidal Source) (三)指數波型電源(Exponential Source) (四)片段線性電源(Piecewise Linear Source) (五)單調調頻電源(Single-Frequency FM Source) (六)單頻調幅電源(Single-Frequency AM Source) ::: 相依電壓電流源 E 電壓控制電壓源 ![](https://i.imgur.com/sFQxw1B.png) F 電流控制電壓源 ![](https://i.imgur.com/NE77QAp.png) G 電壓控制電流源 ![](https://i.imgur.com/Vmw816M.png) H 電流控制電流源 ![](https://i.imgur.com/jljG8tT.png) <font color="#f00"> 倍率元件名稱 倍率輸出節點1 倍率輸出節點2 來源輸入節點1 來源輸入節點2 相關倍率係數</font> 以圖3-2.3作為範例 G1 n1 n2 n3 n4 10m 10.R 電阻 <font color="#f00"> 電阻名稱 正節點 負節點 電阻值 </font> ![](https://i.imgur.com/YfjctkD.png) 11.K 互感 <font color="#f00"> 互感名稱 L耦合電感1 L耦合電感2 耦合係數K</font> 12.L 電感 <font color="#f00"> 電感名稱 正節點 負節點 電感值</font> ![](https://i.imgur.com/q6Owp7m.png) 13.C 電容 <font color="#f00"> 電容名稱 正節點 負節點 電容值</font> ![](https://i.imgur.com/xNvbUBt.png) 14.X 子電路 15.T/U/W 傳輸線 ==(1) T:低損耗型傳輸線 W:損耗型傳輸線 U:損耗型傳輸線== <font color="#f00"> 傳輸線名稱 訊號輸入點<1,2....> 訊號輸出點<1,2....> 輸入輸出端參考電位點 </font> ![](https://i.imgur.com/mJToMk6.png) ![](https://i.imgur.com/gULsvQ7.png) ![](https://i.imgur.com/ASCzOSO.png) (2) IBIS(緩衝器) (B) <font color="#2B78F8">常用於.DC以及.Trans</font> <font color="#f00"> 緩衝器名稱 節點<1,2....N> </font> <font color="#2B78F8">第一、二個節電分別會接到電路的電源和接地</font> ![](https://i.imgur.com/SyBsfg3.png) 16.DC:直流分析 (1).OP:計算直流工作點 <font color="#f00"> .OP <Format> <Time1,Time2..> <Format></Time1,Time2..> </font> 其中 format 內容包含: :::info All:執行完整工作點分析,包含各元件以及節點電壓、電流各項數值,而且可以指定時間 Brief:對於每一個元件只生成一行包含元件的電壓,電流(mA)和功率(mW)的摘要 Current:產生一包含元件電流及功率的電壓列表,再加上簡短的分析摘要 Debug:常用於分析結果不收斂的情況,可計算和顯示出不收斂的元件或節點在計算工作點時所採用的電壓以及容忍範圍 None:不會在輸出檔中印製所有元件以及節點的工作資訊,但會保留資料已進行其他分析 Voltage:只印出各元件和節點的電壓列表 ::: (2).DC:直流電源電路參數和溫度掃描 ![](https://i.imgur.com/XoLFIJc.jpg) ![](https://i.imgur.com/4I5AFMj.jpg) ex: .DC R1 1k 10k 0.5k SWEEP TEMP LIN 10 25 125 .DC V1 DEC 10 200m 1m SWEEP DATA=RDATA ==寫在前者的為主要掃描,後者為次要掃描 LIN為數據以線性方式去變化/DEC為每變化十倍時,計算幾個點== (3).SENS:靈敏度分析 ==計算電路中所有參數對於特定輸出變數所產生的影響== 元件靈敏度:某電路參數增加/減少時,輸出變數變化的程度,也可以正規化靈敏度 .sens 輸出變數1 <輸出變數2> <輸出變數3> ...... ==輸入檔中只能執行一個.sens陳述,若有多個出線的話則只會執行最後一個== (4).TF:小訊號分析 ==計算直流小訊號增益與 輸入/輸出阻抗== ==輸入檔中只能執行一個.TF陳述,若有多個出線的話則只會執行最後一個== .TF 輸出變數 輸入訊號源 (5).PZ:零極點分析 ==電容、電感及等校阻抗的極/零點(Pole/Zero)頻率分析== ![](https://i.imgur.com/2cbOnJE.jpg) .PZ 輸出變數 輸入訊號源 (6)蒙地卡羅分析 在使用蒙地卡羅分析之前,==需要先使用.PARAM來定義元件值或是參數的數值== 其中參數的分析方式可以區分為: Nominal (名義值) Variance (變異型式) Gaussian (高斯) Uniform (平均) Limit (極限) ![](https://i.imgur.com/xJzriRl.jpg) ![](https://i.imgur.com/VEqDvVM.jpg) ![](https://i.imgur.com/rsSXcGX.jpg) <font color="#f00"> 蒙地卡羅分析可以讓元件的值依照百分比的變化去進行測試</font> 17.AC:交流分析 18.TRAN:暫態分析 ## 語法的使用 .IC/.NODEST:串接電路或子電路節點電壓得初值設定 .PARAM:設定串接電路元件的參數值 .GLOBAL:全定義的參數 .END:電路輸入法結束 (必打) .ENDS:子電路輸入法結束 (必打) .DATA:元件卡資料 (可先定義再帶入到電路中) .TEMP:更改環境溫度 .DTEMP:使用變化量來提高/降低工作溫度 (可各自設定) .ALTER:

    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