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

SETADCXX

T1 tenstorrent alu insn
SETADCXX (Set ADC X 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, Miscellaneous Unit, WormholeB0

Summary

Backend execution unit: Miscellaneous Unit

Syntax / Encoding

TT_SETADCXX(((/* bool */ PK) << 2) +
            ((/* bool */ U1) << 1) +
              /* bool */ U0,
              /* u10 */ X1Val,
              /* u10 */ X0Val)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32Tensix-32b01011110xxxxxxxxxxxxxxxxxxxxxxxx0xff000000 / 0x5e000000

Reference Notes

# `SETADCXX` (Set ADC X counters)

**Summary:**

**Backend execution unit:** [Miscellaneous Unit](MiscellaneousUnit.md)

## Syntax

```c
TT_SETADCXX(((/* bool */ PK) << 2) +
            ((/* bool */ U1) << 1) +
              /* bool */ U0,
              /* u10 */ X1Val,
              /* u10 */ X0Val)
```

## Encoding

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

## Functional model

```c
if (U0) ApplyTo(ADCs[CurrentThread].Unpacker[0]);
if (U1) ApplyTo(ADCs[CurrentThread].Unpacker[1]);
if (PK) ApplyTo(ADCs[CurrentThread].Packers);

void ApplyTo(ADC& ADC_) {
  ADC_.Channel[0].X = X0Val, ADC_.Channel[0].X_Cr = X0Val;
  ADC_.Channel[1].X = X1Val, ADC_.Channel[1].X_Cr = X1Val;
}
```