Computer Organisation And Architecture Homework Help

Search for question

Questions & Answers

Consider the following sequence of instructions to compute x+y+xy for two parallel vectors V8 and VI. where x in ve and y in VI: addvv.d V2, V, VI multv.d V3, V8, V1 addvv.d V4, V2, V3 Assume that we have a vector processor with one vector multiplication unit whose latency is 7 and one vector addition unit whose latency is 6. Let n=32 represent the length of the vector supported on our processor. The processor has fully-pipelined vector execution units. The vector processor supports chaining. How long would it take the original loop to execute on this processor? a. 32 cycles b. 120 cycles c. 200 cycles d. 52 cycles e. 150 cycles f. 100 cycles g. 48 cycles h.76 cycles L 74 cycles


For a memory system consisting of eight 8K X 8 ROM chips, you need 20 address bits to decode the addresses using one-hot code O True False


For each of the following scenarios, indicate whether you'd choose a STACK, a QUEUE, a LIST,or a TREE in its implementation: (a) A program to receive data that is to be saved and processed in reverse order. (b) A program to keep track of family relationships. (c) A program to keep track of the progress of a knock-out tournament in a sports league. (d) A program to keep track of patients as they check into a medical clinic, assigning patients to doctors on a first-come, first-served basis. (e) A program which enables you to perform undo and redo actions. (f) A program which prioritises assignment submission marking based on timestamp.


Consider the below assembly code and assume that AX initially contains ABCD: MOV BX, 1234 MOV AX, [BX] MOV AX, BX The contents of Register AX after the execution of the above code is: a. unknown AX = (1234)16 .AX = (ABXX)16 -- x = any hex value (0 - F) .AX (xx00)16--> x is any hex value (0 F)


The contents of memory location 3000:0102 in hex are: а. ВВ b. undefined c. 57 Od. 00 e. B2


11. Consider a magnetic hard disk with a seek time of 8 ms, a data transfer rate of 1Mbyte/second and rotational latency of 3 ms. A disk sector holds 32 Kbytes. What is the average time (in ms) for the disk to serve a request to load 32 Kbytes of data from a disk sector?


For a memory system consisting of eight 8K X 8 ROM chips, you need 20 address bits to decode the addresses using one-hot code True O False


The address (002C)16 in the Interrupt Vector Table (IVT) refers to the following entry: O a. (44)10 b. (20)10 Oc. none of the above O d. (11)10 e. (02)16


The Interrupt Vector Table entry containing the address of the ISR for Interrupt #0D is (52)16? O True False


For a memory system consisting of four 2K X 32 ROM chips, you need at least 13 address bits to ensure correct address decoding True False


1) What does “RAM" mean and how is it used in computers? Please provide several examples.


3. Prove the distributive law for OR gates, providing the truth tables for the following Booleanexpression: A+ (B. C) = (A + B) · (A + C)


5. (16 points) Consider deadlock avoidance with single resources. Assuming we have 4 process P1,P2, P3, P4. and 4 resources r1, r2, r3, r4. Consider all| 4 processes are writers (i.e. no resources can be shared among processes). Suppose the processes are to acquire and release the release the resources in the following order (and assume the OS has the complete knowledge of the schedule beforehand) – we only show the first 8 requests. if a request is denied, the process immediately quits and release all resources it is holding/waiting (if any). if a process have to wait for a resource (if another process is holding it), the avoidance algorithm can still grant the request and allow that process to wait all waiting queues for each resources are FIFO a.Draw the resource allocation graph before the first request is made b. Will the third request (P3 request r3) be granted? Explain your answer using the resource allocation graph. c. Is there any request after that one that will be denied? If so, show the first request that will be denied and explain why using the resource allocation graph. If not, show the request allocation graph at the of the 8-th request.


Consider the below assembly code and assume that AX initially contains ABCD: MOV BX, 1234 MOV AL, [BX] ADD AL, CL The contents of Register AX after execution of the above code is: a. AX = (ABCD)16 b. unknown с. АХ 3D (0000)16 d. AX = (ABXX)16 - X = any hex value (0 - F) e. AX = (xx00)16 --> x is any hex value (0 - F)


8. Give an ADT of a Stack data structure including types of the operations. Your specification should include at least the operations: is-empty, push, pop, and top.


This challenging question tests your understanding of cache. Consider the following C code: Assume this program runs on a 32-bit machine, i.e., the CPU loads/stores 4 bytes from memory in one go. This machine has a 16-bit memory address, and each memory block stores 16 bytes. This machine has a direct-mapped data cache with 16 cache lines. Array A starts at address 0, and B starts at address 256 - both arrays begin at a memory block boundary. Each element of arrays A and B occupies 4 bytes. The values of i, j, and mare stored in CPU registers. A compulsory cache miss happens the first time the CPU reads any bytes in a memory block. Such cache misses are inevitable, and the entire memory block must be brought into-the cache. How many compulsory misses in the data cache will occur when running the above code? What is the total number of data cache misses (including compulsory misses) when running the above code? Assume we change the cache configuration to be 2-way set-associative. This new data cache has 8 sets and 16 bytes per line. The cache uses a Least Recently Used (LRU)replacement policy. How many data cache misses (including compulsory misses) will occur when running the-above code with this new data cache design?


2) What does “ROM" mean and how is it used in computers? Please provide several examples.


Consider the below assembly code and assume that all memory locations below EA=490A0 store values (35)16, and higher addresses have (45)16 stored. DS=4000; DI=90A0; DX-0000 (initially) MOV AX, 5678 MOV BX, 1232 ADD AX, BX MOV CX, [DI+8] ADD DX, AX The content of Register AX, DX after execution of the above code is: O AX = (5678)16 and DX = (0000)16 AX = (68AA)16 and DX = (68AA)16 AX = (AA68)16 and DX = (68AA)16 O AX = (68AA)16 and DX = (0000)16


1. Consider the following logic circuit: Write the Boolean expression for the above circuit. (b) Draw a truth table showing all inputs and resulting output for X.


Consider now a machine with 16-bit virtual addresses and 16-bit physical addresses. The memory is byte-addressable. This machine has a linear (i.e., single-level) page table with a page size of 4 Kbytes. Consider the following C code to be executed on this machine: Here, array A starts at virtual address 0, and each integer element of array A occupies 4bytes. The size of array A is 2Mbyte (because (1024*512) elements * 4 bytes per element =1024*2048 bytes = 2 Mbyte). 10.1 How many bits in a virtual memory address should be used for the page offset? Give your answer in a base 10 number[] 10.2 Assume the machine does not have a translation look aside buffer (TLB). To execute-the code, how many accesses to the page table are required? 10.3 We now want to add a TLB to speed up virtual memory address translation. What is the minimum number of TLB entries required to ensure no TLB misses for the above code when-accessing array A?


2. (8 points) Consider using an SSD for storing student records a. Explain why updating student records can potentially take significant more time than adding new student records. b. All operating systems have buffers that store data to be written to the disk until a page of data is filled before writing to the disk (or until the OS explicitly force the buffer to be written). Name two reasons why using buffers are crucial in the case when appending new student records to the file.


No Question Found for“Computer Organisation And Architecture”

we will make sure available to you as soon as possible.