ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

INCRWC

T1 tenstorrent matrix insn
INCRWC (Increment RWC SrcA / SrcB / Dst counters)
SourceTenstorrent Official Tensix ISA Documentation (Wormhole & Blackhole) (tenstorrent_tt_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeWormholeB0
Tenstorrent Wormhole B0 & Blackhole A0
License & VersionApache-2.0
main
Upstreamhttps://github.com/tenstorrent/tt-isa-documentation
Privilegeuser
ExtensionsTensix, Matrix Unit, WormholeB0

Summary

Backend execution unit: Matrix Unit (FPU)

Syntax / Encoding

TT_INCRWC(((/* bool */ DstCr) << 2) +
          ((/* bool */ SrcBCr) << 1) +
            /* bool */ SrcACr,
            /* u4 */ DstInc,
            /* u4 */ SrcBInc,
            /* u4 */ SrcAInc);

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32Tensix-32b00111000xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0x38000000

Reference Notes

# `INCRWC` (Increment RWC SrcA / SrcB / Dst counters)

**Summary:**

**Backend execution unit:** [Matrix Unit (FPU)](MatrixUnit.md)

## Syntax

```c
TT_INCRWC(((/* bool */ DstCr) << 2) +
          ((/* bool */ SrcBCr) << 1) +
            /* bool */ SrcACr,
            /* u4 */ DstInc,
            /* u4 */ SrcBInc,
            /* u4 */ SrcAInc);
```

## Encoding

![](../../../Diagrams/Out/Bits32_INCRWC.svg)

## Functional model

```c
auto& RWC = RWCs[CurrentThread];
if (SrcACr) {
  RWC.SrcA_Cr += SrcAInc;
  RWC.SrcA = RWC.SrcA_Cr;
} else {
  RWC.SrcA += SrcAInc;
}
if (SrcBCr) {
  RWC.SrcB_Cr += SrcBInc;
  RWC.SrcB = RWC.SrcB_Cr;
} else {
  RWC.SrcB += SrcBInc;
}
if (DstCr) {
  RWC.Dst_Cr += DstInc;
  RWC.Dst = RWC.Dst_Cr;
} else {
  RWC.Dst += DstInc;
}
```