Presentation on theme: "Shift-Registers and Push Button Debounce"— Presentation transcript:
1 Shift-Registers and Push Button Debounce Switching and Logic LabStandard Laboratory Exercises
2 Suggestions and Warnings Read for detail and comprehensionShould be able to complete within normal laboratory period.Make sure you program unused pins as tri-state inputs or you may burnout EPM7128S device on PLDT-2.
3 Shift Registers Riding without training wheels Riding with training wheelsProject 1 -- Basic ComponentShift Register as Behavioral VHDLFollow standard steps from project creation to exercise of deviceProject 2 – Push Button DebounceCount and display debounced pressesCount and display non debounced pressesNever let inputs float!
4 Shift Register Entity ENTITY ShftRgstr IS PORT ( Dp : IN BIT_VECTOR(7 DOWNTO 0);Ld,Ds, CLK : IN BIT;Q : BUFFER BIT_VECTOR(7 DOWNTO 0));END ShftRgstr;
5 Shift Register Architecture ARCHITECTURE Behavioral OF ShftRgstr ISBEGINPROCESSWAIT UNTIL Clk'event AND Clk = '1';IF Ld = '1' THEN --parallel loadQ <= Dp;