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

UNPACR_NOP_SETREG

T1 tenstorrent load_store insn
UNPACR_NOP (MMIO register write sequenced with UNPACR)
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, Unpackers, WormholeB0

Summary

Once previous UNPACR instructions have finished their L1 reads, perform a 32-bit memory write within a small window of the MMIO address space. This mode is UnsupportedFunctionality and its use is strongly discouraged: it has no known usage, the address window is selected by state (SetRegBase) which is not part of the regular backend configuration, and the write is ordered against nothing other than the unpacker's…

Syntax / Encoding

TT_UNPACR_NOP(/* u1 */ WhichUnpacker,
            ((/* u1 */ AddrSel) << 22) +
            ((/* u6 */ AddrMid) << 16) +
            ((/* u11 */ Value11) << 4) +
            ((/* bool */ Accumulate) << 3) +
             0x4)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32Tensix-32b01000011xxxxxxxxxxxxxxxxxxxxx1000xff000007 / 0x43000004

Reference Notes

# `UNPACR_NOP` (MMIO register write sequenced with UNPACR)

**Summary:** Once previous `UNPACR` instructions have finished their L1 reads, perform a 32-bit memory write within a small window of the MMIO address space. This mode is `UnsupportedFunctionality` and its use is strongly discouraged: it has no known usage, the address window is selected by state (`SetRegBase`) which is not part of the regular backend configuration, and the write is ordered against nothing other than the unpacker's own L1 reads.

**Backend execution unit:** [Unpackers](Unpackers/README.md)

## Syntax

```c
TT_UNPACR_NOP(/* u1 */ WhichUnpacker,
            ((/* u1 */ AddrSel) << 22) +
            ((/* u6 */ AddrMid) << 16) +
            ((/* u11 */ Value11) << 4) +
            ((/* bool */ Accumulate) << 3) +
             0x4)
```

## Encoding

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

## Functional model

Once all previous `UNPACR` instructions with the same value for `WhichUnpacker` have finished their L1 reads, the following happens:

```c
UnsupportedFunctionality(); // No known usage, confidence in specification below is weak

uint32_t Addr = 0xFFB00000 + Unpackers.SetRegBase[AddrSel] + (AddrMid << 12);

if (Accumulate) {
  uint32_t AccValue = Unpackers[WhichUnpacker].SetRegAcc;
  if (Value11 == 0) {
    AccValue = 0;
  } else {
    AccValue = (AccValue + Value11) & 0x1ffff;
    *(uint32_t*)Addr = AccValue;
  }
  Unpackers[WhichUnpacker].SetRegAcc = AccValue;
} else {
  *(uint32_t*)Addr = Value11;
}
```

The `SetRegBase` field is set via TDMA-RISC, rather than being traditional backend configuration. TDMA-RISC can also be used to sample the value of `SetRegAcc`.

The bits of `Addr` will consist of 12 fixed bits (`0xFFB`), two bits from `SetRegBase`, six bits from `AddrMid`, ten more bits from `SetRegBase`, then two fixed bits (`0b00`). See the [memory map](../BabyRISCV/README.md#memory-map) for details of what exists within this range.