Tactiverge Arena · Challenge family
Computer
Architecture
Challenge
32 original problems on the Bench-8 teaching processor: gates, programs, cycles, memory, bugs and design trade-offs. Write it, run it, and get the same score every time, in your browser and on our server.
- Practice open · no account needed
- Official rounds: not running
Seven kinds of problem
Every corner of a computer, one problem at a time.
Digital logic
Gates, truth tables, adders, multiplexers and state machines.
5 problems
Program correctness
Bench-8 programs that give exactly the right output on every test.
5 problems
Computational efficiency
Cycles and instructions on the model: correct first, then cheap.
5 problems
Registers and memory
Tracing the accumulator, flags and bytes in memory by hand.
4 problems
Architecture trade-offs
Caches, pipelines and clocks: what a design choice buys and costs.
6 problems
Debugging
Programs that almost work. Find the one wrong idea and fix it.
4 problems
Processor design
Encodings, addressing modes and the choices behind an instruction set.
3 problems
Practice ladder
Five rungs, from a single gate to a design argument.
Each rung prepares the next. Climb at your own pace: there is no timer, no streak and nothing to lose. Your progress is kept only in this browser.
Your practice on this device
No practice recorded in this browser yet. Problems you try at the Architecture Challenge appear here. They are stored on this device only.
- 1
Bits and gates
Read binary like a machine does, and know what a gate will say before you test it.You will be able to: Count truth-table rows · Read two's complement · Trace a multiplexer · Write a three-line program
- 01 · Work it outThree judges, one verdictDigital logic
- 02 · Work it outFour wires of sumDigital logic
- 03 · Work it outMinus five, seen unsignedRegisters and memory
- 04 · Choose and justifyOne gate to build them allDigital logic
- 05 · Work it outWhich input wins?Digital logic
- 06 · Write a programSay forty-twoProgram correctnesspar 18
- 2
First programs
Write short Bench-8 programs and follow every byte they touch.You will be able to: Trace A and memory by hand · Count cycles · Read the flags after SUB · Decode an instruction
- 01 · Write a programDouble itProgram correctnesspar 132
- 02 · Work it outTrace the accumulatorRegisters and memory
- 03 · Work it outCount the clockComputational efficiency
- 04 · Write a programDebug: the larger of twoDebugging
- 05 · Choose and justifyWhich flags light up?Registers and memory
- 06 · Choose and justifyDecode two bytesProcessor design
- 3
Loops and flags
Make loops that stop at the right moment, including when the answer is nothing at all.You will be able to: Guard a loop with JZ · Fix off-by-one bugs · Keep data out of the instruction stream · Run a state machine by hand
- 01 · Write a programCount up to nProgram correctnesspar 576
- 02 · Write a programDebug: one seven too manyDebugging
- 03 · Write a programDebug: data in the wayDebugging
- 04 · Work it outWhat does a loop cost?Computational efficiency
- 05 · Choose and justifyWhy waste a byte?Architecture trade-offs
- 06 · Work it outSpot the patternDigital logic
- 4
Memory and efficiency
Solve it, then solve it in fewer cycles, and explain where the cycles went.You will be able to: Beat par with strength reduction · Unroll a loop · Reason about self-modifying code · Count cache hits
- 01 · Write a programTimes ten, under parComputational efficiencypar 355
- 02 · Write a programSum the blockComputational efficiencypar 129
- 03 · Write a programHow many zeros?Program correctnesspar 480
- 04 · Write a programDebug: zero is a number tooDebugging
- 05 · Work it outThe program that rewrites itselfRegisters and memory
- 06 · Work it outHits in a direct-mapped cacheArchitecture trade-offs
- 07 · Work it outSame cache, two waysArchitecture trade-offs
- 5
Design trade-offs
Argue for a design with numbers from the model, not with adjectives.You will be able to: Quantify forwarding · Compare single- and multi-cycle timing · Pick a block size · Design compare-and-branch code
- 01 · Write a programCount the 1 bitsProgram correctness
- 02 · Write a programParity, under parComputational efficiencypar 1530
- 03 · Work it outWhat forwarding buysArchitecture trade-offs
- 04 · Work it outOne long clock or many short ones?Architecture trade-offs
- 05 · Choose and justifyA one-way walk through memoryArchitecture trade-offs
- 06 · Choose and justifyDesign the comparisonProcessor design
- 07 · Choose and justifyLife without indexingProcessor design
Practice competitions
A practice set for every division.
Each set mixes the seven kinds of problem at the right level for one division. Run one as a practice round on your own or with a club. These are practice only: nothing is judged, recorded centrally or compared with anyone else.
- Division 1 · ExplorerExplorer practice setGates, binary and your first program. Every question can be done on paper first.7 problems
- Division 2 · BuilderBuilder practice setShort programs, flags and cycle counts, plus your first real debugging job.8 problems
- Division 3 · InnovatorInnovator practice setLoops that stop correctly, a state machine, and a first look at caches.7 problems
- Division 4 · Systems EngineerSystems Engineer practice setPar-scored programs, associativity and designing comparison code.8 problems
- Division 5 · Research EngineerResearch Engineer practice setQuantified trade-offs: pipelines, clocks, block sizes and instruction-set design.8 problems
Reproducible scoring
No judge's mood. No lucky run.
The model is a pure function: no clock, no randomness, nothing hidden. Run the same program on the same inputs and you get the same outputs, the same cycle count and the same receipt, wherever it runs.
Read the model assumptions1 · Correct
A program passes only if every public test gives exactly the expected output and the machine reaches HALT within the cycle cap.
2 · Efficient
12 program problems; those with a par compare your total cycles over every test with a reference solution: under, at, near (within 25%) or over par.
3 · Receipt
A fingerprint of the model version (bench8-v1), your assembled bytes and every test result. Change spacing or comments and it stays the same; change behaviour and it changes.
4 · Server re-run
Press Verify and the server runs exactly the same function on your program. Matching receipts show the result is reproducible.
Practice rules
Short rules, kept on purpose.
Want to prepare properly? The preparation pathways link lessons, courses, textbooks and Silicon Studio stages to each rung.
- Programs must assemble with the Bench-8 assembler and stay inside 256 bytes. Problems that preload memory at 0xF0 and up need your program below it.
- Every test run stops after 20,000 conceptual cycles. A program that has not halted by then fails that test.
- Numeric answers accept decimal, hex (0x1F) or binary (0b101). The worked reasoning appears after a correct answer or your third try.
- Practice needs no account and stores nothing on our server. Your record lives in this browser and you can clear it.
- Use any notes, the Silicon Studio and friends. In practice the point is learning, so explain your reasoning to yourself as you go.