{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture18 - Announcements ECE 2300 Introduction to Digital...

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

View Full Document Right Arrow Icon
Lecture 18: Spring 2010 1 ECE 2300 Introduction to Digital Logic Design Single Cycle Microprocessor Lecture 18: 2 Announcements HW 8 is on Blackboard Prelim 2 Thursday, April 15, 7:30pm, Phillips 101 – Covers Lectures 10-20 – Closed book and notes – Let me know if you need a make-up Lecture 18: 3 Datapath + Control Unit k-bit register addresses register/immediate select function select memory write load register ALU/memory select RF LD SA SB DR D_in ALU RAM DataA DataB V C Z N F m … F 0 SE IMM MB M_address Data_in MW MD 0 1 0 1 DR SA SB MB FS MD LD MW IMM immediate value Control Word ! V C N Z DR SA SB IMM MB FS MD LD MW CU Lecture 18: 4 Shift and Add Multiplication S1 R0 <= R0-R0 S2 R1 <= M[R0] S3 R2 <= M[R0 + 1] S4 R3 <= R3-R3 S5 R4 <= R2 & 1 S6 R2 <= SRL(R2) S7 R3 <= R3 + R1 S8 R1 <= SLL(R1) S9 R2 <= R0+2 S10 M[R2] <= R3 DR SA SB MB FS MD LD MW 000 000 000 0 SUB 0 1 0 001 000 xxx 1 ADD 1 1 0 010 000 xxx 1 ADD 1 1 0 011 011 011 0 SUB 0 1 0 100 010 xxx 1 AND 0 1 0 011 011 001 0 ADD 0 1 0 001 001 xxx x SLL 0 1 0 010 000 xxx 1 ADD 0 1 0 xxx 010 011 1 ADD x 0 1 010 010 xxx x SRL 0 1 0 IMM x 0 1 x 1 x x 2 0 x 0 1 2 3 4 5 6 7 8 9 10 R4=0 R2 " 0 Start Start’ R4=1 R2=0 Lecture 18: 5 Program Counter (PC) Special register that points to the location (address) in ROM of the next control word Updated every clock cycle Sequential execution – Control words read from sequential ROM locations – PC is increased by 1 after each control word read Branch operations – Special control flow operations – Condition codes determine whether to branch or not – If so, next ROM address is PC + branch offset Lecture 18: 6 R2 <= R0 + R1 R1 <= M[R2] M[R2] <= R0 R3 <= R0 + 3 PC-Based Control Unit DR SA SB MB FS MD LD MW IMM 010 000 001 0 ADD 0 1 0 x 001 010 xxx 1 ADD 1 1 0 0 xxx 010 000 1 ADD x 0 1 0 011 000 xxx 1 ADD 0 1 0 3 a: a+1: a+2: a+3: Adder 1 PC RF LD SA SB DR D_in ALU RAM DataA DataB V C Z N F m … F 0 SE IMM MB M_address Data_in MW MD 0 1 0 1 DR SA SB IMM MB FS MD LD MW ROM Lecture 18: Branch Operations Used to jump to a different part of the program Consists of a condition and an offset • Condition – Perform an operation and check for V: Overflow C: Carry out Z: Zero N: Negative • Offset – How far ahead, or back, to jump if condition is true 7 Lecture 18: 8 Branch Operations PC RF LD SA SB DR D_in ALU RAM DataA DataB V C Z N F m … F 0
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
Image of page 2
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