CSC258 Midterm2 || with 100% Accurate Solutions.
Instruction Execution correct answers • PC ® instruction memory, fetch instruction• Register numbers ® register file, read registers• Use ALU to calculate • Arithmetic result * Memory address for load/store • Branch comparison • Access data memory for load/store• PC - target address or PC + 4 Single Cycle data path correct answers does an instruction in one clock cycle Multiplexor correct answers alternate data sources are used for different instructions - is a device that receives multiple input signals and conveys that input to a single output signal ALU correct answers Arithmetic and Logic Unit - does all mathematical calculations and makes all logical decisions Control Unit correct answers Takes instruction to be executed as input Used to determine how to set control lines for functional units (register file, ALU and memories) and two of the multiplexors Third multiplexor (top) is driven by a combo of the unit and the output of the Zero line of ALU (performs comparison of beq instruction and determines whether next instruction js just PC+4 or PC+label (for branches Elements in Single Cycle processor's datapath correct answers Adder Immediate generation unit Instruction memory Data memory Multiplexer Program counter register ALU Registers/register file PCSrc correct answers 0: other instructions, 1: for branch instructions AlUSrc correct answers 0: for register values
Written for
- Institution
- CSC258
- Course
- CSC258
Document information
- Uploaded on
- May 3, 2024
- Number of pages
- 14
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers