ApbInterface class
A standard APB interface.
- Inheritance
-
- Object
- Interface<
ApbDirection> - ApbInterface
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.
- ApbInterface.clone(ApbInterface other)
-
Constructs a new ApbInterface with identical parameters to
other
.
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 Port.
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
-
conditionalDriveOther(
Interface< ApbDirection> other, Iterable<ApbDirection> tags) → Conditional -
Makes
this
conditionally drive interface signals tagged withtags
onother
.inherited -
conditionalReceiveOther(
Interface< ApbDirection> other, Iterable<ApbDirection> tags) → Conditional -
Makes
this
signals tagged withtags
be driven conditionally byother
.inherited -
connectIO(
Module module, Interface srcInterface, {Iterable< ApbDirection> ? inputTags, Iterable<ApbDirection> ? outputTags, String uniquify(String original)?}) → void -
Connects
module
's inputs and outputs up tosrcInterface
and this Interface.inherited -
driveOther(
Interface< ApbDirection> other, Iterable<ApbDirection> tags) → void -
Makes
this
drive interface signals tagged withtags
onother
.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 withtags
be driven byother
.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, otherwisenull
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited