...Chapter 10 Instruction Sets: Characteristics and Functions What is an instruction set? - The complete collection of instructions that are understood by a CPU - is the part of the computer architecture related to programming, including the native data types, instructions, registers,addressing modes, memory architecture, interrupt and exception handling, and external I/O. An ISA includes a specification of the set of opcodes (machine language), and the native commands implemented by a particular processor. - Machine Code - Binary - Usually represented by assembly codes Elements of an Instruction -Operation code (Op code) - Do this - Specifies the operation to be performed (e.g.. ADD, I/O). The operation is specified by a binary code, known as the operation code, or opcode. - Source Operand reference - To this - The operation may involve one or more source operands, that is, operands that are inputs for the operation. - Result Operand reference - Put the answer here - The operation may produce a result. - Next Instruction Reference - When you have done that, do this... - This tells the CPU where to fetch the next instruction after the execution of this instruction is complete. Where have all the Operands gone? - The next instruction to be fetched is located in main memory or, in the case of a virtual memory system, in either main memory or secondary memory (disk). In most cases, the next instruction to be fetched immediately follows...
Words: 920 - Pages: 4
...Instruction Set Sl.No. Instruction 1 nop 2 stop 3 adi xx 4 subi xx 5 xri xx 6 ani xx 7 ori xx 8 cmi xx 9ret 16 17 add 18 sub 19 xor 20 and 21 or 22 cmp 23 movs 24 movd 25 movi xx 26 store 27 load 28 push 29 pop 30jmpd xx 37 38jmpr 45 for the Single-Bus Processor Architecture Action Op Code (Hex) No action 00 Exit the program 01 02 [AR] ← [AR] + xx 03 [AR] ← [AR] – xx 04 [AR] ← [AR] ⊕ xx 05 [AR] ← [AR] ∧ xx 06 [AR] ← [AR] ∨ xx [AR] – xx (Flags only) 07 [PC] ← [[SP]], [SP] ← [SP]+1 08 to 0F if = 1 10-1F (n:0-F) [AR] ← [AR] + [] 20-2F (n:0-F) [AR] ← [AR] – [] 30-3F(n:0-F) [AR] ← [AR] ⊕ [] 40-4F(n:0-F) [AR] ← [AR] ∧ [] 50-5F(n:0-F) [AR] ← [AR] ∨ [] [AR] – [] (Flags only) 60-6F(n:0-F) 70-7F(n:0-F) [OR] ← [], [AR] ← [] 80-8F(n:0-F) [] ← [AR] 90-9F(n:0-F) [] ← xx [[AR]] ← [] [] ← [[AR]] [SP] ← [SP]–1, [[SP]] ← [] [] ← [[SP]], [SP] ← [SP]+1 [PC] ← xx if = 1 [PC] ← [AR] if = 1 A0-AF(n:0-F) B0-BF(n:0-F) C0-CF(n:0-F) D0-DF(n:0-F) E0 to E7 E8 to EF 46[SP] ← [SP]–1, [[SP]]← [PC], cd xx F0 to F7 53 [PC] ← xx if = 1 54[SP] ← [SP]–1, [[SP]]← PC], cr F8 to FF 61 [PC] ← [AR] if = 1 Flags: Zero (Z), Carry (CY), Sign (S), Parity (P) = u/z/nz/c/nc/p/m/op ⇒ FL = 0/Z/Z’/CY/CY’/S/S’/1 if Parity odd = r1/r2/r3/r4/r5/r6/r7/r8/r9/r10/r11/PC/SP/AR/OR ALU Function Codes: 0000 0001 0010 0011 0100 0101 0110 1111 ADD SUB XOR AND OR CMP A1 Architecture based on a Single Internal Data Bus RD WR Address Bus LMR Memory Address Register (MR) Memory and Input/Output Ports SRG Data...
Words: 551 - Pages: 3
...V Term Paper Course code :CSE 211 Course title: Computer Organisation and Architecture Submitted to: Ramanpreet Kaur Lamba Madam Submitted by: K. Nabachandra Singha Very-Long Instruction Word (VLIW) Computer Architecture ABSTRACT VLIW architectures are distinct from traditional RISC and CISC architectures implemented in current mass-market microprocessors. It is important to distinguish instruction-set architecture—the processor programming model—from implementation—the physical chip and its characteristics. VLIW microprocessors and superscalar implementations of traditional instruction sets share some characteristics—multiple execution units and the ability to execute multiple operations simultaneously. The techniques used to achieve high performance, however, are very different because the parallelism is explicit in VLIW instructions but must be discovered by hardware at run time by superscalar processors. VLIW implementations are simpler for very high performance. Just as RISC architectures permit simpler, cheaper high-performance implementations than do CISCs, VLIW architectures are simpler and cheaper than RISCs because of further hardware simplifications. VLIW architectures, however, require more compiler support. INTRODUCTION AND MOTIVATION Currently, in the mid 1990s, IC fabrication technology is advanced enough to allow unprecedented implementations of computer architectures...
Words: 3947 - Pages: 16
...How to Change A Car Battery Step 1: Make Sure Your Battery Needs To Be Changed * Check the battery terminals. They may be top posts or side posts (depending on the model of your car). CAUTION! The following is an example of corroded battery posts. Corrosion is due to heat and acid leaking through the battery. You WILL want to use a pair of gloves for this or say goodbye to your smooth hands. * If your terminals and battery posts look clean and undamaged then you are in luck. You do not have to change your battery and you get to save money! Step 2: Remove Your Car Battery * First, you will need the proper tools. This includes a socket wrench with a 10mm or 8mm socket. Again, it all depends on your battery terminal size. You will also need gloves and safety glasses. ALWAYS WORK SAFELY! If you’ve never seen tools before, this is a socket wrench with a socket attached to it. * Second, you will place the socket wrench on the battery terminal screw and begin to remove. Remember, “lefty loosy and righty tighty.” Step 3: Place in the New Battery WARNING! When installing, make sure the positive battery post (+) is installed with the red terminal and the negative battery post (-) is installed with the black terminal. If you mix these up, this will cause serious electrical damage to your car and a battery is the least of your problems. * You want to make sure that you install the proper battery that your car needs. Check with your owner’s manual...
Words: 367 - Pages: 2
...Solution* for Chapter 1 Exercise* Solutions for Chapter 1 Exercises 1.1 5, CPU 1.2 1, abstraction 1.3 3, bit 1.4 8, computer family 1.5 19, memory 1.6 10, datapath 1.7 9, control 1.8 11, desktop (personal computer) 1.9 15, embedded system 1.10 22, server 1.11 18, LAN 1.12 27, WAN 1.13 23, supercomputer 1.14 14, DRAM 1.15 13, defect 1.16 6, chip 1.17 24, transistor 1.18 12, DVD 1.19 28, yield 1.20 2, assembler 1.21 20, operating system 1.22 7, compiler 1.23 25, VLSI 1.24 16, instruction 1.25 4, cache • 1.26 17, instruction set architecture Solutions for Chapter 1 Exercises 1.27 21, semiconductor 1.28 26, wafer 1.29 i 1.30 b 1.31 e 1.32 i 1.33 h 1.34 d 1.35 f 1.36 b 1.37 c 1.38 f 1.39 d 1.40 a 1.41 c 1.42 i 1.43 e 1.44 g 1.45 a 1.46 Magnetic disk: Time for 1/2 revolution =1/2 rev x 1/7200 minutes/rev X 60 seconds/ minutes 3 4.17 ms Time for 1/2 revolution = 1/2 rev x 1/10,000 minutes/rev X 60 seconds/ minutes = 3 ms Bytes on center circle = 1.35 MB/seconds X 1/1600 minutes/rev x 60 seconds/minutes = 50.6 KB Bytes on outside circle = 1.35 MB/seconds X 1/570 minutes/rev X 60 seconds/minutes = 142.1 KB 1.48 Total requests bandwidth = 30 requests/sec X 512 Kbit/request = 15,360 Kbit/sec < 100 Mbit/sec. Therefore, a 100 Mbit Ethernet link will be sufficient. Solution* for Chapter X Exarclsm 1.49 Possible solutions: Ethernet, IEEE 802.3, twisted pair cable, 10/100 Mbit Wireless Ethernet, IEEE 802.1 lb, no medium...
Words: 3285 - Pages: 14
...fixed architecture and are typically RISC and cost more than micro program because of the time required to design the circuits , but they are faster. Micro program control units are slower than hardwired but are easier and cheaper to implement as the instructions are stored in special control memory. The control unit controls all data going in, out and inside the CPU. The control unit decodes the data from ram and turns it into an instruction depending on what instruction set the control unit is programed or hardwired to have. Then if the instruction involves any logic or mathamatical caluculations it gets sent to the alu where it gets calculated and outpeted to the accumulator. The ALU The ALU is an acronym for arithmetic and logic unit, this is one of the most important parts of the CPU as it does all of the calculations. The ALU is a big array of different logic gates that are interconnected to preform basic logical and mathematical operation such as putting adding numbers or xoring two values. How the ALU is designed makes a big difference in terms of how powerful the processor will be as the more complicated...
Words: 1323 - Pages: 6
... CPU The first thing we will discuss is the function of the CPU (Central Processing Unit) and its components. There are three primary components that make up the CPU, these are the ALU or the arithmetic/logic unit, the control unit (CU) and memory. The two components that collectively make up the CPU are the ALU and CU. Let’s take a look at the diagram above and I will explain what it all means. The logic and arithmetic unit is where all the data is stored and calculations are performed. The control unit basically interprets and controls all executions and processes instructions that it is given by other input types. In a typical CPU there is a I/O (input-output) interface which handles the input and output of data when it passes through the CPU to other devices that handle input/output data. The CPU architecture is defined by the major features it has, this is also known as ISA or instruction set architecture. It is these basics that include the number and types of registers, methods and how it addresses memory and basic design. With the typical technology advances that occur today, there have been several CPU architectures over the last few decades but only a small handful that last a long time. It is the evolution and the way technology expands and with each expansion there are newer features added and old ones updated. Memory Memory today is typically categorized as DRAM (dynamic random access memory), RAM or SRAM (static random access memory). There are a few...
Words: 1127 - Pages: 5
...project has been retrieved from the course textbook and those sources listed within the documentation that is being provided as part of this assignment. I have not given other fellow student(s) access to my code, script, diagram, etc., in any form. Part 1. Project Definition Instruction set architecture (ISA) describes the processor in terms of what the assembly language programmer sees the instructions and registers. All computer programs are translated to machine code for execution by the CPU. Once a program has been loaded into the computer’s memory. The program may then be executed. Many modern processor designs are so called RISC (Reduced Instruction Set Computer) designs which use relatively small instruction sets, in contrast to so called CISC designs such as the VAX and machines based on the Intel 8086 and Motorola 68000 microprocessor families. Operating instructions also include instructions that move data between registers and manipulate stacks. Memory-access instructions are those that transfer data between registers and memory. The CPU carries out the instructions that it finds in the computer’s memory. In order to carry out the task, the CPU must first transfer the instruction from memory into one of its registers. . (Johnson, 2014) Part 2. Requirements Collection The address bus and directional bus, i.e. information can only travel along it in a single direction, from the CPU to memory and other devices. The MAR register is a 16-bit register like all the...
Words: 531 - Pages: 3
...equal to the current multiplied by the resistance V=IR * In an electrical system, power is equal to the voltage multiplied by the current P=VI * USE OHM TRIANGLE TO CACULATE CURRENT, VOLTAGE, OR RESISTANCE. * The CPU is the brain of the computer, it is sometimes referred to as the processor. * Most CPU sockets and processors in use today are built around the architectures of the pin grid array (PGA) and land grid array (LGA) * ZIF refers to the amount of force needed to install a CPU into the motherboard socket or slot. * When the CPU is executing one step of the program the rest of the data is stored in a special memory call the cache. * Two major artitectures are related to instruction sets: Reduced instruction set computer and Complex instruction set...
Words: 279 - Pages: 2
...Video Summary 3 In the video it explained the purposes, functions, and characteristics of a central processing unit (CPU). The CPU is a piece of hardware that carries out instructions to the computer and is considered the brains of the computer. The CPU can find information that was saved, it can decode information, and it can move memory from one place to another. The most important characteristic of the CPU is the operating speed which is the time required to execute an instruction or set of instructions. Topics presented in clip • Fan o Sits on top or next to the heat sink and pushes out the heat. • Heat Sink o The hardware on top of the CPU that moves the heat towards the fan in the computer. • CPU o The part of a computer that performs logical and arithmetical operations on the data as specified in the instructions. Terms and Definitions • CPU o Brains of the computer that carries out an instruction or a set of instructions. • Decode o Converts a coded message into a intelligible language. • Operating speed o The time required to execute an instruction or set of instructions. • ALU o Arithmetic and logic unit. o • System Bus (frontside bus) o Main communication system between motherboard and processor. • Instruction sets o Gives sets of directions to the processor. • Clock o Timing device for proper processor operation. • Hardware o Tools, machinery, and other durable equipment. Summary of My Thoughts My thoughts about the presentation...
Words: 379 - Pages: 2
...CSE 6421 Research Assignment Explain how each architecture handles instruction fetch. ALPHA 21264: The instruction fetch is the stage 0 in Alpha 21264 instruction pipeline. It can fetch four instructions each cycle. It includes a branch predictor, two Mux for decode and validity check, a line/set prediction and an instruction cache. The branch prediction and the line/set prediction are used to increase fetch efficiency. The line and set prediction, associated with each instruction block, guides the professor to find the next instruction to fetch. The instruction cache is 64-Kbytes and two-way. Compared with Alpha 21164(8-Kbytes and direct-mapped), the hit rates increase significantly. Itanium 2: The instructions are fetched by the front-end structures. The instruction pointer is chosen from next linear IP, branch prediction resteer pointers or branch misprediction and instruction exception steer pointers by the front end and then presents to the instruction cache and translation look-aside buffer. The processor then uses prevalidated tags to decide to deliver instructions to which caches. In prevalidated tags design, the cache tags store the virtual address and compare with the identifier entry to find match line. It is faster to find out the cache hit address. MIPS R10000: The R10000 processor fetches...
Words: 3153 - Pages: 13
...2142CMIS3106380 March 9, 2014 Table of Contents I. Introduction 3 II. Reduced Instruction Set Computing (RISC) 3 III. Pipelining 3 IV. Cache Memory 4 V. Virtual Memory 4 VI. Conclusion 5 VII. Works Cited 5 I. Introduction The purpose of this paper is to investigate the evolution of and current trends in improving system performance with respect to RISC, pipelining, cache memory, and virtual memory. II. Reduced Instruction Set Computing (RISC) Reduced Instruction Set Computing also known as RISC is a type of microprocessor architecture. It is a CPU design strategy. The purpose of RISC was for design simplification. It increases the number of executed instructions thus increasing the CPU performance. (Joy) The RISC design was first proposed and implemented in the 1960s and has been constantly evolving. Since the late 1980’s, RISC has been more than doubling its performance every year and half. The RISC industry, which includes IBM and Sun Microsystems, is ever expanding with the focus on the speed of executing instructions per second along with the evolution of the computer industry. (Joy) III. Pipelining One characteristic of RISC processors is pipelining. With pipelining, instructions are able to be executed in a shorter period of time. The first step in pipelining is to find the instructions, then read the registers, decode the instructions, execute the instruction, access the data memory operands, and then load the results into the register...
Words: 810 - Pages: 4
...www.jntuworld.com Code No: RR321402 RR SET-1 B. Tech III Year II Semester Examinations, December/January -2011-12 MICROPROCESSORS (MECHANICAL ENGINEERING(MECHATRONICS)) Time: 3 hours Max. Marks: 80 Answer any five questions All questions carry equal marks --1.a) What are various addressing mode in 8085 microprocessor? Explain with suitable example. b) Explain following instructions in detail with the help of examples. i) RAR ii) CPI data iii) CALL addr (Label) iv) SPHL v) XRI data. [8+8] 2.a) b) Draw the structure of 8086 flag register and explain the function of the flags with examples. Explain the function of the following instructions of 8086. i) IN ii) LAHF iii) LDS iv) XLAT v) XCHG [8+8] Discuss various branch instruction of 8086 microprocessor, that are useful for relocation? Write an 8086 assembly Language program to convert a BCD Number to a Binary Number. [8+8] What is an interrupt? Explain different types of interrupts supported by 8086 What are the priority-rules that follow to resolve the problem when two interrupt occurs at the same time? [8+8] Explain string manipulation instructions of 8086 with suitable examples. Write an assembly program to find out whether a given byte is in the string or not. If it is in the string, find out the relative address of the byte from the starting location of the string. [8+8] Distinguish between programmed I/O and interrupt I/O in case of 8086 processor. Interface an 8 × 8 key board using two 8255 ports and write a program...
Words: 1549 - Pages: 7
...system bus 3. 8085 pin description. 4. 8085 functional description. 5. Programming model of 8085 microprocessor 6. Addressing modes. 7. Instruction set classification. 8. Instruction format. 9. Sample programs. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within uP to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the uP to be opened or closed, so that data goes where it is required, and so that ALU operations occur. Arithmetic Logic Unit The ALU performs the actual numerical and logic operation such as ‘add’, ‘subtract’, ‘AND’, ‘OR’, etc. Uses data from memory and from Accumulator to perform arithmetic. Always stores result of operation in Accumulator. Registers The 8085/8080A-programming model includes six registers, one accumulator, and one flag register, as shown in Figure. In addition, it has two 16-bit registers: the stack pointer and the program counter. They are described briefly as follows. The 8085/8080A has six general-purpose registers to store 8-bit data; these are identified as B,C,D,E,H, and L as shown in the figure. They can be combined as register pairs - BC, DE, and HL - to perform some 16-bit operations. The programmer can use these registers to store or copy data into the registers by using data copy instructions. Accumulator The accumulator is an 8-bit register that is a part of arithmetic/logic unit (ALU). This register is used to store 8-bit...
Words: 5300 - Pages: 22
...functional. Thus, computer architecture covers computer systems, microprocessors, circuits, and system programs. Typically the term does not refer to application programs, such as spreadsheets or word processing, which are required to perform a task but not to make the system run. In designing a computer system, architects consider five major elements that make up the system's hardware: the arithmetic/logic unit, control unit, memory, input, and output. The arithmetic/logic unit performs arithmetic and compares numerical values. The control unit directs the operation of the computer by taking the user instructions and transforming them into electrical signals that the computer's circuitry can understand. The combination of the arithmetic/logic unit and the control unit is called the central processing unit (CPU). The memory stores instructions and data. The input and output sections allow the computer to receive and send data, respectively. Different hardware architectures are required because of the specialized needs of systems and users. One user may need a system to display graphics extremely fast, while another system may have to be optimized for searching a database or conserving battery power in a laptop computer. In addition to the hardware design, the architects must consider what software programs will operate the system. Software, such as programming languages and operating systems, makes the details of the hardware architecture...
Words: 752 - Pages: 4