Joseph Ravichandran, Srijan Chakraborty, Kanad Sarkar

Slides:



Advertisements
Similar presentations
Processor Data Path and Control Diana Palsetia UPenn
Advertisements

Central Processing Unit
Registers and Counters
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
Chapter 7 Henry Hexmoor Registers and RTL
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Overview Recall Combinational Logic Sequential Logic Storage Devices
Overview von Neumann Model Components of a Computer Some Computer Organization Models The Computer Bus An Example Organization: The LC-3.
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Computer Science 210 Computer Organization The Instruction Execution Cycle.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Computer Science 210 Computer Organization The von Neumann Architecture.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 4 The Von Neumann Model Basic components Instruction processing.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Chapter 4 The Von Neumann Model
ENG241 Digital Design Week #8 Registers and Counters.
Introduction to Computer Engineering CS/ECE 252, Fall 2009 Prof. Mark D. Hill Computer Sciences Department University of Wisconsin – Madison.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 4 The Von Neumann Model Basic components Instruction processing.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
© BYU LC3-DC Page 1 ECEn 224 LC3-DC Designing The LC-3 Control IR PC enaMARMenaPC enaALU enaMDR ALU AB.
Von Neumann Model Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann –
Chapter 4 The Von Neumann Model
Designing a CPU –Reading a programs instruction from memory –Decoding the instruction –Executing the instruction –Transferring Data to/From memory / IO.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Class Exercise 1B.
Catalog of useful (structural) modules and architectures
SAP1 (Simple-As-Possible) Computer
CS161 – Design and Architecture of Computer Systems
Registers and Counters
Control & Execution Finite State Machines for Control MIPS Execution.
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
Chapter 4 The Von Neumann Model
Basics of digital systems
von Neumann Architecture CPU
Introduction to Computer Engineering
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
CS/COE0447 Computer Organization & Assembly Language
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
Computer Science 210 Computer Organization
Introduction to Computer Engineering
Processor: Datapath and Control (part 2)
The Von Neumann Model Basic components Instruction processing
Instructor: Alexander Stoytchev
The Little Man Computer
CSE 370 – Winter Sequential Logic-2 - 1
von Neumann Architecture CPU
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Computer Architecture
Chapter 4 The Von Neumann Model
The Stored Program Computer
Systems Architecture I
Digital Circuits and Logic
Basic components Instruction processing
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Introduction to Computer Engineering
Computer Architecture
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
Chapter 4 The Von Neumann Model
Presentation transcript:

Joseph Ravichandran, Srijan Chakraborty, Kanad Sarkar ECE 120 Midterm 3 Keshav Harisrikanth Joseph Ravichandran, Srijan Chakraborty, Kanad Sarkar

Topic Overview Finite State Machine Memory LC3 Analysis, Design, Counter Design Memory Flip flops, RAM, Tri-state buffer Addressability How to construct from smaller blocks LC3 Von Neumann Architecture LC3 Architecture ISA Instruction Cycle

S'-R' Latch If S = R, then Q and P can't store a bit. When S' is 0 and R' is 1, stores 1 into Q. When S' is 1 and R' is 0, stores 0 into Q.

D latch D stands for the DATA, WE stands for Write Enable Stores the value of D when WE is high. 

D Flip Flops Made from two D latches D latch behavior: D flip flop stores the input bit D when clock goes low to high C D R S Q+ Definition 1 Reset Set Q No change

Example of bit slice design: Ripple Carry Adder Design 1 component for a single bit Repeat it k times for a k-bit design Example of bit slice design: Ripple Carry Adder

Serialized Design Same as a bit slice design, except instead of many bit slices only use 1 Use flip-flops to store intermediate results Compute each bit slice in sequence, over time

Serialized Design The ‘F’ Signal is 1 when the first bit of data enters, 0 otherwise Use the ‘F’ signal to initialize your registers to the correct value In the full adder example, this means load the register with carry in of 0

Bit Slice VS Serial Area Speed For large number of bits, serial uses less area For smaller number of bits, bit slice uses less area Speed Bit slice is usually faster Serial is usually slower

Tri-State Buffers When enable is 1, they act as a wire When enable is 0, they act as high impedance (disconnected)

Finite State Machine 3 Main Components of FSMs: Next state logic Current state Output logic How many bits are needed to represent N states in a standard FSM?

FSMs In Detail 2 types: Mealy and Moore 5 key elements: Moore: Outputs are a function of current state only Mealy: Outputs are a function of current state and inputs Mealy machines use less states 5 key elements: Finite number of states Finite number of inputs Finite number of outputs Explicit number of state transitions Explicit definition of outputs as a function of state (and as function of inputs for Mealy machines)

FSM Design List all inputs to your FSM List all outputs from the FSM Create a truth table for the FSM State and inputs on the left Next state and outputs on the right Outputs should be the same for the same current state (unless Mealy machine) Create a state diagram K-maps, etc.

EVERY 16 BIT INSTRUCTION CORRESPONDS TO ONE OF THESE! CHEAT SHEET IS YOUR SAVIOR HERE! Side: Don't worry about JSR, JSRR, TRAP, or RTI yet, just know they exist

How to read your Cheat Sheet (for ISA)

Instruction Cycle!

Details FETCH DECODE - Opcode (IR[15:12]) examined (first 4 bits) MAR ← PC PC ← PC+1 MDR ← M[MAR] IR ← MDR Used to obtain the next instruction IMPORTANT! PC is incremented to next spot BEFORE current instruction put in IR DECODE       - Opcode (IR[15:12]) examined (first 4 bits)