⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mos.m

📁 cmos仿真程序, cmos仿真程序, cmos仿真程序,
💻 M
字号:
% Unified transistor model as defined in Rabaey, Chandrakasan and Nikolic

function id = mos(W, L, vgs, vds, vsb, technology)
% technology is a list of technology parameters
% [type vt0 gamma beta lambda vdsat ld wd]
% W and L are expressed in micron

% compute the effective vt
type = technology(1);
vt = threshold(vsb, type, technology(2), technology(3));

leff = L - technology(7);
weff = W - technology(8);
vsat = technology(6);
for i=1:length(vgs)
   vgt = vgs(i)-vt;
   if (vgt * type < 0)
      id(i,:) = zeros(1, length(vds));
   else
      for j=1:length(vds)
          if (type == 1)
              vde(j) = min([vgt vds(j) vsat]);
          else         
              vde(j) = max([vgt vds(j) vsat]);
          end
      end
      id(i,:) = (weff/leff) * technology(4) * (vgt * vde - vde.^2/2.0).*(1 + technology(5) * vds);
   end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -