Skip to content

Commit 85cd473

Browse files
authored
docs: Fix FREP instruction encoding (#216)
1 parent 8872ffe commit 85cd473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rm/hw/custom_instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ The FREP instruction has the following signature:
3434
| imm1 | rs1 | imm2 | imm3 | is_outer | opcode | operation |
3535
|:--------:|:-------:|:-----------:|:------------:|:--------:|:----------:|:---------:|
3636
| 12 | 5 | 3 | 4 | 1 | 7 | |
37-
| max_inst | max_rpt | stagger_max | stagger_mask | 0 | OP-CUSTOM1 | FREP.I |
38-
| max_inst | max_rpt | stagger_max | stagger_mask | 1 | OP-CUSTOM1 | FREP.O |
37+
| max_inst | max_rpt | stagger_max | stagger_mask | 0 | OP-CUSTOM0 | FREP.I |
38+
| max_inst | max_rpt | stagger_max | stagger_mask | 1 | OP-CUSTOM0 | FREP.O |
3939

4040
FREP.I and FREP.O repeat the *max_inst + 1* instructions following the FREP instruction for *max_rpt + 1* times. The FREP.I instruction (*I* stands for inner) repeats every instruction the specified number of times and moves on to executing and repeating the next. The FREP.O instruction (*O* stands for outer) repeats the whole sequence of instructions *max_rpt + 1* times. Register staggering can be enabled and configured via the *stagger_mask* and *stagger_max* immediates. A detailed explanation of their use can be found in the Snitch [paper](../../publications.md).
4141

0 commit comments

Comments
 (0)