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

Tensix: Configuration Unit

T1 tenstorrent guide guide
Tenstorrent WormholeB0 Tensix — Configuration Unit
SourceTenstorrent Official Tensix ISA Documentation (Wormhole & Blackhole) (tenstorrent_tt_isa)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeTenstorrent WormholeB0
Tenstorrent Wormhole B0 & Blackhole A0
License & VersionApache-2.0
main
Upstreamhttps://github.com/tenstorrent/tt-isa-documentation
ExtensionsTensix, WormholeB0

Summary

The Configuration Unit can read or write backend configuration. Its WRCFG and RDCFG instructions access the same GPRs as the Scalar Unit (ThCon). The instructions executed by the Configuration Unit are:

Reference Notes

# Configuration Unit

The Configuration Unit can read or write [backend configuration](BackendConfiguration.md). Its `WRCFG` and `RDCFG` instructions access the same GPRs as the [Scalar Unit (ThCon)](ScalarUnit.md). The instructions executed by the Configuration Unit are:

<table><thead><tr><th>Instruction</th><th>Latency</th><th>Throughput</th></tr></thead>
<tr><td><code><a href="SETC16.md">SETC16</a></code></td><td>1 cycle</td><td>Issue one per thread per cycle</td></tr>
<tr><td><code><a href="WRCFG.md">WRCFG</a></code></td><td>2 cycles</td><td>Issue one per cycle</td></tr>
<tr><td><code><a href="RMWCIB.md">RMWCIB</a></code></td><td>1 cycle</td><td rowspan="5">Issue at most one of these per cycle, provided neither <code>RDCFG</code> nor <code>WRCFG</code> issued in previous cycle by any thread</td></tr>
<tr><td><code><a href="RDCFG.md">RDCFG</a></code></td><td>≥&nbsp;2&nbsp;cycles</td></tr>
<tr><td>RISCV&nbsp;read&nbsp;request</td><td>1 cycle</td></tr>
<tr><td>RISCV&nbsp;write&nbsp;request</td><td>1 cycle</td></tr>
<tr><td>Mover&nbsp;write&nbsp;request</td><td>1 cycle</td></tr>
</table>

At most three instructions can be accepted per cycle (one from each thread), subject to the limitations in the "Throughput" column above. Note that excessive use of `WRCFG` from one thread can starve `RMWCIB` and `RDCFG` from other threads. RISCV read-requests and write-requests against `TENSIX_CFG_BASE` also end up at the Configuration Unit, and it processes these requests as if they were single-cycle instructions. Notably, excessive use of `WRCFG` can also starve processing of these requests, causing high latency for read-requests and delayed processing of write-requests. The latter can expose race conditions in RISCV code if said code fails to consider proper memory ordering. Also note that while processing of these requests only takes a single cycle, it can take multiple cycles for the requests to travel from RISCV to the Configuration Unit, and multiple cycles for read-responses to return back to RISCV.