ApbInterface class

A standard APB interface.

Inheritance

Constructors

ApbInterface({int addrWidth = 32, int dataWidth = 32, int userReqWidth = 0, int userDataWidth = 0, int userRespWidth = 0, bool includeSlvErr = false, bool includeWakeup = false, int numSelects = 1})
Construct a new instance of an APB interface.

Properties

addr → Logic
Address bus.
no setter
addrWidth → int
The width of address port addr.
final
aUser → Logic?
User request attribute.
no setter
bUser → Logic?
User response attribute.
no setter
clk → Logic
Clock for the interface.
no setter
dataWidth → int
The width of data ports wData and rData;
final
enable → Logic
Enable.
no setter
hashCode → int
The hash code for this object.
no setterinherited
includeSlvErr → bool
If true, generates the slvErr port.
final
includeWakeup → bool
If true, indicates that this interface supports wake-up.
final
nse → Logic
Extension to protection type.
no setter
numSelects → int
The number of select signals on this interface.
final
ports → Map<String, Logic>
Maps from the Interface's defined port name to an instance of a Logic.
no setterinherited
prot → Logic
Protection type.
no setter
rData → Logic
Read data.
no setter
ready → Logic
Ready.
no setter
resetN → Logic
Reset signal (active LOW).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
rUser → Logic?
User read data attribute.
no setter
sel → List<Logic>
Select.
latefinal
slvErr → Logic?
Transfer error.
no setter
strb → Logic
Write strobe.
no setter
userDataWidth → int
The width of user-defined data ports wUser and rUser.
final
userReqWidth → int
The width of user request port aUser.
final
userRespWidth → int
The width of user response port bUser.
final
wakeup → Logic?
Wake-up.
no setter
wData → Logic
Write data.
no setter
write → Logic
Direction.
no setter
wUser → Logic?
User write data attribute.
no setter

Methods

clone() → ApbInterface
Clone this ApbInterface.
override
conditionalDriveOther(Interface<ApbDirection> other, Iterable<ApbDirection> tags) → Conditional
Makes this conditionally drive interface signals tagged with tags on other.
inherited
conditionalReceiveOther(Interface<ApbDirection> other, Iterable<ApbDirection> tags) → Conditional
Makes this signals tagged with tags be driven conditionally by other.
inherited
connectIO(Module module, Interface srcInterface, {Iterable<ApbDirection>? inputTags, Iterable<ApbDirection>? outputTags, Iterable<ApbDirection>? inOutTags, String uniquify(String original)?}) → void
Connects module's inputs, outputs, and inOuts up to srcInterface and this Interface.
inherited
driveOther(Interface<ApbDirection> other, Iterable<ApbDirection> tags) → void
Makes this drive interface signals tagged with tags on other.
inherited
getPorts([Iterable<ApbDirection>? 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<ApbDirection> other, Iterable<ApbDirection> tags) → void
Makes this signals tagged with tags be driven by other.
inherited
setPorts(List<Logic> ports, [Iterable<ApbDirection>? 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