The document summarizes key features of RISC architecture:
1) RISC uses simple instructions that can be executed in a single cycle. Complex instructions are broken down into basic instructions.
2) RISC has hardwired control and avoids microcode to reduce instruction cycles. Instructions use register-register operations and few addressing modes.
3) RISC emphasizes pipelining to improve parallelism and performance. Instructions are decoded and executed simultaneously.
The document summarizes key features of RISC architecture:
1) RISC uses simple instructions that can be executed in a single cycle. Complex instructions are broken down into basic instructions.
2) RISC has hardwired control and avoids microcode to reduce instruction cycles. Instructions use register-register operations and few addressing modes.
3) RISC emphasizes pipelining to improve parallelism and performance. Instructions are decoded and executed simultaneously.
The document summarizes key features of RISC architecture:
1) RISC uses simple instructions that can be executed in a single cycle. Complex instructions are broken down into basic instructions.
2) RISC has hardwired control and avoids microcode to reduce instruction cycles. Instructions use register-register operations and few addressing modes.
3) RISC emphasizes pipelining to improve parallelism and performance. Instructions are decoded and executed simultaneously.
1)RISC feature of pentinum:-1)Because of the advance in 8086 ASSEMBLY PROGRAM TO MULTIPLY TWO 32 BIT
microelectronic manufacturing technology, a num of change NUMBERS:--- data segment/abc dd 12345678H/def dd
in the computer architecture are taking place from the last 12345678H/ghi dq ?/data ends/ code segment/ decode2.)The new computer were design which use process assume cs:code, ds:dat/start:/mov ax, data/mov ds, ax/mov ax, word ptr abc/mul word ptr def/mov –or with complex instructions and addressing modes, which word ptr ghi, ax/mov cx, dx/mov ax, word ptr we call a complex instruction set computer(CISC) abc+2/mul word ptr def/add cx, ax/mov bx, dx/jnc 3)This problem is solved by a new design technique called as move/add bx,0001H/move: mov ax,word ptr abc/mul Reduced Instruction set computer(RISC) word ptr def+2/add cx, ax/mov word ptr ghi+2, 1)Simple Instruction Set In a RISC processor, the instruction cx/mov cx,dx/jnc ma/add bx, 0001H/ma: mov ax, set consists of simple and basic The complex instructions word ptr abc+2/mul word ptr def+2/add cx, ax/jnc can be composed using simple and basic mb/add dx, 0001H/mb: add cx, bx/mov word instructions.2.Reduction of Instruction Set Less numbers of ptrghi+4, cx/jnc mc/add dx, 0001H/mc: mov word instructions are used to simplify instruction ptr ghi+6, dx/int 3/code ends/end start decoding.3)Elimination of Microcoding In RISC, microcode is replaced by hardwired logic gates. Hence all execution units are hardwired..4)Pipelining Usually, massive pipelining is used in a RISC processor. Due to pipelined instruction Features of 8096 Microcontroller:-1.The 8096 is a 16-bit decoding and executing, more operations are performed in microcontroller.2.The 8096 is designed to use in applications parallel. Therefore, the speed of RISC processors is which require high speed calculations and fast I/O increased.5)Very Few Addressing Modes RISC processors operations.3).The high speed I/O section of an 8096 includes a have very few addressing modes and it supports few 16 bit timer, a 16 bit counter, a 4 input programmable edge formats.6)extensive utilization of the compiler:-1)when a detector; 4 software timers, and a 6-output programmable program is written in higher level language, during event generator.4).The 8096 has 8 multiplexed input analog to compilation each statement within a program is converted digital converter with 10 bit It can fully run under interrupt into assembly language instruction. control.5).Its programmable pulse width modulation output Fuatures of 8051 microcontroller:-1)8bit cpu2)on chip clock signals can be used as control signals to drive a motor, and for oscillatay.3)4k bytes of on chip program memory.4)256bytes any other application.)6.Its serial port has several modes of of on chip data random access memory.4)64k byte of data operation with programmable baud rates. memory address space.5)64k bytes of data memory address space6)32 bit directional I/O lines can be either used as four PSW:-program status work:-1)The psw or program status word 8 bit data parts or 32 individual addressable I/O lines. register is also called as flag register and is one of the impotant 7)Two 16bit timers counters. 8)16bit address bus sfrs.2)The esw register consist of flag bits which help the multiplexed of with part 0 and and part 2 and 8 bit data bus programmer in checking the condition of the result and also multiplexed with part 0. 9)five vectar interrupt structure make decision.3)flags are 1-bit storage elements that store and with two priority levels. indicate the nature of the result that is generated by execution of certain instruction. Real mode:1)it uses 16bit of address2)it runs in 8086program TMOD:-Timer mode:-1)Tmod or timer mode register sfr is used 3)pentinum act as a faster 8086. 4)After reset of 80386,it to set the operating modes of the timer to and T1. The lower starts program execution from the memory location address four bits are used to configure timer o and the higher four bits offfffffH under the real mode.5)in this mode 80386 work as a are used to configure. fast 8086 with 32-bit register and data type. MEMORY addressing in real mode:-1)in the real mode, the Gate c T1 T1 Gate c T0 T0 80386 can address at the most 1 mb of physical memory 1 T1 M1 M0 0 T0 M1 M0 using address line A19-ao.2)in real mode program can access TCON:-Timer control.1)timer control or Tcon register is used to up to six segment at any time two of these are for data and start or stop the timer of 8051 microcontroller.2)it also code. 3)another segment is typically used for stack. contains bits to indicate if the times has overflowed.3)the tcon PROTECTED MODE:-1)it supports sophisticated segmentation scr also consists of interrupt related bits. 2)segment unit translates 32-bit logical address to 32-bit linear address.3)paging unit translate 32-bit linear address to Tf1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 32-bit physical address.4.paging unit translate 32-bit linear TCON Adress 88h address to 32-bit phycial address. SCON:-1)The serial control or scon SFR is used to control the 8051microcontroller serial part it is located as a address of 98H Watch dog timer:1)on chip 16-bit,watchdog timer is available 2)using scon you can control the operation modes of the serial in 8096 which helps to recover the controller from the port and send bound roal of the serial port and send or receive software upsets.2)This 16-bit WDT is a counter which is data using serial port.3)scon register also consists of bits that incremented every state time. This counter is cleared by are automatically set when a byte of data is transmitted or program after periodic interval and not allowed to overflow. received. However, it the program does not progress properly by any reason such as Electron static Discharge(ESD) or due due to SM0 SM1 SM2 REN TB8 RB8 T1 R1 any hardware related problems.the overflow occure.and the Address = 98aH hardware reset is initiated to restart the microcontroller. 3)Watchdog timer is a piece of hardware in micro- controller. Watchdog timer is used to generates system reset if system gets stuck somewhere i.e. if system goes into endless loop of execution watchdog timer will reset the system to come out of endless loop. Watchdog is safety mechanism in embedded system which makes your system reliable, but it depends on how you make use of watchdog timer. INSTRUCTION PARING RULE IN RISC ARCHITECTURE:-1)single- fuatures of 80286:-1)The 80286 is a 16-bit processor. The 16 cycle execution:-In traditional central processing unit(cpu) bit ALU allows to process 16-bit data.2)it has 24 bit address designs the peak possible execution rate is one instruction bus,so it can acess upto 16mbytes (𝟐𝟐𝟒 ) of physical memory per basic machine cycle and for a given technology the cycle or 1 Gigabytes (𝟐𝟑𝟐 ) of virtual memory. 3)The 80286 can be time has some fixed lower limit.Even on complex cpus, most operated at three different clock speed. This are 4MHZ compiler generated instruction are simple generated instruct (80286-4), 6mhz (80286-6) and 8 mhz(80286).4.The 80286 ion are simple RISC design emphasize single-cycle execution. include special instruction to support operating system. 5)the (2)Hard-wired control, little or no microcode — Microcode 80286 was the first family member design specially for use as adds a layer of interpretive overhead, raising the number of cpu in a multi-user.(2)fuatue of 80386:-1)The 80386 is a 32-bit cycles per instruction, so even the simplest instructions can processor. The 32 alu allows to process 32-bit data. 2)it has require several cycles. 3). Simple instructions, few addressing 32-bit address bus. So it can access upto 4 gbytes (𝟐𝟑𝟐 ) modes — Complex instructions and addressing modes, which physical memory or 64 Tetra bytes (𝟐𝟒𝟔 ) of virtual memory entail microcode or multicycle instructions, are avoided. 3)The 80386 runs with speed upto20mhz instruction per unit 4) Load and store, register-register design — Only loads and second.4)it allows programmer to switch between different stores access memory; all others perform register-register operating system such as pc-dox and unix(3)fuature of 80486 operations. This tends to follow from the previous three :-1)it has highly integrated device containing about 1.2 million principles.5)Efficient, deep pipelining — To make convenient transistors. 2)The 80486 operates on 25MHz , 33mhz, 50mhz, use of hardware parallelism without the complexities of 66mhz or 100mhz. 3)It has built in math co-processor.4)80486 horizontal microcode, fast CPUs use pipelining. An n-stage is a 32-bit architecture with on-chip memory management pipeline keeps up to “n” instructions active at once, ideally and cache memory unit.5)The 80486 has 3modes of operation finishing one (and starting another) every cycle. The Real mode, protected mode and virtual 8086 mode. instruction set must be carefully tuned to support pipelining. Microprocessor microcontroller Interrupt structure:-1)There are 20 different interrupt Hert of computer system Hert of embedded system sources that can be used on the 8096.The 20 sources vector Zero states flag No zero flag though 8 locations or interrupt vectors.2)all these Mainly use in perional Mainly used in washing interrupts are enable and disabled using the 9th bit of psw computer machine, AC etc. register.3)in this bit is set to 1 all the interrupt are enables It is complex and costly Simple and cheep and disabled when reset to zero.4)when the hardware It can not be used in It can be used in compact detects one of the 8 interrupts it sets the corresponding bit in the interrupt pending register. 5)this register can be compact system.therefor system.therefore microco - read or modified as a byte register.6)the INT MASK register microprocessor is inefficient ntroller is more efficient can be accessed as the lower bits of psw register. ---------------------------------------------------------------------------------- ----------------------------------------------------------------------- 1) System Address Registers(SAR):-These registers are used in INTERUPT MECHANISM IN 8051:- Interrupts are the the protected mode of Intel processors. The Windows events that temporarily suspend the main program, pass the operating system also operates in this mode.1.GDTR — This is control to other functions or sources and execute their task. It a 6-byte register containing the linear address of the global then passes the control to the main program where it had left descriptor table (GDT).2)TDTR — This is a 6-byte register off. 2)As code size increases and your application handles containing the 32-bit linear address of the interrupt multiple modules, sequential coding would be too long and to descriptor table.3)LDTR — This is a 10-byte register complex. The interrupt mechanism helps to embed your containing the 16-bit selector (index) for GDT and an 8-byte software with hardware in a much simpler and efficient descriptor.4)TR — This is a 10-byte register containing the 16- manner. In this topic, we will discuss the interrupts in 8051 bit selector for GDT and the entire 8-byte descriptor from using AT89S52 microcont roller.3)When an interrupt is GDT, describing the task state segment (TSS) of the current received, the controller stops after executing the current task. TSS is a segment of special format that contains all instruction. It transfers the content of the program counter required information about the given task, and a special field into the stack. Interrupts in 8051 includes :1)Reset.2)External that ensures task interactions and intercommunications.. Interrupt 0.3)Timer/Counter 0.4)External Interrupt A base transceiver station (BTS) is a piece of network 5)Timer/Counter1,6)Serial Interrupt. Each equipment that facilitates wireless communication between a interrupt can be enabled or disabled by setting bits of the IE device and network.----------------------------------------------------- register and the whole interrupt system can be disabled by (2) A base transceiver station (BTS) :-is a piece of network clearing the EA bit of the same register.- Reset interrupt equipment that facilitates wireless communication between a When the RESET interrupt is received, the controller restarts device and network.A BTS consists of the following:Antennas executing code from 0000H location. This interrupt is not that relay radio messages. 1)Transceivers.2)Duplexer available to the programmer.2)Timer interrupts:-Each 3)Amplifiers. A BTS is also known as a Timer is associated with a Timer interrupt. When a base station (BS), radio base station (RBS) or node B (eNB) --- timer has finished counting, the Timer interrupt ---------------------------------------------------------------------------- will notify the microcontroller by setting the AAM:-ASCII adjust after multiplication. This instruction required flag bit.3)External interrupt:-8051 based adjusts the result of the multiplication of two unpacked BCDs AT89S52 microcontroller has two active-low to create a pair of unpacked (base 10) BCDs. For this external interrupts, INT0 and INT1. 4)Serial command, it is assumed that the AX register contains the interrupt:-This interrupt is used for serial result of binary multiplication of two decimal system digits communication. When enabled, it notifies the (ranging from 0 to 81). After completion of this operation, the controller when a byte has been received or AX register will contain a 2-byte product in ASCII format. It is transmitted according to how the interrupt is assumed that the least significant digit is contained in AL and the most significant digit is contained in AH. The AAM configured. instruction is only useful when it follows an MUL instruction that multiplies (binary multiplication) two unpacked BCDs ----------------------------------------------------------------------- and stores a word result in the AX register. The AAM instruction then adjusts the contents of the AX register so that they contain the correct two-digit, unpacked (base 10) BCD result. Branch Prediction in Pentium:-The gain produced by Instruction &data cache of pentinum:- Despite the potential Pipelining can be reduced by the presence of program advantages of a unified cache which is used in the 80486 transfer instructions eg JMP, CALL, RET etc.They change the processor, the Pentium microprocessor uses separate code and sequence causing all the instructions that entered the data caches. The reason is that the superscalar design and pipeline after program transfer instructions invalidThus no branch prediction demand more bandwidth than a unified work is done as the pipeline stages are reloaded. cache. First, efficient branch prediction requires that the Branch prediction logic:- To avoid this problem, Pentium destination of a branch be accessed simultaneously with data uses a scheme called Dynamic Branch Prediction. In this references of previous instructions executing in the scheme, a prediction is made for the branch instruction pipeline.Second,the parallel execution of data memory currently in the pipeline. The prediction will either be taken references requires simultaneous accesses for loads and or not taken. If the prediction is true then the pipeline will stores.Third, in the context of the overall Pentium not be flushed and no clock cycles will be lost. If the microprocessor design, handling self-modifying code for prediction is false then the pipeline is flushed and starts over separate code and data caches is only marginally more complex with the current instruction.It is implemented using 4 way than for a unified cache.The data and instruction caches on the set associated cache with 256 entries. This is called Branch Pentium processor are each 8 KB, two-way associative designs Target Buffer (BTB). ------------------------------------------------------- with 32 byte lines. Each cache has a dedicated translation -------------------------------------------------------------------------- lookaside Buffer (TLB) to translate linear addresses to physical Floting point unit of pentinum processor:- A floating- addresses.---------------------------------------------------------------- point unit (FPU, colloquially a math coprocessor) is a part of a computer system specially designed to RISC CISC carry out operations on floating-point numbers. It focuses on the software It focuses on the hardware. Typical operations are addition, subtraction, multiplication, Uses the hardware control It uses hardware as well as division, and square root.. A floating point unit is an unit microprogrammed control integrated circuit which handles all mathematical operations unit that have anything to do with floating point numbers or The instruction have a fixed The size of instruction vary fractions. It is a dedicated logic unit specifically designed to size. work on floating point numbers and nothing else, hence the Fewer register are used It requires more num of name. It can be defined as a specialized coprocessor that can register manipulate numbers quicker than the basic microprocessor Executes in one clock cycle Takes more than one clock circuitry itself.The FPU performs simple mathematical tasks cycle for execution. which include addition, subtraction, division, multiplication and square root. Older FPUs process transcendental functions like exponential and trigonometric calculations but Explain program status word of IC 80386:-The program status these can be expensive and complicated to implement, so in word is a register that performs the function of a status of a modern FPUs, these are done via software library routines. status register 4 program counter, & sometimes more. The term is also applied to a copy of the psw in storage. All through certain fields within psw may be tested or set by using non- privileged instruction testing or setting the remaining fields may only. The program states word or psw is a collection of data 8 byte (or 64bits) long, mainted by the os. The data transfer instructions:- are used to transfer data from one location to another. This transfer of data can be either from register to register, register to memory or memory to register.It is important to note here that the memory to memory transfer of data directly is not possible. Following are some instructions that are used for data transfer purpose:MOV,PUSH,POP,XCHG,LAHF,SAHF,IN,OUT. 1) MOV:This instruction simply copies the data from the source to the destination. Syntax: MOV destination , source Example: MOV AX, BX 2) PUSHThis instruction is used to push data into the stack.