Skip to content

CS501 Assignment 1 Solution Fall 2021

CS501 Assignment 1 Solution fall 2021, CS501 Assignment Solution 2022, CS501 Assignment Solution.

CS501 The last date of the assignment is 15/12/2021. Be sure to read the instruction before resolving the assignment and you have to do your assignment in ms word. The purpose of this commerce is to cultivate student study talents. Processor performance measurement. Comparison of processor performance. Classification of Instruction Set Architecture for one-of-a-kind machines.

a) Write the instructions for machine 0address to evaluate the following expression. z = x2 + y2 + 2xy Note:x, y and z represent memory locations.

b) Calculate the execution time for 0-address machine using the above-given expression by considering the following parameters:

The theory is not part of the assignment: Essential Elements of a General Purpose Digital Computer We examine from the diagram that a general-reason pc has 3 main components: a memory subsystem, an input/ output subsystem, and a central processing unit. The knowledge base of a pc architect There are many human beings in the world who recognize a way to pressure a vehicle; those are the “users” of vehicles who’re familiar with the conduct of a vehicle and the way to perform it. In an identical way, there are people who can use computers.

Question No 1 Solution CS501 Part (a) & Part (b)

The Theory is not part of Assignment: The ALU might also additionally include a few unique bits (additionally known as flags), which may also have been set (or raised) beneath Neath a few unique circumstances. For example, you can raise a flag if there is an overflow in the additional effects of access values or if a number is negative. The instruction can then be sorted in software that can switch the stream based on one of these flag values. The  EAGLE processor makes use of those situation codes for department situation evaluation. Condition check-in.

Question No 2 Solution Fall 2021 CS501 Assignment.

(a) B2064000h

First Convert the Hexadecimal into a binary pattern which

1011 0010 0000 0110 0100 0000 0000 0000

The First 5 bits of the binary pattern represent the opcode which is 22. This opcode 22 belongs to or instruction which is a D instruction of SRC. The format of  D instruction is. In D instruction, the first 5 bits represent opcode, and the next 15 bits represent the one destination and two source operands of 5 bits each. We split the given bit pattern according to the type-D instruction format as follows. Next, we specify the instruction field for each section as follows.

 Hence the SRC instruction will be : or R8, R3, R4

Solution B

First Convert the Hexadecimal into binary pattern which

0001 1010 0000 1100 0000 0000 0010 0010

The First 5 bits of the binary pattern represent the opcode which is 3. This opcode 3 belongs to St instruction which is a C instruction of SRC. The format of  C instruction is. Next, we specify the instruction field for each section as follows.

Hence, the SRC instruction will be: st R8, 34(R6)

CS501 Assignment 1 Solution fall 2021, CS501 Assignment Solution 2022, CS501 Assignment Solution.

error: Content is protected !!
Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Kindly Disable Your Adblocker Extensions