Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation - typos #712

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/corev_hw_loop.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ a matrix addition.

asm volatile (
".option norvc;"
"add %[j],x0, x0;"
"add %[i],x0, x0;"
"add %[j],x0, x0;"
"cv.count x1, %[N];"
"cv.endi x1, endO;"
Expand All @@ -111,7 +111,7 @@ a matrix addition.


At the beginning of the HWLoop, the registers %[i] and %[j] are 0.
The innermost loop, from start0 to end0, adds to %[i] three times 1 and
The innermost loop, from startO to endO, adds to %[i] three times 1 and

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The innermost loop, from startZ to endZ, adds to %[i] three times 1 and

it is executed 10x10 times. Whereas the outermost loop, from startO to endO,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's loop body is executed 10x10 times. Whereas the outermost loop, from startO to endO,

executes 10 times the innermost loop and adds two times 2 to the register %[j].
At the end of the loop, the register %[i] contains 300 and the register %[j] contains 40.
Expand Down