week 5 datapath Flashcards
Central Processing Unit (CPU)
- the brain of the PC
- the electronic circuitry within a computer that carries out the instructions of a computer program by performing the basic arithmetic, logic, controlling and input/output operations specified by those instructions.
Program counter (PC)
A register in a computer processor that contains the address (location) of the instruction being executed at the current time.
ALU (Arithmetic Logic Unit)
A combinational digital electronic circuit that performs arithmetic and logical operations.
Datapath
pathway that the data flows through in a CPU; set up by control signals specified by an instruction to the CPU.
Register file
contains small amount of data our processor operates upon.
control memory
- holds control signals for our processor.
- holds the program we want our CPU to execute
TEST box
Allows us to alter the value of the PC by testing what comes out of the ALU for a particular condition.
what contains in Von Neumann Model?
Computer architecture contains 4 pieces:
- Processing unit like ALU and register file
- performs all of the calculations (overworked clerk) - Memory (for instructions and data memory)
- Control unit (contains PC)
- serves as index into program memory to indicate which instruction must be carried out by the processing unit. - Input/output
- provides a means for information to be loaded into or read from the internals of the machine.
what is the von Neumann loop step to carry out an instruction?
- Fetch instruction from program memory
- decode instruction from program memory which determines the control signals
- execute instruction in ALU which commits data to register if needed.
- update program counter and repeat loop
What you need to build a basic CPU
- memory
- data and instruction
- PC
- ALU
Components of NZP Tester
- determine if incoming # is negative/zero/positive
2. compare incoming condition from user to output of part 1