Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Review Topics. parameter passing, memory model)

Similar documents
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

Review Topics. Midterm Exam Review Slides

컴퓨터개념및실습. 기말고사 review

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

Review Topics. Midterm Exam Review Slides

Chapter 12 Variables and Operators

CMPE012 Computer Engineering 12 (and Lab) Computing Systems and Assembly Language Programming. Summer 2009

Chapter 12 Variables and Operators

Computing Layers. Chapter 5 The LC-3

CS 2461: Computer Architecture I

Introduction to C. Why C? Difference between Python and C C compiler stages Basic syntax in C

ECE 109 Sections 602 to 605 Final exam Fall December, 2007

Midterm Exam Review Slides

Chapter 2 Bits, Data Types, and Operations

Computer Architecture Programming the Basic Computer

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

C Functions and Pointers. C Pointers. CS270 - Fall Colorado State University. CS270 - Fall Colorado State University

Subroutines & Traps. Announcements. New due date for assignment 2 5pm Wednesday, 5May

Review Topics. Final Exam Review Slides

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

CS356: Discussion #6 Assembly Procedures and Arrays. Marco Paolieri

Chapter 2 Bits, Data Types, and Operations

Exam I Review February 2017

Signature: 1. (10 points) Basic Microcontroller Concepts

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON. Instructor: Rahul Nayar TAs: Annie Lin, Mohit Verma

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

Topics. Computer Organization CS Exam 2 Review. Infix Notation. Reverse Polish Notation (RPN)

2B 52 AB CA 3E A1 +29 A B C. CS120 Fall 2018 Final Prep and super secret quiz 9

Introduction to Computing Systems: From Bits and Gates to C and Beyond 2 nd Edition

COMPUTER ORGANIZATION AND ARCHITECTURE

Chapter 5 The LC-3. ACKNOWLEDGEMENT: This lecture uses slides prepared by Gregory T. Byrd, North Carolina State University 5-2

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Review Topics

Chapter 10 And, Finally... The Stack. ACKNOWLEDGEMENT: This lecture uses slides prepared by Gregory T. Byrd, North Carolina State University

CHAPTER 8: Central Processing Unit (CPU)

ECE232: Hardware Organization and Design

Positional notation Ch Conversions between Decimal and Binary. /continued. Binary to Decimal

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

COSC 6385 Computer Architecture. Instruction Set Architectures

Chapter 8 I/O. Computing Layers. I/O: Connecting to Outside World. I/O: Connecting to the Outside World

Design of Embedded Systems Using 68HC12/11 Microcontrollers

Level 2: The Hardware World Chapters 4 and 5 (topics of other cs courses)

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2

Topics Power tends to corrupt; absolute power corrupts absolutely. Computer Organization CS Data Representation

Computing Layers. Chapter 3 Digital Logic Structures. Combinational vs. Sequential. State Machine. Another type of sequential circuit

Ch. 5: The LC-3. PC-Relative Addressing Mode. Data Movement Instructions. James Goodman!

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT-I

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

Combinational vs. Sequential. State Machine. Computing Layers. Chapter 3 Digital Logic Structures. ! Another type of sequential circuit

Binary Representations and Arithmetic

20/08/14. Computer Systems 1. Instruction Processing: FETCH. Instruction Processing: DECODE

Assembly Language Design


COS 140: Foundations of Computer Science

COSC121: Computer Systems: Review

Run time environment of a MIPS program

data within a computer system are stored in one of 2 physical states (hence the use of binary digits)

Syllabus for Computer Science General Part I

Page 1. Structure of von Nuemann machine. Instruction Set - the type of Instructions

CSE 351 Midterm - Winter 2015

Microcontrollers. Microcontroller

COSC 243. Instruction Sets And Addressing Modes. Lecture 7&8 Instruction Sets and Addressing Modes. COSC 243 (Computer Architecture)

Digital System Design Using Verilog. - Processing Unit Design

Introduction to Assembly language

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Midterm 1 topics (in one slide) Bits and bitwise operations. Outline. Unsigned and signed integers. Floating point numbers. Number representation

Midterm 2 Review Chapters 4-16 LC-3

UNIMPLEMENTED INSTRUCTIONS

