{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

2-Mod6_LS_2011

2-Mod6_LS_2011 - ECE 270 Introduction to Digital System...

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

View Full Document Right Arrow Icon
ECE 270 Introduction to Digital System Design © 2011 by D. G. Meyer 1 Opcode Mnemonic Function Performed 0 0 0 LDA addr Load A with contents of location addr 0 0 1 STA addr Store contents of A at location addr 0 1 0 ADD addr Add contents of addr to contents of A 0 1 1 SUB addr Subtract contents of addr from contents of A 1 0 0 AND addr AND contents of addr with contents of A 1 0 1 HLT Halt – Stop, discontinue execution Addr Instruction Comments 00000 LDA 01011 Load A with contents of location 01011 00001 ADD 01100 Add contents of location 01100 to A 00010 STA 01101 Store contents of A at location 01101 00011 LDA 01011 Load A with contents of location 01011 00100 AND 01100 AND contents of 01100 with contents of A 00101 STA 01110 Store contents of A at location 01110 00110 LDA 01011 Load A with contents of location 01011 00111 SUB 01100 Subtract contents of location 01100 from A 01000 STA 01111 Store contents of A at location 01111 01001 HLT Stop – discontinue execution Lecture Summary – Module 6-A Simple Computer – Top-Down Specification Reference: Meyer Supplemental Text, pp. 1-18 overview o the “ultimate application” of what we have learned o computer defn – sequential execution of stored program o architecture defn – arrangement and interconnection of functional blocks o house analogy big picture o input/output o start (reset) o clock floor plan o programming model o instruction set o registers o instruction format square4 opcode square4 address o two-address machine programming example memory snapshot Calculation of ADD, AND, and SUB results:
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
ECE 270 Introduction to Digital System Design © 2011 by D. G. Meyer 2 block diagram o memory o program counter o instruction register o arithmetic logic unit o instruction decoder and micro-sequencer notes o each functional block is “self-contained” (can be independently tested ) o can add more instructions by increasing number of opcode bits o can add more memory by increasing the number of address bits o can increase numeric range by increasing the number of data bits
Image of page 2
ECE 270 Introduction to Digital System Design © 2011 by D. G. Meyer 3 Lecture Summary – Module 6-B Simple Computer – Instruction Tracing Reference: Meyer Supplemental Text, pp. 18-24 overview o two basic steps in “processing” an instruction square4 fetch square4 execute o will trace the processing of several instructions to better understand this program segment to trace worksheet step 1 (after START pushbutton pressed) Addr Instruction Comments 00000 LDA 01011 Load A with contents of location 01011 00001 ADD 01100 Add contents of location 01100 to A 00010 STA 01101 Store contents of A at location 01101 Notes: 1. The clock edges drive the synchronous functions of the computer (e.g., increment program counter) 2. The decoded states (here, fetch and execute) enable the combinational functions of the computer (e.g., turn on tri-state buffers)
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
ECE 270 Introduction to Digital System Design © 2011 by D. G. Meyer 4
Image of page 4
ECE 270 Introduction to Digital System Design © 2011 by D. G. Meyer 5 Lecture Summary – Module 6-C Simple Computer – Bottom-Up Implementation Reference: Meyer Supplemental Text, pp. 24-42
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
Image of page 6
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