50 likes | 145 Vues
Explore the type of element ALU in a processor, how instructions are fetched, branching decisions, and common actions in instruction processing.
E N D
CSCE 212 Quiz 8 – 3/23/11 • What type of element is the ALU (combinational or state) and what does it mean for an element to be that type? • What is the first thing that occurs for any instruction? • How does the processor determine whether to branch or not for a beq instruction? 2a (extra credit): What is the other action that occurs for all instructions?
CSCE 212 Quiz 8 Answers • What type of element is the ALU (combinational or state) and what does it mean for an element to be that type? • Combinational type • outputs depend on current inputs (operates on data) • does not save any information
CSCE 212 Quiz 8 Answers • What is the first thing that occurs for any instruction? • Instruction fetched from the memory address designated by the program counter (PC)
CSCE 212 Quiz 8 Answers • How does the processor determine whether to branch or not for a beq instruction? • Subtracts the two values held in the given registers: if zero, values are equal
CSCE 212 Quiz 8 Answers 2a (extra credit): What is the other action that occurs for all instructions? • Read register(s)