Do-While Example. In C++ In assembly language. do { z--; while (a == b); z = b; loop: addi $s2, $s2, -1 beq $s0, $s1, loop or $s2, $s1, $zero

Today s Menu. >Use the Internal Register(s) >Use the Program Memory Space >Use the Stack >Use global memory

SOME ASSEMBLY REQUIRED

Chapter 4. Combinational Logic

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

COSC345 Software Engineering. Basic Computer Architecture and The Stack

COSC121: Computer Systems: Review

CDS Computing for Scientists. Midterm Exam Review. Midterm Exam on October 22, 2013

Register-Level Design

System Calls. Chapter 9 TRAP Routines and Subroutines

Notes: The Marie Simulator

CSE351 Autumn 2014 Midterm Exam (29 October 2014)

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

Have difficulty identifying any products Not incorporating embedded processor FPGA or CPLD In one form or another

Computer Organisation CS303

Computer Arithmetic andveriloghdl Fundamentals

Introduction to Computer Science. Homework 1

Its Assembly language programming

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Pointers and Arrays

17.1. Unit 17. Instruction Sets Picoblaze Processor

EE4380 Microprocessor Design Project

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

16.1. Unit 16. Computer Organization Design of a Simple Processor

Computing Layers. Chapter 7 Assembly Language

ME 4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 6

Micro computer Organization

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

DSP Platforms Lab (AD-SHARC) Session 05

Transcription:

Final Exam Review Original slides from Gregory Byrd, North Carolina State University Modified slides by C. Wilcox, S. Rajopadhye Colorado State University Review Topics! Number Representation & Arithmetic! Transistors, Gates, Combinational Logic & Logical Completeness! Sequential Circuits & Finite State Machines! LC-3 Architecture & Instruction Set! Programming & LC-3 Assembly! Subroutines, I/O, Traps & Interrupts! Stack, Parameter Passing & Activation records! Assembly process, Symbol table & compilation! C (control, pointers, data structures, functions, parameter passing, memory model) 2 1

Number Representation & Arithmetic! Conversion, representation and operations! decimal to binary! binary to decimal! octal, hex and other radices! Sign-magnitude, 2 s complement! floating point! Operations on numbers! Add, subtract, bit-wise! Add/subtract two floating point numbers without first converting to decimal and then back. 3 Number Representation & Arithmetic! Conversion, representation and operations! decimal to binary! binary to decimal! octal, hex and other radices! Sign-magnitude, 2 s complement! floating point! Operations on numbers! Add, subtract, bit-wise! Add/subtract two floating point numbers without first converting to decimal and then back. 4 2

Transistors, gates, combinational logic! Transistor as a switch & switch networks! complementary MOS! Gates & logical completeness! Design simple combinational circuits! Compose/hook them together to build larger circuits! fat gates, decoders, muxes, demuxes! Sequential circuits! Registers & memory! FSM 5 LC-3! von-neuman architecture (stored program m/c)! LC-3 data path: don t memorize, but understand what each part does n Instruction register, PC, register file, MAR/MDR, status bits! Muxes, ALU, incrementers, Zext, Sext! Memory & busses! Instruction set (don t memorize but understand)! Addressing modes 6 3

Programming & Assembly! Programs & data as binary/hex instructions! What does a small snippet of code do?! e.g., problems from HW3! Manually disassemble a few instructions! Assemble a snippet of code! Address calculation and symbol table! Programming! Control flow and logic, condition codes and branch! Jump and subroutines 7 Subroutines, I/O, Traps & Interrupts! Call-return mechanism and return address! Parameter passing, saving/restoring registers! Traps and I/O service routines! Memory mapped I/O: device registers & polling! Interrupt driven I/O! Generation of Interrupt signals! Handling the interrupt (in the machine controller)! Priority, Processor Status Register! Interrupt Service & RTI 8 4

Stacks, Parameters, Activation Record! Stack Pointer! Push and Pop operations! Where does the stack live in memory! How does it grow! Functions in C (parameter passing)! Activation record! Return address! Return value! Caller s frame pointer 9 The assembly process! Two pass assembly! Symbol table! Generating the machine code 10 5

C programming! Variables, operators, expressions & statements! lexical scope rules! Static and dynamic variables! C memory model where variables are stored! Control structures (conditionals and loops)! Functions! Pointers & Arrays! Recursion & parameter passing (back to activation records) 11 6