Part G: Processors, part 1 (10 marks)
For the following question, a text file called q7.txt has been provided for you to fill in your answers. Each step below is represented by a set of lines in this text file, with an underscore character (“_”) that must be replaced with your answer.
The diagram on the right shows a simple datapath from the lecture slides. In the text file provided, fill out the correct control signals to perform the operations listed in the table below. The first one has been done for you as an example. (10 marks)
ALU Operations:
Copyright By PowCoder代写 加微信 powcoder
ALUop == 00 :
ALUop == 01 :
ALUop == 10 :
ALUop == 11 :
Transfer A Add Subtract Multiply
State Operation:
1. Load x into RB
2. RB = RB * x
3. Load x into RA
4. RA = RA * x
5. RA = x + RA
Fill in these values in the q7.txt file provided.
6. RA = RA – RB
Student Number: __________________ 11
(continued)
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com