UNPACR_NOP_SETREG
tenstorrent_tt_isa)Tenstorrent Wormhole B0 & Blackhole A0
main
userTensix, Unpackers, WormholeB0Summary
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)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | Tensix-32b | 01000011xxxxxxxxxxxxxxxxxxxxx100 | 0xff000007 / 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

## 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.