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

TRNSPSRCB

T1 tenstorrent matrix insn
TRNSPSRCB (Transpose SrcB[16:32])
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

Transposes the 16x16 matrix present in SrcB rows 16 (inclusive) through 32 (exclusive).

Syntax / Encoding

TTI_TRNSPSRCB

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32Tensix-32b00010110xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0x16000000

Reference Notes

# `TRNSPSRCB` (Transpose `SrcB[16:32]`)

**Summary:** Transposes the 16x16 matrix present in `SrcB` rows 16 (inclusive) through 32 (exclusive).

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

## Syntax

```c
TTI_TRNSPSRCB
```

## Encoding

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

## Cross-lane data movement pattern

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

## Functional model

This instruction will, if necessary, spend time waiting at the Wait Gate before being dispatched to the Matrix Unit (FPU):

```c
while (SrcB[MatrixUnit.SrcBBank].AllowedClient != MatrixUnit) {
  wait;
}
```

Once dispatched to the Matrix Unit (FPU):
```c
uint6_t RowBase = 16;
for (unsigned i = 0; i < 16; ++i) {
  for (unsigned j = 0; j < i; ++j) {
    uint19_t ij = SrcB[MatrixUnit.SrcBBank][RowBase + i][j];
    uint19_t ji = SrcB[MatrixUnit.SrcBBank][RowBase + j][i];
    SrcB[MatrixUnit.SrcBBank][RowBase + i][j] = ji;
    SrcB[MatrixUnit.SrcBBank][RowBase + j][i] = ij;
  }
}
```