pub struct LineBus {
pub ports: u32,
pub line_bytes: u32,
pub addr_bits: u32,
pub tag_bits: u32,
pub msb_first: bool,
pub prefix: String,
pub image: Vec<ImageLine>,
pub regions: Vec<LineRegion>,
}Expand description
The memory a device reads and writes whole lines of, served by the harness over ports channels:
each a request (<prefix>_req_valid, _rw, _byteen, _addr — a line address — _data, _tag,
_ready) and a read response (<prefix>_rsp_valid, _data, _tag, _ready); a write has no
response. Each signal carries every port’s value side by side, port 0 in the most significant
bits when msb_first. The harness accepts every request and answers each read in order on its
port from the next cycle on, with the line as it is when answered: an ideal memory, never a
candidate’s bottleneck.
Fields§
§ports: u32§line_bytes: u32§addr_bits: u32§tag_bits: u32§msb_first: bool§prefix: String§image: Vec<ImageLine>§regions: Vec<LineRegion>Trait Implementations§
Source§impl<'de> Deserialize<'de> for LineBus
impl<'de> Deserialize<'de> for LineBus
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
impl StructuralPartialEq for LineBus
Auto Trait Implementations§
impl Freeze for LineBus
impl RefUnwindSafe for LineBus
impl Send for LineBus
impl Sync for LineBus
impl Unpin for LineBus
impl UnsafeUnpin for LineBus
impl UnwindSafe for LineBus
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.