Counting Worlds



1. Introduction

This simple module introduces the basic arithmetic operation 'add' and 'subtract', as well as the use of control statements 'if' and 'else', through the design of an up/down counter. A slide switch will decide whether the counter will increment or decrement, whilst a Push Button will cause the counter to increment as it is depressed (on the rising edge). The output of the counter will be the 8 LEDs.



What are you going to learn?

By completing this module you will learn the following:

  • Tools
    • General revisiting of simulation, schematic view, synthesis etc.
  • Concepts
    • Simple arithmetic
    • Multiplexing
  • Syntax
    • '+'
    • '-'
    • 'if'
    • 'else'