Professional Documents
Culture Documents
Overview
Register Transfer Level(RTL) Algorithmic State Machines (ASM)
Chapter 8 - Fall 10
Chapter 8 - Fall 10
Logical Microoperations
From Table 7-4:
Symbolic Designation R0 n R1 R0 n R1 R2 R0 n R1 R2 R0 n R1 R2 Description Bitwise NOT Bitwise OR (sets bits) Bitwise AND (clears bits) Bitwise EXOR (complements bits)
Chapter 8 - Part 1
Logical Microoperations (continued) Let R1 = 10101010, and R2 = 11110000 Then after the operation, R0 becomes:
R0 01010101 11111010 10100000 01011010 Operation R0 n R1 R0 n R1 R2 R0 n R1 R2 R0 n R1 R2
Chapter 8 - Part 1
Shift Microoperations
From Table 7-5: Let R2 = 11001001 Then after the operation, R1 becomes:
Symbolic Designation R1 n sl R2 R1 n sr R2
R1 10010010 01100100
Note: These shifts "zero fill". Sometimes a separate flip-flop is used to provide the data shifted in, or to catch the data shifted out. Other shifts are possible (rotates, arithmetic) (see Chapter 10).
Chapter 8 - Part 1 10
Chapter 8 - Fall 10
12
Chapter 8 - Fall 10
14
Chapter 8 - Fall 10
15
Chapter 8 - Fall 10
16
Chapter 8 - Fall 10
17
Chapter 8 - Fall 10
18
ASM Example
A datapath consist of two JK flip-flops E and F and a four bit binary counter A[3:0]. A Start signal clears the counter A and flip-flop F. At each following clock pulse counter is incremented. If counter bit A[2]=0 E is cleared to 0 and count continues. If A[2]= 1 E is set to 1, If A[3]=0 count continues else if A[3]=1 the F is set to 1 with next clock pulse and system stops. If Start=0 the system remains in its initial state. If Start=1 operation starts again.
Chapter 8 - Fall 10 19
ASM Example
Chapter 8 - Fall 10
20
ASM Example
Chapter 8 - Fall 10
21
ASM Example
Chapter 8 - Fall 10
22
Chapter 8 - Fall 10
23
Chapter 8 - Fall 10
24
Chapter 8 - Fall 10
25
Chapter 8 - Fall 10
26
Example
Design a sequence detector that searches for a series of binary inputs to satisfy the pattern 01[0*]1, where [0*] is any umber of consecutive zeroes. The output (Z) should become true every time the sequence is found.
Chapter 8 - Fall 10
27
Example
Chapter 8 - Fall 10
28
Example
Design a system with three registers A,B,R to perform following operations:
When START is 1 load A and B registers with external data (IN1 and IN2) with the positive edge of the clock. Calculate A*B by repeated addition of contents of A register to R register. When multiplication is done wait for another START signal to load registers with new data.
Summary
Register Transfer Level(RTL) Algorithmic State Machines (ASM)
Chapter 8 - Fall 10
30