Need Help ?

Home / Expert Answers / Other / 2436757575assignment-specifications-design-simple-4-bit-microprocessor-the-microprocessor-has-four-i

(Answered): 2436757575Assignment Specifications: Design Simple 4-bit Microprocessor. The microprocessor has fou ...



2436757575Assignment Specifications: Design Simple 4-bit Microprocessor. The microprocessor has four input registers (A, B, C

- The microprocessor accepts instructions from the user of 7-bits. The instruction contains three fields, the order for the i

- All inputs and outputs should be labeled using the labeling tool on Circuit Maker. You may also label the intermediate in/o

2436757575Assignment Specifications: Design Simple 4-bit Microprocessor. The microprocessor has four input registers (A, B, C, D), each of them is 4- bits. Register D is constant and have value zero (D=00002). Each Input register has a number (ID) to identify it as shown in the Table below:- Reg. A B ? ID 00 012 102 112 D Inputs are unsigned numbers so they could be only positive or zero. The microprocessor has one output register R of 4-bits. Each Input and the output should be displayed on a set of 7-segment displays. Each set is two displays to show the numbers from 0010-> 1510 (two for each in/out A, B, C, D, and R). The microprocessor is controlled by a clock (binary input) and two cycles at maximum are needed to get the results in the R register. The microprocessor has one Arithmetic and Logic Unit (ALU). The ALU can perform basic 4-bit Add/Subtract operations. The list of operations (opcode) and their meaning (menmonic) are shown in the following table:- Menmonic Opcode 000 001 010 011 Load (LD) Add (ADD) Subtract (SUB) Compare (CMP) Shift Left one bit (SHL1) Shift Right one bit (SHRI) Shift Left two bits (SHL2) Shift Right two bits (SHR2) 100 101 110 111 - The microprocessor accepts instructions from the user of 7-bits. The instruction contains three fields, the order for the instruction of what operation to do (Opcode), the ID of the first register (Sourcel) and the ID of the second register (Source2) as shown in the below table:- 3-bit Opcode 2-bit Sourcel 2-bit Source2 For two operand operations (Add, Subtract, or Compare), Sourcel and Source2 can take any value for any of the four registers (A, B, C, D). - For one operand operation (Load), Sourcel should take any value of the four registers (A, B, C, D) and Source2 should only take the value for Register D (Source2=11). - For one operand operations (Shift Left, or Shift Right), we do not care about the value of either Sourcel or Source2 since the operation is performed directly on the Destination Register R. The Table below shows example of microprocessor instructions:- Instruction in words (Examples) Instruction in Binary Result E-G-B LDA 000-00-11 R=A X-X-X ADD B,C 001-01-10 R=B+C X-X-X SUB CA 010-10-00 R=C-A X-X-X CMP D.C 011-11-10 R=D-C E=1 if D=CG=1 if DC L=1 if D<C SHL1 100-XX-XX R=R*2 X-X-X SHR1 101-XX-XX R=R/2 X-X-X SHL2 110-XX-XX R=R*4 X-X-X SHR2 111-XX-XX R=R/4 X-X-X - All inputs and outputs should be labeled using the labeling tool on Circuit Maker. You may also label the intermediate in/out inside the circuit to clarify your design on Circuit Maker. Bonus: o If you can display the output R as 5-bits signed number to accommodate for the overflow and negative values on 7-segment display you will take bonus marks. For negative numbers, the “TENS” 7-segment Display should show “-” to indicate the sign. For positive numbers, the "TENS” 7-segment Display should show “ZERO”. Note: 1) Students should show evidence of the progress of their projects during each coming lab session. 2) Students should submit a project report includes: a) The block diagram of the design b) Listallinputs/outputsforeachblock c) Show all design steps including (Truth Tables, State Tables, State Diagrams, K-Maps .... etc.)


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to 2436757575Assignment Specifications: Design Simple 4-bit Microprocessor. The microprocessor has four input registers (A,...
We have an Answer from Expert

Buy This Answer $4

Place Order