LC-3 Datapath ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison.

Slides:



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

Chapter 4 The Von Neumann Model
Chapter 4 The Von Neumann Model
Chapter 5 The LC-3.
Chapter 5 The LC-3 Instruction Set Architecture l ISA Overview l Operate instructions l Data Movement instructions l Control Instructions l LC-3 data path.
Chapter 5 The LC-3.
Chapter 4 - ISA 1.The Von Neumann Model. 4-2 The Stored Program Computer 1943: ENIAC Presper Eckert and John Mauchly -- first general electronic computer.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
LC-3 Instruction Set Architecture (Textbook’s Chapter 5)
Chapters 5 - The LC-3 LC-3 Computer Architecture Memory Map
LC-3 Instruction Set Architecture
Overview von Neumann Model Components of a Computer Some Computer Organization Models The Computer Bus An Example Organization: The LC-3.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Computer Science 210 Computer Organization The Instruction Execution Cycle.
Chapter 5 The LC-3. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5-2 Instruction Set Architecture ISA.
The von Neumann Model – Chapter 4 COMP 2620 Dr. James Money COMP
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 5 The LC-2 Instruction Set Architecture Operate instructions Data Movement instructions.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 4 The Von Neumann Model Basic components Instruction processing.
Chapter 4 The Von Neumann Model
The von Neumann Model – Chapter 4
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
Introduction to Computing Systems from bits & gates to C & beyond Chapter 5 The LC-3 Instruction Set Architecture ISA Overview Operate instructions Data.
Chapter 5 The LC-3. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5-2 Data Movement Instructions Load --
Introduction to Computer Engineering CS/ECE 252, Fall 2009 Prof. Mark D. Hill Computer Sciences Department University of Wisconsin – Madison.
General Concepts of Computer Organization Overview of Microcomputer.
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
The LC-3. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 5-2 Instruction Set Architecture ISA = All of the.
Chapter 5 The LC Instruction Set Architecture ISA = All of the programmer-visible components and operations of the computer memory organization.
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.
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.
Processor Data Path and Control How they work together.
Von Neumann Model Computer Organization I 1 September 2009 © McQuain, Feng & Ribbens The Stored Program Computer 1945: John von Neumann –
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Complex Combinational Logic Blocks ECE/CS 252, Fall 2010 Prof.
March R. Smith - University of St Thomas - Minnesota ENGR 330: Today’s Class Connecting Hardware to InstructionsConnecting Hardware to Instructions.
Introduction to Computing Systems and Programming The LC-2.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
COSC121: Computer Systems: Review
Chapter 4 The Von Neumann Model
Introduction to Computer Engineering
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
The LC-3 Instruction Set Architecture Data Movement instructions
Chapter 4 The Von Neumann Model
Introduction to Computer Engineering
LC-3 Details and Examples
Chapter 5 The LC-3 An Hong 2018 Fall
Computer Science 210 Computer Organization
Computer Science 210 Computer Organization
Chapter 5 The LC-3.
Introduction to Computer Engineering
Topic 6 LC-3.
Introduction to Computer Engineering
Chapter 4 The Von Neumann Model
The Stored Program Computer
Chapter 8 Input/Output An Hong 2016 Fall
Introduction to Computer Engineering
Computer Architecture
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
Chapter 4 The Von Neumann Model
Instruction Set Architecture
Chapter 5 The LC-3.
Presentation transcript:

LC-3 Datapath ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin – Madison

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. LC-3 Data Path Revisited Filled arrow = info to be processed. Unfilled arrow = control signal.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Data Path Components Global bus special set of wires that carry a 16-bit signal to many components inputs to the bus are “tri-state devices,” that only place a signal on the bus when they are enabled only one (16-bit) signal should be enabled at any time  control unit decides which signal “drives” the bus any number of components can read the bus  register only captures bus data if it is write-enabled by the control unit Enable Input Output

Memory Access Control and data registers for memory and I/O devices Memory: MAR, MDR (also control signal for read/write)

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Register File and ALU

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Data Path Components ALU Accepts inputs from register file and from sign-extended bits from IR (immediate field). Output goes to bus.  used by condition code logic, register file, memory Register File Two read addresses (SR1, SR2), one write address (DR) Input from bus  result of ALU operation or memory read Two 16-bit outputs  used by ALU, PC, memory address  data for store instructions passes through ALU

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Fetch and Memory Address Generation

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Data Path Components PC and PCMUX Three inputs to PC, controlled by PCMUX 1.PC+1 – FETCH stage 2.Address adder – BR, JMP 3.bus – TRAP (discussed later) MAR and MARMUX Two inputs to MAR, controlled by MARMUX 1.Address adder – LD/ST, LDR/STR 2.Zero-extended IR[7:0] -- TRAP (discussed later)

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Condition Code Logic and Control Unit

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Data Path Components Condition Code Logic Looks at value on bus and generates N, Z, P signals Registers set only when control unit enables them (LD.CC)  only certain instructions set the codes (ADD, AND, NOT, LD, LDI, LDR, LEA) Control Unit – Finite State Machine On each machine cycle, changes control signals for next phase of instruction processing  who drives the bus? (GatePC, GateALU, …)  which registers are write enabled? (LD.IR, LD.REG, …)  which operation should ALU perform? (ALUK)  … Logic includes decoder for opcode, etc.

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Summary LC-3 Data Path Global Bus Memory Interface Register File and ALU Fetch and Memory Address Generation Condition Code Logic Control Unit Just one way to build the data path for this ISA Alternatives may: Consume less power Provide better performance, clock frequency