Address Contents Comments The Load ACC Opcode 1 7 The number 7 to be loaded in

Address contents comments the load acc opcode 1 7 the

This preview shows page 12 - 15 out of 15 pages.

Address Contents Comments 0 0 ;The ‘Load ACC’ Opcode 1 7 ;The number ‘7’ to be loaded in to theAccumulator 2 5 ; The ‘Subtract’ Opcode 3 3 ;The number 3 to be Subtracted to the Accumulator 4 2 ;The ‘Stop’ Opcode
Image of page 12

Subscribe to view the full document.

We should get the result of 7 subtract 3 that is 4. It takes four clock pulses to accomplish the function of subtraction. FOURTH: In this task contents of the ACC should be written into a memory location specified by the instruction’s operand. Description Instructions Store ACC Opcode 6 Pres.State 00 01 02 03 Pin Number NextStateBits Load IR Write Read ACC to DataBus Load ACC Load MAR Use PC /~A_Only /~Invert Logic/~Arith X X X X 1-0 2 3 4 5 6 7 8 9 10 11 12 13 14 15 01 1 0 00 0 0 00 0 0 00 0 0 1 0 0 0 1 0 0 1 0 1 0 0 0 0 0 0 1 X X X 1 0 0 0 0 0 0 0 0 0 0 0 X X X X X X X X 0 0 0 0 0 0 0 0 Hex Equivalent 0115 0192 0028 0000 Shown below are the Address and contents of the Rom. Also we see the corresponding functions performed by the Prom. Address Contents Comments 0 0 ;The ‘Load ACC’ Opcode
Image of page 13
1 5 ;The number ‘5’ to be loaded in to theAccumulator 2 6 ; The ‘Store ACC’ Opcode 3 F 5 will be stored in the RAM 4 2 ;The ‘Stop’ Opcode As we see operand 6 should be stored in the RAM It takes five Clock pulses to accomplish the load the RAM. Task 5-10: Invent Your Own Instruction In this task we are supposed to come up with our own set of instructions for the microprocessor to perform. The instrunction I chose was that of negating a number. Program to Negate a Number ROM (hex) Comment address value 0 7 Negate the value that follows 1 8 Value to be negated 2 2 Stop The state of the system is recorded in the table below. Negate ACC Test Results for the Microprocessor Circuit Controls State Controller Memory Access Buses Res et Clo ck Inst rucr tion Seq uen cing Dec oder PC MA R Add ress Dat a AC C AL U (logic value) (hex ) (bin ) (hex) 1 X 0 00 011 5 0 0 0 7 0 9 0 (–) 7 01 095 0 1 0 1 8 0 7 0 (–) 7 00 011 5 2 0 2 2 7 E 0 (–) 2 01 000 1 3 0 0 7
Image of page 14

Subscribe to view the full document.

The expected result of (8h)’ is 7h, so this instruction also operates as expected. All the instructions are valid implementations and may be combined to create more complex programs. What was learned. The concept of a complete Microprocessor. The way the controller works. The significance of a controller. The ways of giving own instructions to the processor.
Image of page 15
  • Spring '18

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

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes