Ejemplo n.º 1
0
        /// <summary>
        /// BSIM1 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 GenerateBSIM1Model(CircuitIdentifier name, string type, string version)
        {
            BSIM1Model model = new BSIM1Model(name);

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

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

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