How are floating point numbers represented in a computer

Assignment Help Basic Computer Science
Reference no: EM132874862

1. What is the difference between 12 and "12"?

2. How are numbers represented inside a computer?

3. How are floating point numbers represented in a computer?

4. Translate the following decimal numbers into binary (show working not just only answers)

Decimal

Binary

2

 

10

 

20

 

50

 

Your age (only integer)

 

5. Translate the following binary numbers into octal then hex (show working not just only answers)

Binary

Octal

Hex

1010

 

 

11010

 

 

1111

 

 

11111111

 

 

10000000

 

 

6. What is the difference between computer memory and computer hard drives? (there are several, hint, think of speed, size, lifetime)

7. In Week 4 you will be given practical exercises about Little Man Computer. The Little Man Computer (LMC) is a simulator of a CPU, developed by Dr Stuart Madnick at M.I.T in 1965 to illustrate how the Fetch Execute Cycle executes instructions at the Assembler level in a Von Neumann architecture CPU, which has all of the basic features of a modern computer. Write a brief description of who Von Neumann was and what he did in microprocessor research.

Computer Architecture and Hardware System

1. What are the basic functions of the CPU?

2. Why is binary code suitable for use with computers?

3. Which register stores the result of ALU operations?

4. Which registers stores the location in memory address of the next instruction to be executed?

5. Why do processors need a clock? What unit is the clock speed of a processor measure in?

6. a) Assume that a CPU has a cycle time of one nanosecond. What is the CPU clock rate?
b) Also, assume that the fetch cycle is 40% of the processor cycle time. What memory access speed is required to implement load operations (copy data from a memory address to a register) with zero wait state?

c) What memory access speed is required to implement load operation with two wait states?

00 LDA 03
01 ADD 04
02 BRZ 05
03 DAT 006
04 DAT 005
05 HLT

a) Show the contents of the Program Counter (PC) - also known as the Instruction Pointer (IP), the Instruction Register (IR), the Address Register (ADDR), and the Accumulator (A or ACC) at the conclusion of instruction 00.
7. Suppose that the following instructions are found at the given location in memory
b) Show the contents of each register at the conclusion of instruction 01.

Introduction to Little Man Computer

Task 1 -Familarising yourself with LMC

This task is for you to practice and get acquaint with the LMC features, no need to submit anything.

2. LMC is now ready for you. The interface is simple and self-explanatory. Try clicking on HELP button to find more information about this CPU simulator help page.

3. There are 10 program examples come with this simulator which can be selected from SELECT dropdown list.

4. The Assembly Language Code section is where you write a program code on it. Once coding is done, click Submit button to submit the code to LMC. You can click RUN button to execute the program. A step by step execution (one instruction at a time) can be achieved by clicking on STEP button. RESET button is used to put the CPU back to its initial state, where the value of the Program Counter and that of the Accumulator will be reset to 0.

5. STOP is a toggle button. When a program is executing, pressing this button will pause the program execution, pressing a gain to continue executing the program.

6. Rather than writing program code directly on Assembly Language Code area, you can also use a text editor such as NotePad to write your program code on your computer. Use LOAD button to load your program code from your computer to LMC and run it.

7. OPTIONS contains a list of options that can be used to control the operation of LMC.

8. CPU is located between Assembly Language Code and RAM sections. This simple CPU contains a Program Counter (PC) to hold/point to the next memory address/location, an Instruction Register (IR) to hold an instruction op-code fetched from a memory address, an Accumulator to hold value during CPU operation.

9. Now, you may select an example code from SELECT button and try running the program. The operation speed can be adjusted by clicking on <<button (slower) or >> button (faster)

Task 2 - Writing a simple program

1. Read and understand the sample LMC program below. Take special consideration on the program structure. The following program demonstrates the use of LMC assembly language to add an input value to the constant value -1. Note that lines starting with "//" and characters to the right of program statements are considered comments, and are ignored by the LMC.

// A sample LMC assembly language
// to add a number to the value -1
INP// Input number to be added
ADDVALUE //Add value stored at address VALUE to
// input
OUT// Output result
HLT// Halt (program ends here)
VALUEDAT -001// Data value

2. Enter the program code above into the Assembly Language Code section, then Submit and run the program in ‘default normal' speed and then in ‘default slow' - using OPTIONS to select, assume number 10 was entered as an input value. Run the program again but using STEP button. Take a screenshot of each execution mode.

3. Observe and record the results, registers, and memory contents after the program execution has finished.
4. Which program execution mode do you prefer when you want to study the program operation in details for debugging purpose?
Task 3.

1. Draw side-by-side flow diagrams that show how the Little Man Computer executes a store instruction and the corresponding CPU fetch-execute cycle.

Attachment:- Week tutorials.rar

Reference no: EM132874862

Questions Cloud

What are the basic functions of the cpu : What are the basic functions of the CPU and Why do processors need a clock? What unit is the clock speed of a processor measure in
How are numbers represented inside a computer : How are numbers represented inside a computer - Translate the given decimal numbers into binary (show working not just only answers)
What believe to be the consequences of a healthcare : What believe to be the consequences of a healthcare organization not involving nurses in each stage of the SDLC when purchasing and implementing
Marijuana initiatives in colorado and washington : Would you have voted for the marijuana initiatives in Colorado and Washington? Why or why not?
How are floating point numbers represented in a computer : Draw side-by-side flow diagrams that show how the Little Man Computer executes a store instruction and the corresponding CPU fetch-execute cycle
First step in the planning process : The first step in the planning process is setting goals or objectives.
Identify the article that best supports nursing intervention : Identify the article that best supports nursing interventions for your topic. Explain why this article best supports your topic as you compare the article
Discuss methods to coordinate total rewards plans : Discuss methods to coordinate total rewards plans to an organization's strategic operations.
What item found to be compelling and enlightening : What item you found to be compelling and enlightening. What differences or similarities do you see between your posting and other classmates' postings?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Relational database management system

SQL is a domain-specific language used in programming and designed for managing data held in a relational database management system

  Business process redesign

discuss what went right during the redesign and what went wrong from your perspective.

  What is the difference between 3G and 4G

What is the goal of data management? What is the difference between 3G and 4G? What is virtual collaboration? Mention an example.

  Classify the following materials into a, b, and cgroups

Classify the following materials into A, B, and Cgroups. Item No: 1 2 34567 8910

  How can we reduce query execution time

In SQL fundamentals how can we reduce query execution time?

  Describe the skills or knowledge a project manager

Describe the skills or knowledge a project manager would need to work on a project in each of your categories.

  Research on hearsay rule in legal proceedings

Do a bit of research on the hearsay rule in legal proceedings.

  Corresponding array element will be added to new liked

The condition is that the greater element value from each corresponding array element will be added to the new liked list.

  What is digital convergence

What is digital convergence? Why is it important? Describe three personal examples where you have benefited from digital convergence and the benefits of each.

  Design a class that has an array of floating-point numbers

The destructor should free the memory held by the array. In addition, there should be member functions to perform the following operations

  Assessment of levels of inherent-current and residual risks

Provide a brief discussion of each risk, and your assessment of the levels of inherent, current, and residual risks.

  What dollar amount is most relevant to its manager

If the service division is evaluated as a profit center, what dollar amount is most relevant to its manager?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd