Flash Cards for Lecture 6 of Comp Arch
Creator
username could not be found
It states that the speedup of a program using multiple processors is limited by the fraction of the program that can be parallelized.
Performing the operation.
Instruction-level parallelism (ILP) and thread-level parallelism (TLP).
Address Space Layout Randomization.
Performing multiple operations simultaneously using multiple execution units or cores.
If a piece of data is accessed, it is likely to be accessed again in the near future.
Retrieving the instruction from memory.
Reduced Instruction Set Computing; has a smaller set of simpler instructions.
Determining what operation needs to be performed.
Instruction Set Architecture (ISA), Microarchitecture, and System Design.
The interface between hardware and software, defining instructions, data types, addressing modes, etc.
Fetching, decoding, executing, and storing.
Complex Instruction Set Computing; has a large set of complex instructions.
Temporal Locality and Spatial Locality
Application-Specific Integrated Circuits; integrated circuits designed for a specific application.
Amdahl's Law
Using cache memory to reduce the average access time to memory.
Overlapping the execution of multiple instructions to improve throughput.
Dynamic Voltage and Frequency Scaling.
Long-term storage for data and programs (e.g., hard drives, SSDs).
Techniques used to improve the performance of a computer system.
Features built into the hardware to protect against certain types of attacks.
Specialized hardware units designed to accelerate specific tasks.
Multicore processors and GPUs.
Pipelining, parallelism, and caching.
Application-Specific Integrated Circuits.
Small, fast memory used to store frequently accessed data.
Field-Programmable Gate Arrays; integrated circuits that can be configured after manufacturing.
MIPS, ARM, x86
Redundancy, error correction codes, and fault tolerance.
Specialized processors designed for parallel processing, particularly for graphics and compute-intensive tasks.
Randomizing the memory locations of key data areas to make it harder for attackers to exploit vulnerabilities.
Accelerators, FPGAs, and ASICs.
Adjusting the voltage and frequency of the processor based on workload to reduce power consumption.
Executing multiple instructions in the same clock cycle.
Ensuring that the system operates correctly and reliably over its intended lifespan.
Defines what operations the CPU can perform.
Heat sinks, fans, and liquid cooling.
A processor with multiple cores on a single chip, allowing multiple threads to execute simultaneously.
Executing instructions in a different order than they appear in the program to avoid stalls.
The primary memory used to store programs and data that are currently being used by the CPU.
Small, fast storage locations in the CPU used to hold data and instructions being actively used.
Dynamic Voltage and Frequency Scaling (DVFS).
Superscalar execution and out-of-order execution.
Managing and dissipating heat generated by the processor and other components.
Field-Programmable Gate Arrays.
Each memory location maps to a specific location in the cache.
Storing the result of the operation.
Any memory location can be stored in any location in the cache.
Registers, cache, main memory, and secondary storage.
Address space layout randomization (ASLR) and hardware-based security features.
Vulnerabilities that allow attackers to access sensitive data by exploiting speculative execution.
Direct-mapped, fully associative, and set-associative.
Includes all other hardware components in a computing system, such as memory controllers, I/O devices, etc.
Buffer overflows, Spectre, and Meltdown.
Designing processors to perform well on specific types of workloads.
Occur when a program writes data beyond the allocated buffer.
Minimizing power consumption to reduce heat and extend battery life.
Data is written only to the cache, and main memory is updated later.
Executing multiple threads simultaneously on different cores or processors.
Using architectural features to enhance security.
If a piece of data is accessed, data nearby in memory is likely to be accessed soon.
Write-through and write-back.
The ability to perform multiple operations simultaneously using multiple execution units or cores.
Reduced Instruction Set Computing.
Design choices that impact a system's security.
Energy efficiency, thermal management, and reliability.
Executing multiple instructions from a single thread simultaneously.
Data is written to both the cache and main memory simultaneously.
The overlapping of the execution of multiple instructions to improve throughput.
The implementation of the ISA, including the organization of the CPU, cache, and memory system.
Designing systems that can continue to operate correctly even in the presence of faults.
Complex Instruction Set Computing.
Adding extra components or data to detect and correct errors.
Executing multiple instructions from a single thread simultaneously.
A compromise between direct-mapped and fully associative, where the cache is divided into sets, and each memory location maps to a specific set.
The interface between hardware and software, defining instructions, data types, addressing modes, etc.
Computer architecture deals with the engineering considerations involved in designing a computer.
Codes used to detect and correct errors in memory and storage systems.
Executing multiple threads simultaneously on different cores or processors.
LIFO (Last In, First Out)
Interrupt Enable Flag
MASM generates code for 8086 by default. use .186, .286, .386 directive in the first line of your code to solve.
PUSH all general-purpose registers onto the stack.
Trace (Trap) Flag
Zero Flag
SP holds an effective address, while SS holds a physical address.
AND, OR, XOR, NOT
Get all general-purpose registers from the stack.
Auxiliary Carry Flag
Segment addresses are shifted 4 bits to the left before adding the offset.
Sign Flag
Store the flags register in the stack.
Performs a bitwise AND operation like the AND instruction, but does not modify the source and destination.
Use registers, or pass parameters on the stack.
Parity Flag
The return address (IP) is pushed to the stack.
ROL (Rotate Left), ROR (Rotate Right)
SHL (Shift Logical Left), SHR (Shift Logical Right)
Callee-saved: procedure clears out some registers for its own use. Caller-saved: calling program saves the registers that it does not want the procedure to overwrite.
Carry Flag
Pop return address from stack and Jump to that address
SAL (Shift Arithmetic Left), SAR (Shift Arithmetic Right)
RCL (Rotate Left Through Carry), RCR (Rotate Right Through Carry)
Get the flags register from the stack.
Full 3 hours, in person, written by hand without outside notes, worth 24% of final grade, covers lectures 1-5.
CLC (Clear Carry Flag), STC (Set Carry Flag), CLD (Clear Direction Flag), STD (Set Direction Flag), CLI (Clear Interrupt Flag), STI (Set Interrupt Flag), CMC (Complement Carry Flag), LAHF (Load AH from flags)
Used to compare two 8, 16, or 32-bit numbers by performing subtraction without saving the result.
Makes the program execution jump to a specific label or address unconditionally.
Overflow Flag
Stack grows towards smaller addresses; stack size is static and predetermined.
PUSH (push operand onto stack), POP (pop operand from stack)
Makes the program execution jump to a specific label or address if the condition is true.
push ax; push dx; call myproc; ...
Flags are set according to the result of the subtraction operation.
The OS steps in and kills program.
je (jump if equal), jg (jump if greater), jl (jump if less), etc.
Procedures should not push to stack without popping
Jump to effective address given by operand
Uses the CX register as a loop counter and decrements it, looping if CX ≠ 0.
Defined after they are called, before end of code segment
Direction Flag