示例#1
0
        /// <summary>
        /// Create a BJT with a model
        /// </summary>
        /// <param name="name">Device name</param>
        /// <param name="c">Collector</param>
        /// <param name="b">Base</param>
        /// <param name="e">Emitter</param>
        /// <param name="subst">Substrate</param>
        /// <param name="model">Model name</param>
        /// <param name="modelparams">Model parameters</param>
        BipolarJunctionTransistor CreateBJT(Identifier name,
                                            Identifier c, Identifier b, Identifier e, Identifier subst,
                                            Identifier model, string modelparams)
        {
            // Create the model
            BipolarJunctionTransistorModel bjtmodel = new BipolarJunctionTransistorModel(model);

            ApplyParameters(bjtmodel, modelparams);

            // Create the transistor
            BipolarJunctionTransistor bjt = new BipolarJunctionTransistor(name);

            bjt.Connect(c, b, e, subst);
            bjt.SetModel(bjtmodel);
            return(bjt);
        }
示例#2
0
        /// <summary>
        /// Create a BJT with a model
        /// </summary>
        /// <param name="name">Device name</param>
        /// <param name="c">Collector</param>
        /// <param name="b">Base</param>
        /// <param name="e">Emitter</param>
        /// <param name="subst">Substrate</param>
        /// <param name="model">Model name</param>
        /// <param name="modelparams">Model parameters</param>
        BipolarJunctionTransistor CreateBJT(string name,
                                            string c, string b, string e, string subst,
                                            string model, string modelparams)
        {
            // Create the model
            var bjtmodel = new BipolarJunctionTransistorModel(model);

            ApplyParameters(bjtmodel, modelparams);

            // Create the transistor
            var bjt = new BipolarJunctionTransistor(name);

            bjt.Connect(c, b, e, subst);
            bjt.SetModel(bjtmodel);
            return(bjt);
        }