pub struct BoardConfig {
pub ct_mem: usize,
pub ct_pc: Vec<MemKind>,
pub heap_size: usize,
pub lut_mem: usize,
pub lut_pc: MemKind,
pub fw_size: usize,
pub fw_pc: MemKind,
pub trace_pc: MemKind,
pub trace_depth: usize,
pub bsk_pc: Vec<MemKind>,
pub ksk_pc: Vec<MemKind>,
}
Expand description
On-board memory configuration
Define the Hbm pc properties and required memory size
NB: Hbm pc must match with fpga/xr/kernel/${board}/cfg/${config}.cfg
Fields§
§ct_mem: usize
Ciphertext memory Expressed the number of ciphertext slot to allocate
ct_pc: Vec<MemKind>
Depict the list of memories connected to ct master_axi
heap_size: usize
Expressed the number of ct_mem slot used for heap Heap is then used downward
lut_mem: usize
Expressed the number of PbsLut slot to allocate
lut_pc: MemKind
Depict the memory connected to glwe master_axi
fw_size: usize
Expressed the size in u32 word allocated to Fw table
fw_pc: MemKind
Depict the memory connected to ucore fw master_axi
trace_pc: MemKind
Depict the memory connected to trace manager
trace_depth: usize
The trace memory depth in MB
bsk_pc: Vec<MemKind>
Depict the hbm_pc connected to bsk master_axi
ksk_pc: Vec<MemKind>
Depict the hbm_pc connected to bsk master_axi
Trait Implementations§
Source§impl Clone for BoardConfig
impl Clone for BoardConfig
Source§fn clone(&self) -> BoardConfig
fn clone(&self) -> BoardConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BoardConfig
impl Debug for BoardConfig
Source§impl<'de> Deserialize<'de> for BoardConfig
impl<'de> Deserialize<'de> for BoardConfig
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 BoardConfig
impl RefUnwindSafe for BoardConfig
impl Send for BoardConfig
impl Sync for BoardConfig
impl Unpin for BoardConfig
impl UnwindSafe for BoardConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more