Ask Computer Engineering Expert

Question 1:

A digital system uses 8-bit for integer representation and 16-bit for floating point number representation. Analyse the various number representations and answer the following questions.

(a) Given A = 2A16 and B = 6E16.

(i) If 8-bit sign-magnitude representation is used to represent integers, what is the range of decimal values it can represent?

(ii) Express the value of A and the value of B in 8-bit binary if sign-magnitude representation is used for integers.

(iii) Show how the digital system computes the logic operation A XOR (A OR B). Express the result in hexadecimal.

(b) Given X = 5510 and Y = -6610.

(i) Express the value of X and the value of Y in 8-bit binary if sign-magnitude representation is used for integers.

(ii) Express the value of X and the value of Y in 8-bit binary if 2's complement signed integer representation is used.

(iii) Find the result of X + Y by performing the computation in 2's complement arithmetic. Convert the result to decimal and show it is equal to -11.

(c) The hexadecimal number A0FF represents a 16-bit floating point number. Its representation is given in Figure Q1(c). What is the decimal value? Show your working.

1727_What is the range of decimal values it can represent.png

Question 2:

(a) A hypothetical computer system has a 16-bit address bus and can address an 8-bit wide memory. The memory of this computer system contains two 4 Kbytes ROM chips (ROM1 and ROM2) and two 8 Kbytes RAM chips (RAM1 and RAM2). ROM1, ROM2, RAM1 and RAM2 form a contiguous block of memory starting at address 0. R0M1 occupies the lowest address range. The rest of the address range after RAM2 is not used.

(i) Summarise the address space by drawing a memory map of the computer system. Indicate the starting and ending addresses in hexadecimal for each ROM and RAM chips and any unused space. Show how the memory addresses are obtained.

(ii) Compute the total capacity of the RAM chips in bits. Express your answer in power of 2.

(b) Describe the characteristics and operations of a multiplexed bus interconnection in a computer system.

Question 3:

Figure Q3 shows the characteristics of a hypothetical machine, relevant portions of memory, processor registers and some I/O devices. For the instruction format shown in Figure Q3(i), if it is an I/O instruction, bits 4 to15 identifies a particular I/O device, else a memory address.

2414_What is the range of decimal values it can represent1.png

Program counter (PC) = Address of instruction
Accumulator (AC) = Temporary storage
Instruction register (IR) = Instruction being executed
(iii) Internal CPU registers

0010 = Store AC to memory
0011 = Load AC from I/O
0101 = Add to AC from memory
(iv) Partial list of opcodes


Memory
CPU registers
400 3005
400 PC
401 5750

AC
402 2751

IR





750 6
I/O Devices
751

4 Dev 5
(All numbers are in hexadecimal)

Figure Q3

(v) Contents of memory, registers and I/O devices at start of program

(a) How many memory locations can this processor address?

(b) This hypothetical machine is to execute the following program:

1. Load AC from device 5.
2. Add contents of memory location 750.
3. Store AC to memory location 751.

There are three fetch and three execute cycles. The process can be divided into six steps or cycles. For each step or cycle, demonstrate what happens and list the contents of the following registers:

(i) PC at the start of each cycle,
(ii) AC at the end of each cycle and
(iii) IR at the end of each cycle.

Assume the initial values are as given in Figure Q3(v).

Question 4:

(a) (i) Given X = 5. Express -X in 8-bit 2's complement representation. 

(ii) Explain the steps or procedures taken to obtain the 2's complement representation. 

(b) Figure Q4(b) is a subroutine for the course's simulated processor. Assume all numbers are in hexadecimal.

SUBR

MOVE

#$300, A0

 

MOVE

#$330, A1

 

MOVE.B

#$08, D0

LOOP

MOVE.B

(A0)+, D1

 

NOT

D1

 

ADD

#$01, D1

 

MOVE.B

D1, (A1)+

 

SUB.B

#$01, D0

 

BNE

LOOP

 

RTS

 

Figure Q4(b)

Use the T121 Processor Instruction Set of the EASY68K simulator to answer the following questions.

(i) The subroutine includes a loop. Which register is being used as a loop counter and how many times in total will the set of instructions within the loop be executed? 

(ii) From which instruction(s) do you deduce the answers for Question 4(b)(i)? 

(iii) The loop picks up successive data items from a block of locations in data memory. What are the lowest and highest addresses (in Hex) of the locations in this block? 

(iv) What is the function of the block of instructions that make up the loop in the subroutine? Do not give a description on an instruction-by instruction level; give the overall task of the loop. 

(v) Write a complete program to call the subroutine and test its functionality. The main program is to start at address 2000 (Hex) and the subroutine occupies memory space just below the main program.

Initialise and use test data: 1, 2, 3, ... up to the loop counter deduced in Question 4(b)(i). Assume the contents of all data registers are set to zero before the start of the program.
(Reminder: All numbers including the test data are in hexadecimal.)

Test your program with the course's simulator. Once it is working correctly, copy and pastes your program to your MS WORD answer document.
(9 marks)

(vi) Submit a screen shot of the memory contents that include addresses from 2E0 to 350 when the program stops. Use the instructions given below to obtain the screen shot.

Instructions:
1. To view the memory contents at the simulator screen, click on the View menu and select Memory. Click on the Page down button to the required addresses. Verify that the memory contents are indeed correct.

2. To capture the ‘screen shot' select the window, press + on your computer keyboard, and then paste it onto your word document.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91583132
  • Price:- $150

Guranteed 48 Hours Delivery, In Price:- $150

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As