2009年7月11日 星期六

ngspice for windows



下載與安裝
步驟1:ngspice running on windows(請按右鍵另存目標)來進行下載
步驟2:將下載檔案ngspice19_090426裡的spice資料夾解壓縮至C:\
步驟3:此時執行檔的路徑為C:\spice\bin\ngspice.exe

建立spice code
步驟1:打開空白記事本
步驟2:依下圖寫出spice code來進行模擬







spice code:
*ex1
V1 2 0 10
R1 2 1 50
R2 1 0 50
.TRAN 1n 5n
.end



步驟3:另存新檔至C:\spice\bin\,別忘了副檔名必須為.sp,例如:ex1.sp
步驟4:執行C:\spice\bin\ngspice.exe











步驟5:在命令欄裡直接輸入所要的檔案,例如:ex1.sp















步驟6:接下來再輸入run





















步驟7:若要看V1的波形可以再輸入plot v1(1)


沒有留言:

張貼留言