spu

199 definitions in 10 files, 199 with an encoding diagram. src/isa/spu

Files

FileDefinitionsOtherWhat
package.lisp00the ISA.SPU package: the SPU and its MFC.
state.lisp017the SPU's architected state, local store and the SPU ISA.
alu.lisp1222SPU integer, logical, shift, rotate, compare, select, shuffle.
float.lisp3332SPU single and double precision, conversions, the FPSCR.
ls.lisp81SPU quadword loads and stores.
ctl.lisp337SPU branches, hints, stop, halt and the other control insns.
mfc.lisp033the SPU's Memory Flow Controller: DMA and tag groups.
chan.lisp336SPU channels: rdch, wrch, rchcnt and the channel logic.
exec.lisp07the SPU decoder, executor and run loop.
asm.lisp02an SPU assembler over the definsn records (compile time).

README

src/isa/spu — the SPU and its MFC

FileContents
state.lispspu struct, gpr/ls-read/ls-write/slot32/pref32/lane-mask, (defisa spu), defspu (instruction forms)
alu.lispinteger, logical, constants, shifts/rotates (lane and quadword), compares, selb/shufb, gather/fsm, insertion controls
float.lispsingle and double precision, conversions, FPSCR: core's IEEE primitives (docs/float.md) with the SPU's rules
ls.lisplqd/lqx/lqa/lqr, stqd/stqx/stqa/stqr
ctl.lispbranches, hints, stop/stopd, halts, nop/lnop/sync/dsync, mfspr/mtspr
mfc.lispMFC command queue, DMA get/put/list, getllar/putllc/putlluc, tag groups
chan.lisprdch/wrch/rchcnt, channel counts and logic, PPU-side mailbox/signal helpers
exec.lispspu-execute, spu-decode, spu-step, spu-start, spu-run
asm.lispcompile-time assembler spu-assemble, spu-load-program

Coverage

All 199 SPU ISA 1.2 instructions (every opcode the SPU decoder knows) have a definsn. tests/isa/spu/isa.lisp checks that each decodes to itself.

Conventions

TODO


Made from xspe at b2fac33349db by tools/gen-xspe.py. xspe is GPL-3.0-or-later.