stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. Day 140

Day 140 of 365 · Advanced · Month 5: Memory and structure

Review week 20: state machines

Ten questions on state machines: state in a register, jump tables with a catch, time per state, faults and acknowledging, the register plan.

Review 12 min Week 20

What you learn today

  • Quiz on states, jump tables and faults

This week you built chips that remember what they are doing right now:

  • State machine: a state number in a register. Every tick reads it and decides on the transitions. Work out transitions from the old state, take over the new one only at the end.
  • Jump table: a chain of beq lines jumps into the block of the current state. The catch branch sends every unknown state into the fault state. No jumps to computed line numbers.
  • Time in states: a counter in ticks (0.5 s), reset in the one place where the new state is taken over. Waiting times and timeouts become ordinary transitions.
  • Fault and acknowledge: latch the first cause, clear it only with a button and only without a current reason, show the cause as a number.
  • Big code: fixed sections, a register plan, subroutines with their own registers.

You pass from 60 %. The explanations after handing in sum up every point once more.

Weekly quiz

10 questions. You pass from 60 % – the server does the grading.

Complete the day

  • Passed the quiz with at least 60 %

Without an account progress is saved in this browser only.

Report a mistake in this lesson

Please sign in to report. Sign in

Esc
↑ ↓ selectEnter open/ opens search anywhere