{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

EE101Lecture25

EE101Lecture25 - Introduction to Digital Logic Lecture 25...

Info icon This preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
© Mark Redekopp, All rights reserved Introduction to Digital Logic Lecture 25 Simple CPU Overview Instruction Set
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
© Mark Redekopp, All rights reserved 1110 0010 0101 1001 0110 1011 0000 1100 0100 1101 0111 1111 1010 1100 0010 1011 0001 0110 0011 1000 MOVE.W X,D0 CMPI.W #0,D0 BLE SKIP ADD Y,D0 SUB Z,D0 SKIP MUL Software Process Software Program High Level Language Description Assembly (.asm/.s files) Executable Binary Image if (x > 0) x = x + y - z; a = b*x; JLEZ X,SKIP ADD X,X,Y SUB X,X,Z SKIP: MUL A,B,X 1110 0010 0101 1001 0110 1011 0000 1100 0100 1101 0111 1111 1010 1100 0010 1011 0001 0110 0011 1000 .c/.cpp files 1110 0010 0101 1001 0110 1011 0000 1100 0100 1101 0111 1111 1010 1100 0010 1011 0001 0110 0011 1000 Object/Machine Code (.o files) Compiler Assembler Linker Loader / OS Program Executing A “compiler” (i.e. gcc, VisualC++, etc.) also includes the assembler & linker
Image of page 2
© Mark Redekopp, All rights reserved Hardware Components Computer hardware can be classified into three categories Input/Output Devices Supplies and consumes data Supplies the program Keyboard, Mouse, Monitor, Hard Drive Memory (RAM/ROM) Temporary storage for data and program Processor Performs operations on data as indicated by SW program Pentium, Celeron, etc. Processor Memory Output Devices Input Devices Software Program Data
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
© Mark Redekopp, All rights reserved Memory Like the memories we learned about earlier Set of cells/rows that each store a group of bits (usually, 1 byte = 8 bits) but can be larger like 2-bytes = 16-bits, or even 4-bytes = 32-bits, etc. Unique address assigned to each cell/row Used to reference the value in that location 11010010 01001011 10010000 11110100 01101000 11010001 00001011 0 1 2 3 4 5 FF 16 Address Data Memory Device
Image of page 4
© Mark Redekopp, All rights reserved Memory Operations Memories perform 2 operations Read: retrieves data value in a particular location (specified using the address) Write: changes data in a location to a new value To perform these operations a set of address , data , and control inputs/outputs are used Note: A group of wires/signals is referred to as a „bus‟ Thus, we say that memories have an address , data , and control bus bus . 11010010 01001011 10010000 11110100 01101000 11010001 00001011 0 1 2 3 4 5 1023 11010010 01001011 10010000 11110100 01101000 00000110 00001011 0 1 2 3 4 5 1023 2 10010000 Read Addr. Data Control Addr. Data Control 5 00000110 Write A Write Operation A Read Operation
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
© Mark Redekopp, All rights reserved Processor Performs the same 3-step process over and over again Fetch an instruction from memory Decode/Control the instruction Generate necessary control signals to control the datapath to execute the given instruction Execute the instruction Perform the specified operation These 3 steps are known as the Instruction Cycle Processor Memory ADD SUB CMP Arithmetic Circuitry Control Circuitry 1 Fetch Instruction Generate control signals Add the specified values 2 3 Address Data Control
Image of page 6
© Mark Redekopp, All rights reserved Processor 3 Primary Components of a Processor ALU Registers
Image of page 7

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern