Completed- C310-HW3

docx

School

University of Maryland Global Campus (UMGC) *

*We aren’t endorsed by this school

Course

310

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

2

Uploaded by DoctorFieldMonkey

Report
Name:_______ CMIS 310 HOMEWORK #3 – Week #3 This homework is worth 10% of your course grade. Read each problem carefully. Failure to follow the instructions for a problem will result in a zero score for that problem. Submit the completed Homework via Assignment in LEO. 1. How many bits are required to address a 4M X 16 main memory if a) Main memory is byte addressable? 4M x 2 bytes = 4 x M x 2 = 2 2 x 2 20 x 2 = 2 23 = 23 bits b) Main memory is word addressable? 4M = 4 x M = 2 2 x 2 20 = 2 22 = 22 bits 2. Suppose that a 16M X 16 main memory is built using 512K X 8 RAM chips and memory is word addressable. a) How many RAM chips are necessary? 256M / 4M chips = 64 RAM chips b) How many RAM chips are needed for each memory word? 16 bits / 8 bit chips = 2 RAM chips c) How many address bits are needed for each RAM chip? log(512*1024) / log 2 = 19 address bits d) How many address bits are needed for all memory? log(16*1024*1024) / log(2) = 24 address bits 3. A digital computer has a memory unit with 24 bits per word. The instruction set consists of 150 different operations. All instructions have an operation code part (opcode), and an address part (allowing for only one address). Each instruction is stored in one word of memory. a) How many bits are needed for the opcode? 2 7 < 150 < 2 8 therefore 8 bits b) How many bits are left for the address part of the instruction? 24 – 8 = 16 bits c) What is the maximum allowable size for memory? 2 16 = 65536 addresses 1
4. Write the following MARIE assembly language equivalent of the following machine language instructions a) 0010 0000 0000 0111 0010 = Store X (Store the contents of AC at address X) 0111 = 007 = memory location address Store 007 b) 1001 0000 0000 1011 1001 = Jump X (Load the value of X into PC) 1011 = 00B = memory location address Jump 00B c) 0011 0000 0000 1001 0011 = Add X (Add the contents of address X to AC and store the result in AC) 1001 = 009 = memory location address Add 009 5. What is the difference between hardwired control and microprogrammed control? A hardwired control unit employs a high-speed processor responsible for generating signals or instructions in a precise sequence. The instruction set and control logic are intricately interconnected through specialized, complex circuits, presenting challenges in both design and modification. In contrast, a microprogrammed control unit features a more adaptable and straightforward design that leverages software for control alongside robust instruction sets. However, the instructions within these sets undergo an additional layer of interpretation, leading to a comparatively slower execution speed for the program. 2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help