CN310 Microprocessor Systems Design

Similar documents
Pin Description, Status & Control Signals of 8085 Microprocessor

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

Microprocessor Architecture

Faculty of Engineering Systems & Biomedical Dept. First Year Cairo University Sheet 6 Computer I

Outcomes. Lecture 13 - Introduction to the Central Processing Unit (CPU) Central Processing UNIT (CPU) or Processor

MICROPROCESSOR B.Tech. th ECE

BUILDING BLOCKS OF A BASIC MICROPROCESSOR. Part 1 PowerPoint Format of Lecture 3 of Book

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

session 7. Datapath Design

Examining the complete instruction cycle for one instruction illustrates the operation of the P8 CPU. Assume the following conditions: C C C

Micro computer Organization

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

CN310 Microprocessor Systems Design

For more notes of DAE

Computer architecture Assignment 3

Basics of Microprocessor

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

Microprocessor Architecture. mywbut.com 1

CN310 Microprocessor Systems Design

The Itanium Bit Microprocessor Report

8086 Hardware Specification

Introduction to CPU architecture using the M6800 microprocessor

MICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

CN310 Microprocessor Systems Design

STRUCTURE OF DESKTOP COMPUTERS

Section 6. Memory Components Chapter 5.7, 5.8 Physical Implementations Chapter 7 Programmable Processors Chapter 8

Chapter 1: Basics of Microprocessor [08 M]

Microcomputer Architecture and Programming

Blog -

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

EE 3170 Microcontroller Applications

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

The functional block diagram of 8085A is shown in fig.4.1.

CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller


Lecture Note On Microprocessor and Microcontroller Theory and Applications

I/O Design. Input / Output Instructions. Engineering 4862 Microprocessors. Lecture 23. Cheng Li

Dec Hex Bin ORG ; ZERO. Introduction To Computing

DC57 COMPUTER ORGANIZATION JUNE 2013

Simple Microprocessor Design By Dr Hashim Ali

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

SCRAM Introduction. Philipp Koehn. 19 February 2018

CISC Processor Design

Digital IP Cell 8-bit Microcontroller PE80

Computer Architecture: Part V. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

CPU. Fall 2003 CSE 207 Digital Design Project #4 R0 R1 R2 R3 R4 R5 R6 R7 PC STATUS IR. Control Logic RAM MAR MDR. Internal Processor Bus

Note that none of the above MAY be a VALID ANSWER.

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS

8-1. Fig. 8-1 ASM Chart Elements 2001 Prentice Hall, Inc. M. Morris Mano & Charles R. Kime LOGIC AND COMPUTER DESIGN FUNDAMENTALS, 2e, Updated.

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

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

Chapter 5. Computer Architecture Organization and Design. Computer System Architecture Database Lab, SANGJI University

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

REGISTER TRANSFER LANGUAGE

The Institution of Engineers - Sri Lanka

Computer Organization

History and Basic Processor Architecture

EE 2700 Project 2 Microprocessor Design

Question Bank Microprocessor and Microcontroller

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

(1) Define following terms: Instruction, Machine Cycle, Opcode, Oprand & Instruction Cycle. Instruction:

Chapter 4. The Processor. Instruction count Determined by ISA and compiler. We will examine two MIPS implementations

Assembly Language Programming of 8085

8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Chapter 1 : Introduction

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI UNIT I THE 8085 & 8086 MICROPROCESSORS. PART A (2 Marks)

Memory General R0 Registers R1 R2. Input Register 1. Input Register 2. Program Counter. Instruction Register

Chapter 2 Data Manipulation

Computer Architecture Programming the Basic Computer

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Microprocessor s. Address Bus. External Buses. Interfacing CPU with external word. We classify the CPU interfacing signals in three functional buses:

Hardware Revision. AQA Computing AS-Level COMP2. 63 minutes. 60 marks. Page 1 of 24

2010 Summer Answers [OS I]

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

CSE140 L. Instructor: Thomas Y. P. Lee. March 1, Agenda. Computer System Design. Computer Architecture. Instruction Memory design.

Name: ID# UNIVERSITY OF CALIFORNIA Department of Electrical Engineering and Computer Sciences EECS150 Fall 2001 Prof. Subramanian Midterm III

LIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.

MARIE: An Introduction to a Simple Computer

Controller Implementation--Part II

Unit II Basic Computer Organization

William Stallings Computer Organization and Architecture

UNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR

Microprocessor and Microcontroller question bank. 1 Distinguish between microprocessor and microcontroller.

It is a program controlled semiconductor device (IC}, which fetches, decode and executes instructions.

Segment 1A. Introduction to Microcomputer and Microprocessor

C.P.U Organization. Memory Unit. Central Processing Unit (C.P.U) Input-Output Processor (IOP) Figure (1) Digital Computer Block Diagram

Computer Architecture

1. Internal Architecture of 8085 Microprocessor

csitnepal Unit 3 Basic Computer Organization and Design

EECS150. Implement of Processor FSMs

CPU Design John D. Carpinelli, All Rights Reserved 1

CSE 141L Computer Architecture Lab Fall Lecture 3

IA Digital Electronics - Supervision I

UNIT II OVERVIEW MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Introduction to 8086 microprocessors. Architecture of 8086 processors

Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.

Design of the MIPS Processor (contd)

Transcription:

