pub struct Bsim3Model { /* private fields */ }Expand description
.model … nmos/pmos(level=8|49 …): a BSIM3v3.3.0 model
card, ngspice-47’s (bsim3def.h sBSIM3model). Parameters
are set by deck keyword through Bsim3Model::set; like
the C, every parameter remembers whether it was given,
since b3set.c/b3temp.c branch on that.
Implementations§
Source§impl Bsim3Model
impl Bsim3Model
Sourcepub fn new(nmos: bool) -> Self
pub fn new(nmos: bool) -> Self
An empty card of the given polarity: nothing given, every
default still to be applied by BSIM3setup.
Sourcepub fn set(&mut self, name: &str, value: f64) -> Result<(), String>
pub fn set(&mut self, name: &str, value: f64) -> Result<(), String>
Set one model parameter by its deck keyword (lowercase, the
b3.c names and aliases: vth0/vtho, nch, rsh, …),
marking it given (BSIM3mParam). The integer selectors
(capmod, mobmod, noimod, nqsmod, acnqsmod, acm,
calcacm, paramchk, binunit) truncate like IF_INTEGER;
tnom is in °C. Unknown keywords are an error.
Sourcepub fn set_version(&mut self, version: &str)
pub fn set_version(&mut self, version: &str)
VERSION=: kept as given (only 3.3.x is implemented).
Trait Implementations§
Source§impl Clone for Bsim3Model
impl Clone for Bsim3Model
Source§impl Debug for Bsim3Model
impl Debug for Bsim3Model
Source§impl Default for Bsim3Model
impl Default for Bsim3Model
Source§impl PartialEq for Bsim3Model
impl PartialEq for Bsim3Model
impl StructuralPartialEq for Bsim3Model
Auto Trait Implementations§
impl Forget for Bsim3Model
impl Freeze for Bsim3Model
impl Move for Bsim3Model
impl RefUnwindSafe for Bsim3Model
impl Send for Bsim3Model
impl Sync for Bsim3Model
impl Unpin for Bsim3Model
impl UnsafeUnpin for Bsim3Model
impl UnwindSafe for Bsim3Model
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more