Instruction set table

Anonymous
timer Asked: Nov 4th, 2016

Question description

Prepare a table of the following instructions: CLEAR (you can subtract a register from itself to clear it), INCREMENT, ROTATE, ADD, SUBTRACT and MOVE using the basic instructions in Table-1 and CC bit information in Table-2 (refer to “SimpleProcessorInstSet”). Many powerful arithmetic and logical instructions can be constructed using these 2 tables.

University of North Texas Department of Electrical Engineering EENG 2910 Project III – Digital System Design Simple Processor Instruction Set Three Types of Instructions: Register Instructions: 7 O 6 P 5 4 C C 3 2 SRC 1 0 DST Branch Instructions: 7 1 6 1 5 4 C C 3 2 1 0 ADDRESS Halt & I/O Instructions: 7 1 6 1 5 4 0 0 3 L 2 1 0 H DST Table-1: Basic Register Instructions. OP 00 Function (SRC) + CI  (DST) 01 (SRC) + (DST) + CI  (DST) 10 (DST) - (SRC) - CI  (DST) Table-2: Carry Bit usage based on CC bits. CC 00 01 10 11 CI 0 1 C C’ In the above tables, SRC and DST respectively imply the source and destination registers and “(.)” means “contents of” – (DST)  contents of the destination register. Now, using the above tables, we can say that the instruction 01111011 means “Add contents of Register 2 (10) to contents of Register 3 (11) and add complement of the carry to the result. Then, put the overall result in Register 3. Similarly, the instruction 11010010 implies an unconditional branch to memory address 2 whereas the instruction 11100010 implies branch on carry to memory location 2. You can construct a branch on no carry instruction in a similar way. If the first 4-bits are 1100 (you may see that they do not clash with other instructions) it is a Halt/Display instruction. If L = 1, the instruction loads the input bits (from a fixed switch register) to the register pointed to by DST bits. If H = 1, the machine halts, displaying the contents of DST resister. You can guess what happens if L = H = 1. Now using Table-1 and Table-2, you can construct a number of arithmetic and logical instructions. Some of the requirements below will be covered in Project-7. However, the ones that are not covered are to be addressed in order to complete the project. You are required to do the following:  Prepare a table of the following instructions: CLEAR (you can subtract a register from itself to clear it), INCREMENT, ROTATE, ADD, SUBTRACT and MOVE using the basic instructions in Table1 and CC bit information in Table-2. Many powerful arithmetic and logical instructions can be constructed using these 2 tables.  Draw a layout (drawing) of the different modules (components) of your processor.  Draw a block diagram showing interconnection of different registers and control unit.  Write a program for multiplication of two numbers using the instructions you designed as above, Hint: you can use add and shift instructions.  Design a Control Unit for picking up the instructions from the memory address given by the program counter (PC), interpret them, fetch the operands and feed them to ALU and store the results in the destination registers. In case of branch instructions, it would be simple loading the PC with destination address. In case of display, the contents of the destination will be forwarded to the LEDs.
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags
Study Guides

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors