This week’s topics
Implementing state machines in Python and Verilog
- Starting point: selection and loops in Python
- Implementing state machines in Python and Verilog
- Testing, debugging and edge-case analysis to improve performance
What you will be able to do
- 3.3 Implement basic state machines using programming languages and/or logic design tools.
- 3.4 Critically evaluate the performance of state machines and propose improvements.
Activity
Start with this week’s 3 videos, then: Seminar, guided reading and a short written task: implement basic state machines using programming languages and/or logic design tools.
Study materials
Videos
- Using selection when developing programs · Oak National Academy, Key Stage 4 (GCSE level) · for registered students
- While loops · Oak National Academy, Key Stage 4 (GCSE level) · for registered students
- Control Flow in Python - If Elif Else Statements · YouTube · Programming with Mosh · 16 min · for registered students
Further resources
- Introduction to Python Programming, ch. 4: Decisions · PDF · OpenStax Introduction to Python Programming (2024), ch. 4: Boolean values, if-else, Boolean operators, operator precedence, elif chains, pp. 85–113 · for registered students
- Introduction to Python Programming, ch. 5: Loops · PDF · OpenStax Introduction to Python Programming (2024), ch. 5: while and for loops, nested loops, break and continue, pp. 115–135 · for registered students
Materials marked “for registered students” open in the student portal, which is set up as soon as you receive final acceptance.