CN310 Microprocessor Systems Design Simple Computer Nawin Somyat Department of Electrical and Computer Engineering Thammasat University

Outline Course Contents 1 Introduction 2 Simple Computer 3 Microprocessor Architecture 4 Memory 5 Peripherals 6 Applications Outline 1 Architecture Components 2 Registers Register Output Register B Register A Instruction Register Program Counter 3 ALU 1-bit Adder 4-bit ALU 4 Memory 5 Instruction Instruction Set Instruction Decoder CN310 Microprocessor Systems Design 2 / 25

Components Registers Register A Register B Register Output Program Counter (PC) Instruction Register (IR) Processing Unit (ALU) Memory Instruction Instruction Set Instruction Decoder CN310 Microprocessor Systems Design 3 / 25

Block Diagram CN310 Microprocessor Systems Design 4 / 25

1-bit Register CN310 Microprocessor Systems Design 5 / 25

1-bit Register - Symbol and Truth Table Reset CLK Load D Q 0 X X X 0 1 0 X X Q 0 1 1 0 X Q 0 1 1 1 d d If Reset = 0, Q = 0 If Reset = 1 and clock signal (CLK) is asserted/active if Load = 0, Q remains previous value (Q 0 ) if Load = 1, Q becomes d (d is either 0 or 1) CN310 Microprocessor Systems Design 6 / 25

4-bit Register If /CLR = 0, Q 3 Q 2 Q 1 Q 0 = 0000 If /CLR = 1 and clock signal (CLK) is asserted/active if Load = 0, Q 3 Q 2 Q 1 Q 0 will remain previous values if Load = 1, Q 3 Q 2 Q 1 Q 0 becomes D 3D 2D 1D 0 CN310 Microprocessor Systems Design 7 / 25

Register Output The output from 4-bit register is connected to a 4-bit buffer. The resulting register is used as Register Output. CN310 Microprocessor Systems Design 8 / 25

Register B Similar to Register Output, use 4-bit buffer register as Register B CN310 Microprocessor Systems Design 9 / 25

Bidirectional 4-bit Register Using tri-state buffer with 4-bit buffer register to create bidirectional 4-bit register. CN310 Microprocessor Systems Design 10 / 25

Bidirectional 4-bit Register If /EN = 1, D 3 D 2 D 1 D 0 will be in High Impedance (High-Z) state, used for receiving input data where: if LD = 0, D 3 D 2 D 1 D 0 will remain previous values if LD = 1, D 3 D 2 D 1 D 0 will be read into the register If /EN = 0, data kept in the register will be output to D 3 D 2 D 1 D 0 CN310 Microprocessor Systems Design 11 / 25

Register A D0-3 are bidirectional signals. Y0-3 are unidirection signals. CN310 Microprocessor Systems Design 12 / 25

Instruction Register Instruction Register simply stores the instruction to be executed. CN310 Microprocessor Systems Design 13 / 25

Program Counter if CP = 0 Q will remain previous value if CP = 1 Q will count up CN310 Microprocessor Systems Design 14 / 25

1-bit Full Adder C out A B + C in + S CN310 Microprocessor Systems Design 15 / 25

4-bit ALU if /EN = 0 S will give result if /EN = 1 S will be in high-z When /EN = 0 if Sub = 0 S = A + B if Sub = 1 S = A - B CN310 Microprocessor Systems Design 16 / 25

Connecting Registers and ALU to Bus CN310 Microprocessor Systems Design 17 / 25

Memory For limited operation in this simple computer, memory is used for storing fixed program only. Program will be preloaded into the memory. We will use ROM in this case. CN310 Microprocessor Systems Design 18 / 25

Instruction Set In this simple computer, we will have 5 simple instructions. Code Opeartion Description 1 A n load register A with n 2 A A + n add A with n and store result in A 3 A A - n subtract n from A and store resultin A 4 Output A store data in A to register Output F Stop stop operation CN310 Microprocessor Systems Design 19 / 25

Instruction Decoder Only one instruction will be active at any one time. CN310 Microprocessor Systems Design 20 / 25

Operation This simple computer will take 5 clock cycles (at most) to execute one instruction. Code Mneumonic Operation T0 T1 T2 T3 T4 1 MOV A, #n A n IR memory PC PC + 1 A Memory PC PC + 1 2 ADD A, #n A A + n IR memory PC PC + 1 B Memory PC PC + 1 A A + B 3 SUB A, #n A A - n IR memory PC PC + 1 B Memory PC PC + 1 A A B 4 OUT Output A IR memory PC PC + 1 Output A F HALT Stop IR memory PC PC + 1 STOP CN310 Microprocessor Systems Design 21 / 25

Ring Counter Ring counter provides synchronised clock cycles for instruction cycles. CN310 Microprocessor Systems Design 22 / 25

Control Unit CN310 Microprocessor Systems Design 23 / 25

Example Program Address Data Opcode Operand Comment ORG 0 0 1 5 MOV A, #5 ; set A = 5 2 2 4 ADD A, #4 ; add A with 4 4 4 OUT A ; display output 5 F HALT ; stop Memory Address Data 0 1 1 5 2 2 3 4 4 4 5 F CN310 Microprocessor Systems Design 24 / 25

Simple Computer Circuit Diagram CN310 Microprocessor Systems Design 25 / 25