Download presentation

Presentation is loading. Please wait.

Published byMarvin Darnall Modified over 3 years ago

1
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Designing a Microprocessor Chapter 1

2
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Expectations Being a computer science or electrical engineering student, you have probably assembled a PC. You have gone out to purchase the motherboard, CPU, memory, disk drive, video card, sound card and other necessary parts. You have assembled them together, and have made yourself a state-of-the-art working computer. But have you ever wonder how the circuits inside those IC (integrated circuit) chips are designed You know how the PC works at the system level by installing the operating system and seeing your machine comes to life. But have you thought about how your PC works at the circuit level? How is the memory designed or how is the CPU circuit designed?

3
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Overview of a Microprocessor The Von Neumann model of a computer, picture in Figure 1, consists of four main components: the input, the output, the memory and the CPU (central processing unit). The parts that you purchased for your computer can all be categorized into one of these four groups. The keyboard and mouse are examples of input devices. The CRT (cathode ray tube) and speakers are examples of output devices. The different types of memory, cache, read-only memory (ROM) and random-access memory (RAM), and the disk drive are all consider as part of the memory box in the model. In this book, the focus is not in the mechanical aspects of the input, output and storage devices. Rather, the focus is in the design of the digital circuitry of the CPU (also referred to as the microprocessor), the memory and other supporting logical circuits.

4
Microcomputer Circuits Prof Jess Role @ UEAB 2007

7
The controller is a finite state machine (FSM) because it is a machine that executes by going from one state to another, and the fact that there are only a finite number of states for the machine to go to. The controller is made up of three parts: the next-state logic, the state memory, and the output logic. The purpose of the state memory is to remember the current state that the FSM is in. The next-state logic is the circuit for determining what the next state ought to be for the machine. And the output logic is the circuit for generating the actual control signals for controlling the datapath.

8
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Every digital logic circuit, regardless of whether it is part of the control unit or the datapath, is categorized as either a combinational circuit or a sequential circuit. A combinational circuit is one where the output of the circuit is dependent only on the current inputs to the circuit. For example, an adder circuit is a combinational circuit. It takes two numbers as inputs. When given the two inputs, the adder outputs the sum of the two numbers as the output.

9
Microcomputer Circuits Prof Jess Role @ UEAB 2007 However, regardless of whether a circuit is combinational or sequential, they are all made up of the three basic logic gates: AND, OR, and NOT gates. From these three basic gates, the most powerful computer can be made. Furthermore, these basic gates are built using transistors – the fundamental building blocks for all digital logic circuits. Transistors are just electronic binary switches that can be turned on or off. The on and off states of transistors are used to represent the two binary values 1 and 0.

10
Microcomputer Circuits Prof Jess Role @ UEAB 2007

11
Design Abstraction Levels Designing at the transistor level, The next level up in the abstraction is the gate level.

12
Microcomputer Circuits Prof Jess Role @ UEAB 2007 These combinational and sequential components are used at the register-transfer level in building the datapath and the control unit in the microprocessor. At the register-transfer level, we are concerned about how the data is transferred between the various registers and functional units to realize or solve the problem at hand. Finally, at the highest level, which is the behavioral level, we construct the circuit by describing the behavior or operation of the circuit using a hardware description language. This is very similar to writing a program using a programming language.

13
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Examples of a 2-input Multiplexer

14
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Behavioral Level We can describe the operation of the 2-input multiplexer simply, using the same names as in the logic symbol, by saying that d0 passes to y when s = 0 and d1 passes to y when s = 1 Or more precisely, the binary value that is at d0 passes to y when s = 0, and the binary value that is at d1 passes to y when s = 1.

15
Microcomputer Circuits Prof Jess Role @ UEAB 2007

16
After all the preliminary stuff in the code, the actual description of the operation of the multiplexer is in the one line y <= d0 WHEN s = '0' ELSE d1; which says that the signal y gets the value of d0 when s is equal to 0, otherwise, y gets the value of d1. Almost exactly word for word!

17
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Gate Level Figure 6. Gate level circuit diagram for the 2-input multiplexer: (a) circuit using eight gates; (b) circuit using four gates.

18
Microcomputer Circuits Prof Jess Role @ UEAB 2007 The Boolean equation in (b) can be derived from either the circuit diagram or the truth table. The first equality in (b) matches the truth table in (a) and also the circuit diagram in Figure 6 (a). The second equality in (b) matches the circuit diagram in Figure 6 (b). To derive the equation from the truth table, we look at all the rows where the output y is a 1. Each of these rows results in a term in the equation. For each term, the variable is primed when the value of the variable is a 0, and unprimed when the value of the variable is a 1.

19
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Figure 7. Gate level description for the 2-input multiplexer: (a) using a truth table; (b) using a Boolean equation.

20
Microcomputer Circuits Prof Jess Role @ UEAB 2007 Transistor Level Figure 8. Transistor circuit for the 2-input multiplexer.

21
Microcomputer Circuits Prof Jess Role @ UEAB 2007

Similar presentations

Presentation is loading. Please wait....

OK

COMPUTER SYSTEM.

COMPUTER SYSTEM.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Download ppt on sectors of economy Ppt on barack obama leadership skills Ppt on atomic structure for class 8 Ppt on different types of computer softwares Ppt on united nations Ppt on kinetic theory class 11 Download ppt on strings in c language Ppt on 2 stroke ic engine plans Ppt on chronic renal failure Free ppt on brain machine interface mit