Simple as possible computer, Summaries of Advanced Computer Architecture

Simple as possible computer for computer engineering students This helpful in computer lab

Typology: Summaries

2023/2024

Uploaded on 06/01/2024

shah-zain-zain
shah-zain-zain 🇵🇰

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Simple As Possible Computer
(SAP)
Introduction
The SAP computer is a minimalist computer architecture designed for
educational purposes. It has a very simple architecture, consisting of the
following components:
ØProgram counter (PC)
ØInstruction register (IR)
ØAccumulator (A)
ØMemory (MEM)
ØControl unit (CU)
ØArithmetic logic unit (ALU)
ØInput/output (I/O) unit
SAP Instruction Set
The SAP computer has a very simple instruction set, consisting of the following
instructions:
ØLOAD (LD): Loads a value from memory into the accumulator.
ØSTORE (ST): Stores the value in the accumulator to memory.
ØADD (ADD): Adds the value in memory to the accumulator.
ØSUB (SUB): Subtracts the value in memory from the accumulator.
ØJMP (JMP): Jumps to the instruction at the specified address.
pf2

Partial preview of the text

Download Simple as possible computer and more Summaries Advanced Computer Architecture in PDF only on Docsity!

Simple As Possible Computer

(SAP)

Introduction

The SAP computer is a minimalist computer architecture designed for educational purposes. It has a very simple architecture, consisting of the following components: Ø Program counter (PC) Ø Instruction register (IR) Ø Accumulator (A) Ø Memory (MEM) Ø Control unit (CU) Ø Arithmetic logic unit (ALU) Ø Input/output (I/O) unit

SAP Instruction Set

The SAP computer has a very simple instruction set, consisting of the following instructions: Ø LOAD (LD): Loads a value from memory into the accumulator. Ø STORE (ST) : Stores the value in the accumulator to memory. Ø ADD (ADD ): Adds the value in memory to the accumulator. Ø SUB (SUB ): Subtracts the value in memory from the accumulator. Ø JMP (JMP) : Jumps to the instruction at the specified address.

HLT (HLT ): Halts the computer.

SAP Operation

The SAP computer operates on a fetch-decode-execute cycle. In the fetch cycle, the PC loads the address of the next instruction to be executed. In the decode cycle, the CU decodes the instruction and determines what operation to perform. In the execute cycle, the ALU performs the operation and the result is stored in the accumulator or memory.

SAP Programming

To program the SAP computer, you must write a program in SAP assembly language. An SAP assembly language program is a sequence of instructions that the SAP computer can understand. To assemble an SAP assembly language program, you need an SAP assembler.

Conclusion

The SAP computer is a simple but powerful tool for learning the basic concepts of computer operation. By understanding the SAP computer architecture and instruction set, you can learn how to write simple SAP programs.