CSE 140 Lecture 16 System Designs II

Slides:



Advertisements
Similar presentations
CS 140 Lecture 16 System Designs Professor CK Cheng CSE Dept. UC San Diego 1.
Advertisements

1ASM Algorithmic State Machines (ASM) part 1. ASM2 Algorithmic State Machine (ASM) ‏ Our design methodologies do not scale well to real-world problems.
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Princess Sumaya University
1 CS 140L Lecture 8 System Design Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 10 Sequential Networks: Implementation Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140L Lecture 5 Professor CK Cheng CSE Dept. UC San Diego.
1 CS 140 Lecture 12 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 17 Professor CK Cheng 11/26/02. System Designs 1.Intro 2.Spec 3.Implementation.
CS 140 Lecture 11 Professor CK Cheng 5/09/02. Part III - Standard Modules Decoder, Encoder, Mux, DeMux, Shifter, Adder, Multiplexer Interconnect: Decoder,
1 CS 140 Lecture 19 Sequential Modules Professor CK Cheng CSE Dept. UC San Diego.
CSE 140 Lecture 8 Sequential Networks Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 16 System Designs Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140L Lecture 5: Counters Professor CK Cheng CSE Dept. UC San Diego 1.
CSE 140L Lecture 4 Flip-Flops, Shifters and Counters Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 17 System Designs III Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 17 System Designs III Professor CK Cheng CSE Dept. UC San Diego 1.
Chapter 7. Register Transfer and Computer Operations
CS 140 Lecture 18 Professor CK Cheng 6/04/02. Part IV. System Designs Algorithm: { Input X, Y type bit-vector, start type boolean; Local-Object A, B type.
CS 140 Lecture 12 Professor CK Cheng 11/07/02. Part III - Standard Modules Decoder, Encoder, Mux, DeMux, Shifter, Adder, Multiplexer Interconnect: Decoder,
1 CSE20 Lecture 16 Boolean Algebra: Applications Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 18 Professor CK Cheng 12/3/02. Standard Sequential Modules 1.Register 2.Shift Register 3.Counter.
CS 140L Lecture 9 Professor CK Cheng 6/03/02. transistors modules sequential machine system 1.Adders, Muxes 2.F-Fs and counters 3.Finite State Machine.
1 CS 140 Lecture 18 Sequential Modules: Serial Adders, Multipliers Professor CK Cheng CSE Dept. UC San Diego.
CS 140L Lecture 7 Transformation between Mealy and Moore Machines Professor CK Cheng CSE Dept. UC San Diego.
CS 140 Lecture 5 Professor CK Cheng CSE Dept. UC San Diego 1.
CS 140 Lecture 19 Professor CK Cheng 12/05/02. Sequential Machine Standard Modules Combinational Sequential System Designs.
CSE 140 Lecture 15 System Designs Professor CK Cheng CSE Dept. UC San Diego 1.
CSE20 Lecture 3 Number Systems: Negative Numbers 1.Sign and Magnitude Representation 2.1’s Complement Representation 3.2’s Complement Representation 1.
4-bit adder, multiplexer, timing diagrams, propagation delays
CS 140L Lecture 4 Professor CK Cheng 10/22/02. 1)F-F 2)Shift register 3)Counter (Asynchronous) 4)Counter (Synchronous)
1 CSE 140 Lecture 12 Standard Combinational Modules Professor CK Cheng CSE Dept. UC San Diego.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1.
1 CSE 140 Lecture 11 Standard Combinational Modules CK Cheng CSE Dept. UC San Diego.
CSE 140 Lecture 13 Combinational Standard Modules Professor CK Cheng CSE Dept. UC San Diego 1.
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1.
CSE 140 Lecture 15 System Design II CK Cheng CSE Dept. UC San Diego 1.
Exercise 4.1 Different instructions utilize different hardware blocks in the basic single-cycle implementation. The next three problems in this exercise.
CSE 140 Lecture 13 System Designs
CSE 140 Lecture 14 System Designs
CSE 140 Lecture 14 System Designs
Register Transfer Specification And Design
CSE 140 Lecture 12 Combinational Standard Modules
Register Transfer and Microoperations
Overview Instruction Codes Computer Registers Computer Instructions
CSE 140 Lecture 16 System Designs
CSE 140 Lecture 12 Combinational Standard Modules
CSE 140 Lecture 11 Standard Combinational Modules
ECE 434 Advanced Digital System L13
CSE 140 Lecture 15 System Designs
CSE 140 Lecture 17 System Design II
Lesson 4 Synchronous Design Architectures: Data Path and High-level Synthesis (part two) Sept EE37E Adv. Digital Electronics.
CS 140 Lecture 16 Professor CK Cheng 11/21/02.
CS 140 Lecture 14 Standard Combinational Modules
CSE 140 Lecture 14 System Design
CS 140 Lecture 19 Standard Modules
CS 140 Lecture 15 Sequential Modules
Enhancing Data Path M 4-bit Reg X A L U
CSE 140 Lecture 14 Standard Combinational Modules
CSE20 Lecture 3 Number Systems
Professor CK Cheng CSE Dept. UC San Diego
CSE 140 Lecture 4 Combinational Logic: K-Map
CS 140 Lecture 13 Professor CK Cheng 11/12/02.
CS 140L Lecture 7 Transformation between Mealy and Moore Machines
CS 140L Lecture 8 Professor CK Cheng 11/19/02.
CSE140: System Design Xinyuan Wang 05/31/2019.
CSE 140 Lecture 11 Standard Combinational Modules
CSE 140 Lecture 16 System Designs
Presentation transcript:

