Question

In: Computer Science

Write the logical expression for the control signal RF_Write assuming the instruction set consists only of...

  1. Write the logical expression for the control signal RF_Write assuming the instruction set consists only of the instructions below. The answer should be similar to "B_Select = T3 ∙ (Load + Store + AddImm + …) + …"
  • Add R3,R4,R5
  • Load R5,X(R7)
  • Store R6,X(R8)
  • Unconditional Branch
  • Conditional Branch (Branch_if_[R5]=[R6] Loop)
  • Subroutine Call (Call_Register R9)

Solutions

Expert Solution

Answer.

Step 1

Logical expression for the Control Signal:

  • Add R3, R4, R5
  1. Memory address <----[PC], Read memory,
    IR <---- Memory data,
    PC <-- [PC] + 4
  2. Decode instruction,
    RA <---- [R4], RB <---- [R5]
  3. RZ <---- [RA] + [RB]
  4. RY <-- [RZ]
  5. R3 <---- [RY]
  • Load R5, X(R7)

1. Memory address <---- [PC],
Read memory,
IR <---- Memory data,
PC <-- [PC] + 4

2. Decode instruction, RA <-- [R7]

3. RZ <-- [RA] + Immediate value X

4. Memory address <-- [RZ],
Read memory,
RY <---- Memory data

5. R5 <-- [RY]

Step 2

  • Store R6, X(R8)

1. Memory address <-- [PC],
Read memory,
IR <---- Memory data,
PC <---- [PC] + 4

2. Decode instruction,
RA <-- [R8], RB <-- [R6]

3. RZ <-- [RA] + Immediate value X, RM <-- [RB]

4. Memory address <-- [RZ], Memory data <-- [RM],
Write memory

5. No action

  • Unconditional Branch
  1. Memory address <-- [PC], Read memory,
    IR <---- Memory data,
    PC <-- [PC] + 4
  2. Decode instruction
  3. PC <-- [PC] + Branch offset
  4. No action
  5. No action
  • Conditional branch: Branch_if_[R5]=[R6] LOOP
  1. Memory address <-- [PC],
    Read memory,
    IR <---- Memory data,
    PC <-- [PC] + 4
  2. Decode instruction, RA <-- [R5], RB <-- [R6]
  3. Compare [RA] to [RB],
    If [RA] = [RB], then PC <-- [PC] + Branch offset
  4. No action
  5. No action
  • Subroutine call with indirection: Call_register R9
  1. Memory address <-- [PC],
    Read memory, IR <--- Memory data,
    PC <-- [PC] + 4
  2. Decode instruction, RA <-- [R9]
  3. PC-Temp <-- [PC],
    PC <-- [RA]
  4. RY <---- [PC-Temp]
  5. Register LINK <-- [RY]

Kindly upvote please,

Thank you.


Related Solutions

Write a program to check given expression is valid or not.The expression consists of paranthsis like  [{(...
Write a program to check given expression is valid or not.The expression consists of paranthsis like  [{( if valid then convert into postfix expression and after conversion then evaluate postfix expession(using stack) and do not use build in stack. Use the c++ laguage.
create an expression using appropriate logical operators (AND,OR or NOT) 1. You can have only one...
create an expression using appropriate logical operators (AND,OR or NOT) 1. You can have only one meal a. pizza b. spaghetti 2. You need one of the following as proof of identity to get driver's license a. passport b. two of the following (a) birth certificate (b) ID CARD (c) Bill statement with your name and address
Write a possible assembly language instruction or set of instructions to accomplish the following: a) Compare...
Write a possible assembly language instruction or set of instructions to accomplish the following: a) Compare the byte stored at the memory location pointed to by register R4 to the upper (higher) byte stored in register R5 b) Branch to instruction at label ‘ZERO’ if the lower byte of register R6 is zero c) Jump to the instruction at label ‘EVEN’ if the value in register R7 is an even number
Write about a paragraph or two about gun control. Discuss the inherent logic and logical fallacies...
Write about a paragraph or two about gun control. Discuss the inherent logic and logical fallacies on both sides of gun control topic (do not pick one that you feel strongly about since you may not be able to separate your personal views from the analysis). Do not take a side in the discussion--just analyze the way each side argues its point (and the mistakes they may make).
1. Vinegar consists of acetic acid, CH3COOH, and water. Write out the equilibrium expression for acetic...
1. Vinegar consists of acetic acid, CH3COOH, and water. Write out the equilibrium expression for acetic acid reacting with water. 2. Citric acid, H3C6H5O7, contributes to the acidity of many foods. Write out the equilibrium expression for citric acid reacting with water to lose one acidic proton.
Write an assembly program using the super simple cpu instruction set for the following problem. Take...
Write an assembly program using the super simple cpu instruction set for the following problem. Take input an integer from the user. Output three times the input to the output box. For example, if the user inputs 10 (base-10) then output box should show 30 (base-10). Hint: 3 * p can be calculated by doing p+p+p. ONLY write your assembly instructions here.
Consider non-dissociative adsorption. Assuming both adsorption and desorption are first-order processes, write down an expression for...
Consider non-dissociative adsorption. Assuming both adsorption and desorption are first-order processes, write down an expression for the coverage of an adsorbate as a function of time. The system is at a temperature T, there is only one component in the gas phase above the surface at pressure p and the saturation surface coverage is given by qmax. Assume adsorption is non-activated and that the sticking is direct. Hint: Start by writing d? (t) dt =? 0 d?(t) dt = r...
4. Use generate statement to write VHDL code for a 16 bit adder assuming the only...
4. Use generate statement to write VHDL code for a 16 bit adder assuming the only available building block is a full adder. Thank
a. Assume that x is a variable that has been given a string value. Write an expression whose value is True if and only if x is an octal (Base 8) digits (0-7)
In Python: 1 line short expressionsa. Assume that x is a variable that has been given a string value. Write an expression whose value is True if and only if x is an octal (Base 8) digits (0-7)b. Assume that x is a variable that has been given a string value. Write an expression whose value is True if and only if x is an letter.c. Assume that x is a variable that has been given a string value. Write...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT