/mos.lua
https://code.google.com/p/google-pinyin-api/ · Lua · 35 lines · 21 code · 5 blank · 9 comment · 11 complexity · 11a74698cacc0e5ed766535e216156b2 MD5 · raw file
- -- encoding: UTF-8
-
- ------------------------------------------------
- -- ????MOSFET????????
- -- ??: Mike
- -- ??: 0.1
- -- ????: http://code.google.com/p/google-pinyin-api/
- --
- -- ?????GPLv3??
- ------------------------------------------------
-
- function mos(input)
- if #input== 0 then
- return { { suggest = "idsa", help = "Ids (Vds<Vgs-Vth)" },
- { suggest = "idsb", help = "Ids (Vds>Vgs-Vth)" },
- { suggest = "b", help = "?" },
- { suggest = "vth", help = "???" },
- { suggest = "gm", help = "?????" },
- }
- elseif input == "idsa" then
- return "Ids=?[(Vgs-Vth)Vds-1/2Vds^2] (Vds<Vgs-Vth)"
- elseif input == "idsb" then
- return "Ids=1/2?(Vgs-Vth)^2(1+?Vds) (Vds>Vgs-Vth)"
- elseif input == "b" then
- return "?=?effCox(W/L) (??Cox=?ox/Tox)"
- elseif input == "vth" then
- return "Vth=Vth0+?[?(Vsb+2?)-?(2?)]"
- elseif input == "gm" then
- return "gm=?(Vgs-Vth)(1+?Vds) (???)"
- end
- end
-
- ime.register_command("fm", "mos", "MOSFET??????")