CSE 140 Lecture 16 System Designs II Professor CK Cheng CSE Dept. UC San Diego

System Designs Methodology Hierarchy Flow and Process Technology-Oriented Construction

Design Process Describe system in programs Data subsystem List data operations Map operations to functional blocks Add interconnect for data transport Input control signals and output conditions Control Subsystem Derive the sequence according to the hardware program Create the sequential machine Input conditions and output control signals

Example: Multiplication Input X, Y Output Z Variable M, i M<=0 For i=n-1 to 0 If Yn-1=1, M<=M+X Shift Y left by one bit If i != 0, shift M left by one bit Z<=M Arithmetic Z=X x Y M<=0 For i=n-1 to 0 If Yi=1, M<=M+X 2i Z<=M

Implementation: Example Multiply(X, Y, Z, start, done) { Input X[15:0], Y[15:0] type bit-vector, start type boolean; Local-Object A[15:0], B[15:0] ,M[31:0], i[4:0] type bit-vector; Output Z[31:0] type bit-vector, done type boolean; S0: If start’ goto S0; S1: A <= X || B <= Y || i<=0 || M<=0 || done <= 0; S2: If B15 = 0 goto S4 || i<=i+1; S3: M <= M+A; S4: if i>= 16, goto S6 S5: M<=Shift(M,L,1) || B<=Shift(B,L,1) || goto S2; S6: Z<= M || done<= 1|| goto S0; }

Implementation: Example Multiply(X, Y, Z, start, done) { Input X[15:0], Y[15:0] type bit-vector, start type boolean; Local-Object A[15:0], B[15:0], M[31:0], i[4:0] type bit-vector; Output Z[31:0] type bit-vector, done type boolean; S0: If start’ goto S0; S1: A <= X || B <= Y || i<=0 || M<=0 || done <= 0; S2: If B15 = 0 goto S4 || i<=i+1; S3: M <= M+A; S4: if i>= 16, goto S6 S5: M<=Shift(M,L,1) || B<=Shift(B,L,1) || goto S2; S6: Z<= M || done<= 1|| goto S0; }

Z=XY Data Subsystem Control C0-7 B15, i4 X Y start Z done 16 32

Data Path Subsystem operation A  Load (X) B  Load (Y) M Clear(M) i Clear(i) i  INC(i) M Add(M,A) M  SHL(M) B  SHL(B) Wires control C0 C2 C4 C6 C7 C5 C1 C3 A <= X B <=Y M<=0 i<=0 i<=i+ 1 M<=M+A M<=Shift(M,L,1) B<=Shift(B,L,1) Z<=M

Data Path Subsystem C0 C1 Adder C4 C5 X Z C6 C7 C2 C3 Y Control Unit LD CLR LD C6 C7 CLR Inc C2 C3 Y LD SHL B[15] i[4] 16 SHL Register A Register B Shifter M Counter i D R A B S Control Unit B[15] C0-7 start done i[4]

Control Subsystem A C0 C1 Add M C4 C5 X Z i C6 C7 B C2 C3 Y B[15] i[4] LD CLR LD i C6 C7 CLR Inc B C2 C3 Y LD SHL B[15] i[4] 16 SHL 16 C0 C1 C2 C3 C4 C5 C6 C7 done S0 1 S1 S2 S3 S4 S5 S6

Control Subsystem S6 S0 start’ start S1 S5 S2 i[4] i[4]’ B[15]’ B[15]

Summary Hardware Allocation Balance between cost and performance Resource Sharing and Binding Map operations to hardware Interconnect Synthesis Convey signal transports Operation Scheduling Sequence the process

Exercises: Implement the control subsystem with one-hot state machine design. Try to reduce the latency of the whole system.