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