Sap Part1
Sap Part1
part 1
SAP1 Malvino.pdf
Nasif M.
SAP-1
• The Simple-As-Possible (SAP)-1 computer is a very basic model of a
microprocessor explained.
• The SAP-1 design contains the basic necessities for a functional
Microprocessor.
• Its primary purpose is to develop a basic understanding of how a
microprocessor works, interacts with memory and other parts of the system
like input and output.
• The instruction set is very limited and is simple.
• SAP is Simple-As-Possible Computer. The type of computer is specially
designed for the academic purpose and nothing has to do with the
commercial use.
SAP-1
• The architecture is 8 bits and comprises of 16 X 8 memory. 16 memory
location with 8 bits in each location. All instructions (5 only) get stored in
this memory. It means SAP cannot store program having more than 16
instructions.
• SAP can only perform addition and subtraction and no logical operation.
These arithmetic operations are performed by an adder/subtractor unit.
Block diagram of
Simple-As-Possible
(SAP)-1 Architecture
Function
It’s job is to send to the memory the address of the next instruction to be
executed and fetched.
4) After the first instruction is fetched and executed, the PC sends address
0001 to the memory.
In this way, the PC is keeping track of the next instruction to be executed.
SAP-1 Architecture : 2. Input and MAR (Memory Address Register)
Function
Its job is to hold (latched) the address of PC into Memory Address Register
(MAR)
• Control Line on Input and MAR:
Function
The program code to be executed and data for SAP-1 computer is stored
here.
Function
IR contains the instruction (composed of OPCODE+ADDRESS) to be
executed by SAP1 computer.
Function
• It generates the control signals for each block so that actions occur in
desired sequence. CLK signal is used to synchronize the overall
operation of the SAP1 computer.
Function
• It is a 8-bit buffer register that stores intermediate results during a
computer run.
• It is always one of the operands of ADD, SUB and OUT instructions.
Function
• It is a 2's complement adder-subtractor.
Function
• It is 8-bit buffer register which is primarily used to hold the other
operand (one operand is always accumulator) of mathematical
operations.
Function
• This registers hold the output of OUT instruction.
Function
• It is a row of eight LEDs to show the contents of output register.
• Binary display unit is the output device for the SAP-1 microprocessor.
SAP-1 Architecture : Exercise