Platform Technology Midterm Reviewer
Platform Technology Midterm Reviewer
HISTORY OF COMPUTERS
DECIMAL TO BINARY
OCTAL TO DECIMAL
OCTAL TO BINARY
HEXADECIMAL SYSTEM Hexadecimal System uses 16 digits:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
base is 16
FETCH-DECODE-EXECUTE CYCLE
- control unit fetches the next program instruction from the memory,
- instruction is decoded into a language the ALU can understand
- data operands required to execute the instruction are fetched from memory and placed in
registers in the CPU
- ALU executes the instruction and places the results in registers or memory
NOT GATE
AND GATE
OR GATE
NAND GATE
NOR GATE
DEMORGAN’S THEOREM
NAND GATE
NOR Gate
Multiple-input AND Gate Output Z1 is HIGH only if all inputs are HIGH
An open input will float HIGH
Multiple-input NOR Gate Output Z4 is HIGH only if all inputs are LOW
SIMPLE COMPUTER
MARIE’S ARCHITECTURE
• 16-bit word size with word addressing (you can only get words from memory, not bytes)
• 16-bit instructions (4 bits for the op code, 12 bits for the address of the datum in memory)
OPCODE (4 BITS)
- specifies the type of operation or action that the CPU should perform
- allows for up to 16 different operation codes, providing a limited set of fundamental operations
that the MARIE CPU can execute
MEMORY ADDRESS
- This address points to the location in memory where the data associated with the instruction is
located or where the result should be stored.
REGISTERS IN MARIE
MARIE CPU
- MAR sends to memory, the MBR stores the data being sent to memory or retrieved from memory
- InREG and OutREG receive data from and send data to I/O respectively
-
MARIE’S INTERCONNECTION
- The registers are interconnected, and connected with main memory through a common data bus
- Each device on the bus is identified by a unique number that is set on the control lines
- permits data transfer between these devices without use of the main data bus
2) memory sends back instruction over data bus, to MBR, move it to IR, increment PC
3) Decode the instruction (look at op code, place 8-bit data address in MAR if needed
5) Execute instruction
MARIE’S ISA
- computer’s instruction set architecture specifies the format of its instructions and the primitive
operations that the machine can perform
- ISA is an interface between a computer’s hardware and its software
- consists of only 13 instructions
MARIE’S INSTRUCTIONS
-
- fundamental MARIE instructions are: