Skip to content

Help understanding when to use which SchedulingPhase for InPort #528

Answered by klingaard
timsnyder asked this question in Q&A
Discussion options

You must be logged in to vote

The URL to the SchedulingPhases you provided above is a good reference for this discussion.

Use Case 1

The main intention of the ports is to deliver data from one unit to another with at least 1 cycle of delay. The idea was to mimic a Present-State, Next State (PSNS) paradigm where one unit produces on one cycle and the other unit receives/consumes the data in the next cycle. To simulate that behavior using Sparta Phases, the Tick phase is where you operate on Present State data and the Update/PortUpdate phase is where the Next State data is moved to Present State. The timing looks like this:

Phase Cycle 1 Cycle 2
PortUpdate Ports Move Data
Tick Producer Drives Receiver Consumes

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timsnyder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants