Skip to content

Commit

Permalink
nested pipelines, wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Dec 5, 2023
1 parent 27ba724 commit 1830b0c
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions tests/pipeline29.si
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,32 @@ algorithm main(output uint8 leds)
{

uint5 i = 0;
while (i<4) {
while (i!=5)
{

// stage 0
uint5 n = i;
__display("[A] (%d)",n);
i = i + 1;

->

__display("[B] before (%d)",n);
// stage 1
uint5 j = 0;
while (j<4) {
while (j!=4) {
// nested pipeline
__display("[0] %d,%d",i,j);
__display("[B,A] %d,%d",n,j);
j = j + 1;
->
__display("[1] %d,%d",i,j);
__display("[B,B] %d,%d",n,j);
}
++: ////////////////////////////// breaks without, why?
__display("[B] after (%d)",n);

->

__display("[C] (%d)",n);

}

Expand Down

0 comments on commit 1830b0c

Please sign in to comment.