128 Flashcards
Select which of the following are part of the compilation process:
Lexical Analysis, Syntax Analysis, Optimization, linking, code generation
In the compilation process, the ______ performs program analysis and optimization.
Middle Stage
Which of the follow best matches the definition for Syntax Analysis?
Performs syntax rules checking and constructs a symbol table and abstract syntax tree.
Which of the follow best matches the definition for Lexical Analysis?
Separates the input source code text into tokens.
Which of the follow best matches the function of the Middle Stage in the compilation process?
Performs program analysis and optimization.
In the compilation process, the ______ separates the input source code text into tokens.
Lexical Analyzer (lexer)
A computer consists of five major modules. What module do registers belong to?
Data Path
The ______ of the CPU stores a small number of pieces of information, commonly the temporary results of calculations.
Registers
Which of the following best matches the definition of the Bus?
Carries data between the ALU, registers, memory, and peripherals.
The ______ of the CPU acts as an interface between the processor and the outside world, including long-term storage and user interfaces.
IO / Peripherals
A computer consists of five major modules. What module does ALU belong to?
Data Path
If two computers made by different companies have the same machine language, that means they have the same:
Architecture
Which of the following best matches the definition of the Datapath?
Contains the ALU and Registers, and the interconnection between them.
The ______ of the CPU carries data between the ALU, registers, memory, and peripherals.
Bus
The ______ of the CPU contains the ALU and Registers, and the interconnection between them.
Datapath
Which of the following best matches the definition of the Control Unit?
Coordinates the flow of information around the processor.
The ______ of the CPU stores a small number of pieces of information, commonly the temporary results of calculations.
Registers
Instruction cycle
fetch, decode, execute, store
Decode Hardware
Data Memory, control unit
Fetch Hardware
Instruction Memory, program counter
Execute Hardware
ALU
Store Hardware
Data Memory, program counter
System Clock
Coordinates Activity, latches memory
Select the hardware that is active during the Execute Stage of the instruction cycle:
ALU
Which of the following are stages in the instruction cycle?
Execute, decode, fetch, store
Which of the following are NOT stages in the instruction cycle?
Link, jump
A program consisting of 323 instructions is executing on a simple processor. Each instruction takes 4 cycles to complete, with a clock rate of 339 KHz. How long will it take to execute the program? Give your answer in units of milliseconds with at least 1 decimal place of precision.
3.8
Select the hardware that is active during the Store stage of the instruction cycle:
Data Memory, program counter
Select the hardware that is active during the Fetch Stage of the instruction cycle:
Program Counter, instructon memory
A program consisting of 946 instructions is executing on a simple processor. Each instruction takes 2 cycles to complete, with a clock rate of 6 MHz. How long will it take to execute the program? Give your answer in units of microseconds with at least 1 decimal place of precision
315.3
clock frequency
f = 1/T (1Hz = 1 cycle per second)
Speed
1 Program Execution / Time
X is n times faster than Y
SpeedX / SpeedY = n; TimeY/TimeX = n
Pareto Principle
80% of results generated by 20% of code
What design effort can improve the performance of a computer?
Decrease the clock cycles used by the program, Decrease the CPI
In comparing two computers, we execute a benchmark on each and measure the resulting speeds: Computer A: 733. Computer B: 979 How many times faster is Computer A than Computer B?
0.7
Which of the follow best matches this definition: The total number of instructions in a given program.
Instruction Count
Which of the follow best matches this definition: The duration of one clock cycle in seconds.
Clock Period
Which of the follow best matches this definition: The frequency of the clock signal, in cycles per second.
Clock Rate
In comparing two computers, we execute a benchmark on each and measure the resulting execution times:Computer A: 85, Computer B: 243. How many times faster is Computer B than Computer A?
0.3
the time taken for an electrical signal to travel through a wire or logic system
propagation delay
A designer chooses to use a cheaper polymer for packaging that decreases the transfer of heat to a heat sink. All else being constant, will the performance likely increase, decrease, or stay the same?
Decrease
Select the items below that a designer can modify to effect propagation delay (select all that apply).
Manufacturing Process, Processor Organization
A designer chooses to use a manufacturing process that decreases the feature size on the processor. All else being constant, will the performance likely increase, decrease, or stay the same?
Increase
A designer chooses to use an organization that increases the logic depth of the processor. All else being constant, will the performance likely increase, decrease, or stay the same?
Decrease
A designer chooses to use an organization that decreases the logic depth of the processor. All else being constant, will the performance likely increase, decrease, or stay the same?
Increase
A designer chooses to use a manufacturing process that increases the feature size on the processor. All else being constant, will the performance likely increase, decrease, or stay the same?
Decrease
How many symbols are used in the binary number system?
2