AHSANULLAH UNIVERSITY OF SCIENCE AND TECHNOLOGY
Department of Electrical and Electronic Engineering
Assignment
Course No: CSE-4293
Course Name: Computer Architecture.
Date of Submission: 17/08/2023
Submitted by:
Group Member’s ID
190105046
190105009
190105024
190105021
Title: Modified Simple As Possible Computer (MSAP)
Explanation of control words:
Cp : Increase program counter by 1
Lp: Loads to program counter
Ep: Connects program counter to bus
Ein: Connects input port to bus
Lmr: Loads to MAR
Erm: Enables ram, at Erm=1
Emd & Lmd:
00--- do nothing
01-- load data to lower nibble of MDR 10-- load data to higher
nibble of MDR 11-- enable output of MDR
Lir: Loads to Instruction register
J: Checks whether jump condition is satisfied or not (absent in
block diagram)
La: Loads to register A
Ea: Sends the data of register A to bus
Eal: Sends result of ALU to bus Lf: Updates flag register
S0,S1,S2
001= CMP 010=XOR 011= RCL 100= INC
101= MUL
000/111= no operation (HLT)
Lb: Loads to register B
Eb: Sends the data of register B to bus
Lt: Loads to Temporary register
Et: Sends the data of Temporary register to bus
Eo: Enables output register
Lfb: Loads to flag register
Efb: Sends the data of flag register to bus
Control Word:
Hexadecimal:
MATLAB file:
Circuit:
Input:
Output:
Verification:
Instruction A B C D
IN C 00 00 26 00
MOV B, byte 00 AE 26 00
MOV B, C 00 26 26 00
MOV D, byte 00 26 26 AE
XOR A, D AE 26 26 AE
MOV C, B AE 26 26 AE
RCL A AE 26 26 AE
OUT C AE 26 26 AE
HLT
Input:
Output: