Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 140 Lecture 17 System Designs III Professor CK Cheng CSE Dept. UC San Diego 1.

Similar presentations


Presentation on theme: "CS 140 Lecture 17 System Designs III Professor CK Cheng CSE Dept. UC San Diego 1."— Presentation transcript:

1 CS 140 Lecture 17 System Designs III Professor CK Cheng CSE Dept. UC San Diego 1

2 System Designs 1.Methodology 2.Hierarchy 3.Flow and Process 4.Technology-Oriented Construction 2

3 Digital Designs vs Computer Architectures Instruction Set (Chapter 6, CSE141) –Bottleneck: Silicon Area, Power Data Path (Chapter 7) Control Subsystem (Chapter 7) Memory Management (Chapter 8, CSE141) –Bottleneck: IO, Memory Latency 3

4 Design Process Program of Hardware Description List of Data Operations Data Path –Read control signals. Output conditions Control Subsystem –Read conditions. Output control signals 4

5 Example: Multiplication Z=X x Y M<=0 For i=0 to N-1 –If Y i =1, M<=M+X 2 i Z<=M 5 Input X, Y Output Z Variable M, i M<=0 For i=0 to N-1 –If Y 0 =1, M<=M+X –Shift Y right by one bit –Shift X left by one bit Z<=M

6 Implementation: Example { Input X, Y type bit-vector, start type boolean; Local-Object A, B,M, i type bit-vector; Output Z type bit-vector, done type boolean; S0: If start’ goto S0; S1: A <= X || B <= Y || i<=0 || M<=0 || done <= 0; S2: If B 0 = 0 goto S4 || i<=i+1; S3: M <= M+A || A<=Shift(A,L,1) || B<=Shift(B,R,1); S4: If i<16, goto S2; S5: Z<= M|| done<= 1|| goto S0; } 6

7 Implementation: Example { Input X, Y type bit-vector, start type boolean; Local-Object A, B,M, i type bit-vector; Output Z type bit-vector, done type boolean; S0: If start’ goto S0; S1: A <= X || B <= Y || i<=0 || M<=0 || done <= 0; S2: If B 0 = 0 goto S4 || i<=i+1; S3: M <= M+A || A<=Shift(A,L,1) || B<=Shift(B,R,1); S4: If i<16, goto S2; S5: Z<= M|| done<= 1|| goto S0; } 7

8 Z=XY Data Subsystem Control Subsystem C 0-7 B 0 i 4 X Y start Z done 16 32 8

9 A <= X B <=Y M<=0 i<=0 i<=i+ 1 M<=M+A A<=Shift(A,L,1) B<=Shift(B,R,1) Z<=M operation A  Load (X) B  Load (Y) M  Clear(M) i  Clear(i) i  INC(i) M  Add(M,A) A  SHL(A) B  SHR(B) Wires control C 0 C 2 C 4 C 6 C 7 C 5 C 1 C 3 9 Data Path Subsystem

10 10 Control Unit B C 0-7 start done i A C0C0 C1C1 Add M C4C4 C5C5 X Z LD SHL CLR LD i C6C6 C7C7 CLR Inc B C2C2 C3C3 Y LD SHR B i Data Path Subsystem 0 16

11 Control Subsystem 11 C0C1C2C3C4C5C6C7done S0000000001 S1101010100 S2000000010 S3010101000 S4000000000 S5000000001 A C0C0 C1C1 Add M C4C4 C5C5 X Z LD SHL CLR LD i C6C6 C7C7 CLR Inc B C2C2 C3C3 Y LD SHR B i

12 Control Subsystem 12 S0 S1 S2 S3 S5 S4 B start’ start i B ’ i ’


Download ppt "CS 140 Lecture 17 System Designs III Professor CK Cheng CSE Dept. UC San Diego 1."

Similar presentations


Ads by Google