run method
- Phase phase
override
Executes this Component's activities related to running the test.
Overrides of run must call super.run in an unawaited fashion.
For example:
@override
Future<void> run(Phase phase) async {
unawaited(super.run(phase));
// New code goes here!
}
Implementation
@override
Future<void> run(Phase phase) async {
unawaited(super.run(phase));
await sys.resetN.nextPosedge;
sys.clk.posedge.listen((event) {
if (cr.valid.previousValue!.isValid &&
cr.ready!.previousValue!.isValid &&
cr.valid.previousValue!.toBool() &&
cr.ready!.previousValue!.toBool()) {
add(Axi5CrChannelPacket(
debug: Axi5DebugSignalsStruct(
trace: cr.trace?.previousValue!.toBool(),
loop: cr.loop?.previousValue!.toInt(),
),
));
}
});
}