Wait a second!
More handpicked essays just for you.
More handpicked essays just for you.
Don’t take our word for it - see why 10 million students trust us with their essay needs.
Recommended: Assignment 2
1. Write generic instructions to compute (p + q) / (r - p) + p * (r – q) using a processor that supports: (i) 2-address instructions (ii) 1-address instructions (iii) 0-address instructions on a stack based processor. You may assume operations in the following table where x, y, z are registers; A is a memory address. 2-address meaning 1-address 0-address add x,y x←x+y add A push A sub x,y x←x-y sub A pop A mul x,y x←x*y mul A add div x,y x←x/y div A mul load x,A load A div store x,A store A sub 2 Assume an 11-bit floating point format in which the most significant bit is the sign bit, the next 4 bits represent the 4-bit biased exponent field, and the last 6 bits represent the normalized significand with implied bit. …show more content…
(ii) Determine the range of binary numbers that can be represented and represent on a number line including overflows and underflows. (iii) What is the 11-bit floating point representation of 257? (iv) What is the decimal result of adding 257 and 11 using the 11-bit floating point representation? 3 Assuming a two’s complement integer representation, use Booth’s algorithm to multiply multiplicand, 11011(-5) and multiplier, 11011 (-5). 4 Consider a one word, one-address instruction. The instruction's memory address is X. The address field of the instruction contains Y. Write down an expression in terms of X and Y for the address of the corresponding operand in each of the following addressing modes: (i) immediate (ii) direct (iii) indirect (iv) PC …show more content…
6. Write a machine language routine that copies the least significant four bits from memory location A5 into the most significant four bits of location A6 while leaving the other bits at location A6 unchanged. 7. Write a machine language routine that places 0s in all the memory cells from address B1 through D1 but is small enough to fit in the memory cells from address 00 through 13 (hexadecimal). A Machine language to be used in Assignment 2 The Machine Architecture The machine has 16 general purpose 8-bit registers numbered 0 through F (in hexadecimal). Each register can be identified in an instruction by specifying the hexadecimal digit that represents its register number. Thus register 0 is identified by hexadecimal 0 and register 10 is identified by hexadecimal A. Main memory size is 256 bytes. Each byte has a unique 8-bit address consisting of an integer in the range 00 (hexadecimal) to FF (hexadecimal). Integer values are stored using a two’s complement representation. Floating-point values are stored in an 8-bit representation: sign bit, followed by a 3-bit biased exponent and a 4-bit normalized significand with implied bit. The Machine
Ensure that all necessary earth connectors are then attached to the isolation points and any overhead wires
Japan is an island nation off the coast of East Asia. It is made up of four large islands and about 3,900 smaller ones. On a map, they form a thin crescent moon. All together, they form an area about the size of Montana. To the west, the sea of Japan separates it from its nearest neighbors, Korea and China. To the east lies the Pacific ocean. Japan has a moderate climate. Summers are nice. Winters are mild, with heavy snowfall limited to the north. Japan makes crops due to rain in the summer.
The 802 committee and the OSI model both relate to one another. The OSI model shows how the layers of the internet are able to communicate and function with each other. While the 802 committee will add onto that by showing how network protocols should function. With that being said there are numerous working groups under the 802 committee however the one that I will be writing about is the 802.2 or the logical link control (LLC). The logical link control is in the 2nd layer (data-link) of the OSI model. The purpose of this protocol is flow and error control along with multiplexing and demultiplexing. How multiplexing works is by getting multiple data streams and combining them into one shared stream. This is mainly seen in the common forms
The task consists of generating a program which asks the user 10 mathematical questions. Using in each case any two numbers and addition, subtraction or multiplication. The finale score out of 10 should also be outputted at the end.
Figure 2 shows the implementation of FMULT_ACCUM. Inputs to the FMULT block are two’s complement and floating point parallel input. Output of this block is two’s complement 1 bit serial output. A four bit Count_in signal is used as a counter which avails FMULT to repeat operations after 16 iterations. Clear_Accum and Clear_Carry signals are used to reset accumulator. Done_Signal is used to reset the counter. The reason to choose 146 will be discussed in the accumulator section. These logics are implemented using finite state machine.
Before the year 2000, there was small speculation amongst programmers of a problem that would arise in the year 2000. Many of the computer programs in use were made between the 60’s and 80’s, and stored years with only two decimal digits, this being d...
For the above expression, logic implementation needs four peres gates and anly ane Feynman gate. Following fig.5 shows 2*2 reversible logic multiplier implantation.
And his signal concept of an all-purpose, stored-program computer – the model for our digital devices today – was often attributed to others, from Charles Babbage in the nineteenth century to John von Neumann in the twentieth. (Saler 1)
in exponential form. For instance, in a base 2 system, 4 can be written as 2
It is not necessary or desirable for the programming of embedded microprocessors to be done in assembly language. Indeed, assembly language should be regarded as a last resort, to be used when compilers are not available, or in very special circumstances.
Computers are very complex and have many different uses. This makes for a very complex system of parts that work together to do what the user wants from the computer. The purpose of this paper is to explain a few main components of the computer. The components covered are going to be system units, Motherboards, Central Processing Units, and Memory. Many people are not familiar with these terms and their meaning. These components are commonly mistaken for one and other.
Throughout the annals of history, there have been countless number of pioneers and inventors of computer technology, but the one that has had the most lasting impact has been John von Neumann. Through his discoveries and reports, von Neumann established his eminent von Neumann architecture that laid the foundation for computer architecture that is still in use today on modern machines. In the majority of computers today, we use the foundation of the von Neumann architecture by using the fetch-decode-execute cycle that he wrote about in the First Draft of a Report on the EDVAC (Reed, 2011, p. 107). Compared with other pioneers, such as Alan Turing, J. Presper Eckert, and Rear Admiral Grace Hopper, their contributions pale in comparison to the
The content of the autoincrement register is incremented after accessing the operand. The automatic increment of the register’s content after accessing the operand is indicated by including a ( + ) after the parentheses.
Software, such as programming languages and operating systems, makes the details of the hardware architecture invisible to the user. For example, computers that use the C programming language or a UNIX operating system may appear the same from the user's viewpoint, although they use different hardware architectures. When a computer carries out an instruction, it proceeds through five steps. First, the control unit retrieves the instruction from memory—for example, an instruction to add two numbers. Second, the control unit decodes the instructions into electronic signals that control the computer.
The main component in a microchip is the transistor. Computers operate on a binary system, which uses only two digits: 0 and 1, all kinds of information are converted into combinations of 1s and 0s. As transistors can act as a switch, therefore their application in a computer microchip is to either let current through, representing the binary digit 1, or cut it off, representing 0. (http://www.pbs.org/transistor/teach/teacherguide_html/ lesson3. html) All aspects of modern Western Society rely on computers. Computers cannot operate without microchips, which’s main component is a transistor. Hence, the transistors impact on modern Western Society is immeasurable.