#[repr(transparent)]pub struct Platform(pub u32);
Expand description
Platform register. Allows software to know what environment it is running in during pre-production development. Post-production, the PLATFORM is always ASIC, non-SIM.
Tuple Fields§
§0: u32
Implementations§
source§impl Platform
impl Platform
pub const fn fpga(&self) -> bool
pub fn set_fpga(&mut self, val: bool)
pub const fn asic(&self) -> bool
pub fn set_asic(&mut self, val: bool)
pub const fn hdlsim(&self) -> bool
pub fn set_hdlsim(&mut self, val: bool)
pub const fn batchsim(&self) -> bool
pub fn set_batchsim(&mut self, val: bool)
pub const fn gatesim(&self) -> bool
pub fn set_gatesim(&mut self, val: bool)
Trait Implementations§
impl Copy for Platform
impl Eq for Platform
impl StructuralPartialEq for Platform
Auto Trait Implementations§
impl Freeze for Platform
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)