interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / seed / tensix / boot-tt.s2

16 lines · 1067 bytes Raw Blame History
1; boot-tt.s2 -- start-up words for RISCV B of one Tensix tile (Wormhole B0 / Blackhole A0), placed at L1
2; address 0x0000, the reset pc of RISCV B (tt-isa-documentation */TensixTile/SoftReset.md). The host
3; writes this stub followed by vecadd.s2 to L1, writes the argument block, then releases RISCV B from
4; soft reset. No tt-metal firmware is involved: this is the bare-metal launch the firmware would do.
5; Argument block at L1 0x1000: +0 a, +4 b, +8 out, +12 n words, +16 done word.
6; When vecadd returns, the stub writes 0x0600d000 to the done word and spins on itself.
7; 9 instructions (36 bytes); vecadd follows at byte 36.
8 lui 28 1 ; t3 = 0x1000, the argument block
9 lw 10 28 0 ; a0 = a
10 lw 11 28 4 ; a1 = b
11 lw 12 28 8 ; a2 = out
12 lw 13 28 12 ; a3 = n
13 jal 1 0 8 0 0 ; ra = next, call vecadd: +16 bytes (imm[10:1] = 8), 4 instructions ahead
14 lui 29 0x600d ; t4 = 0x0600d000, the done mark
15 sw 29 28 0 16 ; done word = t4
16 jal 0 0 0 0 0 ; spin: jump to itself