Computer Architecture Flashcards
What is a computer? What does a computer do?
Computer: A programmable electronic device that can store, retrieve and process data.
Can: Access input
Process data
Store data
Retrieve data
Produce output
What are the components of a Computer? (Computer System)
Computer: Hardware, Software, and Device Drivers
Computer System: Hardware, software, peripherals
What is the shell model of a computer system from inside to outside?
Applications/brower
Operating system
Device Drivers
Hardware
What are the components of computer hardware
CPU, Memory, Storage, Input, Output, Communications
What are the details of Memory in Computer Hardware? What does it do? What are the types?
RAM (random access memory)
ROM (read only memory)
- First instruction for CPU for where fetch
-BIOS
What are the two main categories of system storage? What’s included in each category?
Primary (fast but small and expensive)
-Registers, cache, main memory
Secondary (slow but large and cheap)
-Hard disk, SSD, DVD-Rom ect.
What are storage devices
Hard disk, SSD, Flash Storage, DVD DVD-ROM, DVD-RW
What is a Bus? What does it do? How are different types of buses distinguished and what are some examples?
Bus is a large # of parallel wires (Devices are electrically connected using multiple wires. Ex. CPU, Memory, Video Controller, Keyboard)
Bus is used as a bit highway to transmit binary information (data, address, control signals)
Each bus as a unique location accessed with an address Ex. Data bus, control bus, address bus
What is a Chipset? What components does it have?
Components shared between subsystems. Has a North and a South Component .
North: Memory control hub and has graphics card
South: control input output and cables leading off-board
What steps of the fetch-decode-execute cycle
RAM: fetch (step 1)
CPU: decode (control unit) (step 2)
CPU: execute (arithmetic/logic unit) (step 3)
RAM: execute/store (step 3)
How does the fetch-decode-execute cycle work?
-Machine instruction is FETCHED from program memory.
-Instruction is the DECODED to determine it’s meaning.
-actions indicated through the decoding are ExECTUTED
-the cycle is driven by a series of CLOCK PURLSES (timing signals), where each pulse marks START of the fetch-decode-execute cycle
What do device drivers do?
Device through which hardware and software components communicate
What is a register and what are the two categories of registers? How many GP registers does our processor for the course have and how large are they?
Registers: Temporary storage for cpu
-General purpose registers
-Other (status, ect.)
In course, use 32 general purpose registers, each are 8 bits large
how long does RAM take to access memory from different places?
The same amount of time
What is a clock/timing signal
A periodic timing signal whose period is called a cycle (on/off cycle)
What is pipeline instruction? What is a None Pipeline? How would a pipeline instruction affect the fetch-decode-execute cycle in terms of clock cycles?
Pipeline: When you are fetching multiple instructions. None Pipeline: When you are fetching one instruction.
Frequency: The numbers of cycles in a single second
In one cycle, fetch and decode will run, the in next cycle previous code will be executed and next instructions will be fetched and decoded
How does the fetch, decode, execute cycle fit into one clock cycle?
One clock cycle: Fetch, decode and execute
What is processor speed? What is frequency?
Processor speed: the frequency each processor operates at
Frequency: The numbers of cycles in a single second
What doe the CPU/Processor do and what are it’s main components?
Coordinator of every computer system.
Controls most aspects
Processes data in small units
Performs arithmetic and logical operations
Stores and retrieves data from memory
Controls peripheral devices
Consists of:
Control Unit
ALU
Registers
What does the control unit do? What system is a part of?
Part of CPU.
Decides what CPU components are to be used next
Keep track of current instruction it is executing, so executes instructions sequentially, fetches next instruction to execute.
Instructs ALU to perform add, multiply, AND, etc.
Loads data from main memory (RAM) into register
- Store data from register into main memory
What is the ALU? What system is it apart of?
Arithmetic Logic Unit. part of CPU
-is sent data from control unit
-Adds/Subtracts/Divides/And/Or/Not
-Executes instruction contains circuitry for integer, floating point, and logic operations
Ex. Add, subtract, compare two numbers
What are the Registers? What system is it apart of?
Part of CPU
Very fast temporary memory inside the CPU
-Data needs to be brought to register from memory
Designed to use with instructions current;y being performed
Golds operands used by current ALU operations and holds the results
-Registers have multiple caches available for info (expesive and fast)
what is the order of systems that the CPU checks for data?
CPU checks registers cache, then next cache ect.
If not there check RAM
If not there check memory
How is memory normally organized (ie. in what form is it stored and accessed?)
Organized as a sequence of bytes or words, and accessed by address