CENG 342 – Digital Systems
Shift Registers Larry Pyeatt
SDSM&T
CENG 342 Digital Systems Shift Registers Larry Pyeatt SDSM&T - - PowerPoint PPT Presentation
CENG 342 Digital Systems Shift Registers Larry Pyeatt SDSM&T Compare Two Circuits What is the difference between these two circuits? What are their functions? d q d q d q d q I 3 I 2 I 1 I 0 clk clk clk clk R Q 3 Q 2 Q 1 Q
SDSM&T
d q clk d q clk d q clk d q clk In Out Q4 Q1 Q2 Q3
1 library ieee; 2 use ieee.std_logic_1164.all; 3 4 entity free_run_shift_reg is 5
6
7
8
9
10
11 end free_run_shift_reg; 13 architecture arch of free_run_shift_reg is 14
15
16 begin 17
18
19
20
21
22
23
24
25
26 27
28
29 30
31
32 end arch;
1 library ieee; 2 use ieee.std_logic_1164.all; 3 4 entity univ_shift_reg is 5
6
7
8
9
10
11
12 end univ_shift_reg;
14 architecture arch of univ_shift_reg is 15
16
17 begin 18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 end arch;