pub struct Config {
pub name: Option<String>,
pub n: usize,
pub m: usize,
pub cell: String,
pub bl: Option<Vec<Float>>,
pub wl: Option<Vec<Float>>,
pub well: Option<Vec<Float>>,
pub adcs: Option<usize>,
pub bits: Option<usize>,
pub fs: Option<Float>,
pub options: Option<HashMap<String, String>>,
}Expand description
Represents one memory configuration for peripheral estimation.
This struct is typically deserialized from YAML or JSON using serde. It
contains both essential and optional parameters that control the peripheral
estimation process.
§Examples
name: 64-64
n: 128
m: 64
bl: [1, 2, 0]
wl: [4, 2.5, 0, 1]
well: [0, 4]
cell: 1FeFET_100
enob: 1
fs: 1e9
adcs: 64Fields§
§name: Option<String>Name of the configuration. If not supplied, the file path will be used.
n: usizeNumber of rows in the memory array.
m: usizeNumber of columns in the memory array.
cell: StringMemory cell type to use for estimation.
bl: Option<Vec<Float>>Bitline voltages
wl: Option<Vec<Float>>Wordline voltages
well: Option<Vec<Float>>Voltages required for well biasing
adcs: Option<usize>Number of downstream analog-to-digital converters.
bits: Option<usize>Number of bits required for ADCs.
fs: Option<Float>Sampling rate of the ADCs in Hz.
options: Option<HashMap<String, String>>Additional configuration options as key-value pairs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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