Praktikum VHDL II, Aufgabe 2: Motorsteuerung