Esempio n. 1
0
        /// <summary>
        /// BSIM2 model generator
        /// Version is ignored
        /// </summary>
        /// <param name="name">Name</param>
        /// <param name="type">nmos or pmos</param>
        /// <param name="version">Version</param>
        /// <returns></returns>
        public static ICircuitObject GenerateBSIM2Model(CircuitIdentifier name, string type, string version)
        {
            BSIM2Model model = new BSIM2Model(name);

            switch (type)
            {
            case "nmos": model.SetNMOS(true); break;

            case "pmos": model.SetPMOS(true); break;

            default:
                throw new Exception("Invalid type \"" + type + "\"");
            }
            return(model);
        }
Esempio n. 2
0
 /// <summary>
 /// Gets or sets the device model
 /// </summary>
 public void SetModel(BSIM2Model model) => Model = (Entity)model;