SharedStorageQueueModel class
A cycle-equivalent Dart model of SharedStorageQueue.
Subclasses mirror the hardware subclasses: createChannelTracking mirrors
buildChannelTracking, isArbitable mirrors arbitable, and
popFromDataQueue mirrors the module hook of the same name. Each clock
edge first prepares every next-state value from pre-edge state, then
applies it, matching read-before-write register-file behavior.
Constructors
- Creates a queue model.
Properties
- arbiter → MaskRoundRobinArbiterModel
-
Round-robin selection over arbitable channels.
latefinal
- arbitrationInputsKnown → bool
-
Whether arbitration inputs are known; subclasses may add conditions.
no setter
- channelEnable ↔ LogicValue
-
Sampled channel enables.
getter/setter pair
-
channels
→ List<
SharedStorageChannelTrackingModel> -
Per-channel trackers built by createChannelTracking.
latefinal
- channelWidth → int
-
Width of the push channel.
final
- dataWidth → int
-
Width of stored payloads.
final
- entryCount → int
-
Number of shared entries.
final
-
freeIndices
→ FifoSoftwareModel<
int> -
Free entry indices.
latefinal
- full → bool
-
Whether no entries are free.
no setter
- grant → int?
-
The granted channel, or
nullif no channel is granted.no setter - grantKnown → bool
-
Whether the current grant is known.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexWidth → int
-
Width of entry indices.
final
- known → bool
-
Whether the model state is known.
no setter
-
nextPointers
→ List<
int> -
Linked-list successor of each entry.
latefinal
- numChannels → int
-
Number of independent channels.
final
- onError → void Function(String message)
-
Reports hardware checker violations.
final
-
payloads
→ List<
LogicValue> -
Stored payloads.
latefinal
- pop ↔ LogicValue
-
Sampled pop request.
getter/setter pair
- popChannelIndex → int
-
The popped channel number presented by the hardware.
no setter
- popData → LogicValue
-
The payload read at popIndex when popping from the data queue.
no setter
- popIndex → int?
-
The popped entry index, or
nullwhen no channel is granted.no setter - push ↔ LogicValue
-
Sampled push request.
getter/setter pair
- pushChannel ↔ LogicValue
-
Sampled push channel.
getter/setter pair
- pushData ↔ LogicValue
-
Sampled push payload.
getter/setter pair
- pushIndex → int
-
The next free entry index.
no setter
- reset ↔ LogicValue
-
Sampled reset.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateVersion → int
-
Changes whenever clocked state may have changed.
no setter
Methods
-
applyExtensions(
) → void - Applies subclass next state computed by prepareExtensions.
-
beforeArbitration(
) → void - Refreshes subclass values that isArbitable depends on.
-
clockEdge(
) → void - Applies one rising clock edge using the sampled inputs.
-
createChannelTracking(
int channel) → SharedStorageChannelTrackingModel -
Builds the tracker for
channel. -
evaluate(
) → void - Recomputes combinational values from state and current inputs.
-
invalidate(
) → void - Forces all state and outputs to unknown until the next reset.
-
invalidateArbitration(
) → void - Marks state-derived arbitration as stale.
-
isArbitable(
int channel) → bool -
Whether
channelmay be selected for popping. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
popFromDataQueue(
) → bool? - Whether the selected entry leaves the data queue at this edge.
-
prepareExtensions(
{required int? pushChannelIndex, required int pushEntry, required bool popFromData}) → bool - Computes subclass next state from pre-edge state.
-
readPort(
List< LogicValue> storage, {required bool? enable, required int? address}) → LogicValue - Reads a combinationally addressed register file the way hardware does.
-
resetState(
) → void - Restores reset state.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited