TrueDualPortMemoryPort<LogicType extends Logic> class

A port that can independently issue reads and writes.

Use TrueDualPortMemoryPort.typed to carry a structured word. Its writeData and readData retain that schema through module boundaries, and a packed Logic endpoint of equal width is accepted as a bridge.

Inheritance

Constructors

TrueDualPortMemoryPort(int dataWidth, int addrWidth, {int? maskWidth})
Creates a true dual-port memory port with a packed word.
TrueDualPortMemoryPort.typed(LogicType data, int addrWidth, {int? maskWidth})
Creates a true dual-port memory port preserving the schema of data.

Properties

addr → Logic
Address used by the active operation.
no setter
addrWidth → int
Width of one address.
final
allowRenamedPayloadClones → bool
Whether typed ports accept recursively type-preserving parent renames.
no setterinherited
dataWidth → int
Width of one stored word.
final
hashCode → int
The hash code for this object.
no setterinherited
ignoreConstantPayloadNames → bool
Whether generated constant leaf names can differ from driveable clones.
no setterinherited
maskWidth → int?
Number of independent write-mask segments, or null for an unmasked write.
final
ports → Map<String, Logic>
Maps from the Interface's defined port name to an instance of a Logic.
no setterinherited
readData → LogicType
Data returned by the delayed read response.
no setter
readEn → Logic
Enables a read on this port.
no setter
readValid → Logic
Valid bit for the delayed read response.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typedPayloadPorts → Map<String, TypedInterfacePortPolicy>
Ports that should retain and validate their declared payload schemas.
no setteroverride
writeData → LogicType
Data presented for a write.
no setter
writeEn → Logic
Enables a write on this port.
no setter
writeMask → Logic?
One enable bit for each masked write segment.
no setter

Methods

clone() → TrueDualPortMemoryPort<LogicType>
Creates a new Interface with the same ports as this.
override
conditionalDriveOther(Interface<TrueDualPortMemoryGroup> other, Iterable<TrueDualPortMemoryGroup> tags) → Conditional
Makes this conditionally drive interface signals tagged with tags on other.
inherited
conditionalReceiveOther(Interface<TrueDualPortMemoryGroup> other, Iterable<TrueDualPortMemoryGroup> tags) → Conditional
Makes this signals tagged with tags be driven conditionally by other.
inherited
connectIO(Module module, Interface srcInterface, {Iterable<TrueDualPortMemoryGroup>? inputTags, Iterable<TrueDualPortMemoryGroup>? outputTags, Iterable<TrueDualPortMemoryGroup>? inOutTags, String uniquify(String original)?}) → void
Connects module's inputs, outputs, and inOuts up to srcInterface and this Interface.
inherited
driveOther(Interface<TrueDualPortMemoryGroup> other, Iterable<TrueDualPortMemoryGroup> tags) → void
Makes this drive interface signals tagged with tags on other.
inherited
getPorts([Iterable<TrueDualPortMemoryGroup>? tags]) → Map<String, Logic>
Returns all interface ports associated with the provided tags as a Map from the port name to the Logic port.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
port(String name) → Logic
Accesses a port named name.
inherited
receiveOther(Interface<TrueDualPortMemoryGroup> other, Iterable<TrueDualPortMemoryGroup> tags) → void
Makes this signals tagged with tags be driven by other.
inherited
setPorts(List<Logic> ports, [Iterable<TrueDualPortMemoryGroup>? tags]) → void
Adds a collection of ports to this Interface, each associated with all of tags.
inherited
toString() → String
A string representation of this object.
inherited
tryPort(String name) → Logic?
Provides the port named name if it exists, otherwise null.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited