Chapter 4: Processor Design. Block Diagram of 1-Bus SRC

Size: px
Start display at page:

Download "Chapter 4: Processor Design. Block Diagram of 1-Bus SRC"

Transcription

1 4-1 Chapter 4 Processor Design Chapter 4: Processor Design Topics 4.1 The Design Process Bus Microarchitecture for the SRC 4.3 Data Path Implementation 4.4 Logic Design for the 1-Bus SRC 4.5 The Control Unit 4.6 The 2- and 3-Bus Processor Designs 4.7 The Machine Reset 4.8 Machine Exceptions 4-2 Chapter 4 Processor Design Block Diagram of 1-Bus SRC Page 1

2 4-3 Chapter 4 Processor Design High-Level View of the 1-Bus SRC Design DD SUB ND OR SHR SHR SHL SHC NOT NEG C=B INC Chapter 4 Processor Design Constraints Imposed by the Microarchitecture One bus connecting most registers allows many different RTs, but only one at a time Memory address must be copied into M by CPU Memory data written from or read into MD First LU operand always in, result goes to C Second LU operand always comes from bus Information only goes into IR and M from bus decoder (not shown) interprets contents of IR M supplies address to memory, not to CPU bus 31 R0 R31 -bit general purpose registers LU C C B PC IR M To memory subsystem MD Page 2

3 4-5 Chapter 4 Processor Design bstract and Concrete RTN for SRC add Instruction bstract RTN: (IR M[PC]: PC PC + 4; instruction_execution); instruction_execution := ( add (:= op= 12) R[ra] R[rb] + R[rc]: Concrete RTN for the add instruction Step RTN T0 M PC: C PC + 4; T1 MD M[M]: PC C; T2 IR MD; IF T3 R[rb]; IEx. T4 C + R[rc]; T5 R[ra] C; 31 R0 R31 -bit general purpose registers LU C C B PC IR M To memory subsystem MD Parts of 2 RTs (IR M[PC]: PC PC + 4;) done in T0 Single add RT takes 3 concrete RTs (T3, T4, T5) 4-6 Chapter 4 Processor Design Concrete RTN Gives Information bout Sub-units The LU must be able to add two -bit values LU must also be able to increment B input by 4 Memory read must use address from M and return data to MD Two RTs separated by : in the concrete RTN, as in T0 and T1, are operations at the same clock Steps T0, T1, and T2 constitute instruction fetch, and will be the same for all instructions With this implementation, fetch and execute of the add instruction takes 6 clock cycles Page 3

4 4-7 Chapter 4 Processor Design Concrete RTN for rithmetic Instructions: addi bstract RTN: addi (:= op= 13) R[ra] R[rb] + c {2's complement sign extend} : Concrete RTN for addi: Step RTN T0. M PC: C PC + 4; T1. MD M[M]; PC C; T2. IR MD; Instr Fetch T3. R[rb]; Instr Execn. T4. C + c {sign ext.}; T5. R[ra] C; 31 R0 R31 -bit general purpose registers LU C C B PC IR M To memory subsystem MD Differs from add only in step T4 Establishes requirement for sign extend hardware 4-8 Chapter 4 Processor Design More Complete View of Registers and Buses in the 1-Bus SRC Design, Including Some Control Signals Concrete RTN lets us add detail to the data path Instruction register logic and new paths Condition bit flip-flop Shift count register Page 4

5 4-9 Chapter 4 Processor Design bstract and Concrete RTN for Load and Store ld (:= op= 1) R[ra] M[disp] : st (:= op= 3) M[disp] R[ra] : where disp := ((rb=0) c {sign ext.} : (rb 0) R[rb] + c {sign extend, 2's comp.} ) : The ld and St Instructions Step RTN for ld RTN for st T0 T2 Instruction fetch T3 (rb = 0 0: rb 0 R[rb]); T4 C + (16@IR 16 #IR ); T5 M C; T6 MD M[M]; MD R[ra]; T7 R[ra] MD; M[M] MD; 4-10 Chapter 4 Processor Design Notes for Load and Store RTN Steps T0 through T2 are the same as for add and addi, and for all instructions In addition, steps T3 through T5 are the same for ld and st, because they calculate disp way is needed to use 0 for R[rb] when rb = 0 15-bit sign extension is needed for IR Memory read into MD occurs at T6 of ld Write of MD into memory occurs at T7 of st Page 5

6 4-11 Chapter 4 Processor Design Concrete RTN for Conditional Branch br (:= op= 8) (cond PC R[rb]): cond := ( c =0 0: c =1 1: c =2 R[rc]=0: c =3 R[rc] 0: c =4 R[rc] 31 =0: c =5 R[rc] 31 =1 ): never always if register is zero if register is nonzero if positive or zero if negative The Branch Instruction, br Step RTN T0 T2 Instruction fetch T3 CON cond(r[rc]); T4 CON PC R[rb]; 4-12 Chapter 4 Processor Design Notes on Conditional Branch RTN c are just the low-order 3 bits of IR cond() is evaluated by a combinational logic circuit having inputs from R[rc] and c The one bit register CON is not accessible to the programmer and only holds the output of the combinational logic for the condition If the branch succeeds, the program counter is replaced by the contents of a general register Page 6

7 4-13 Chapter 4 Processor Design bstract and Concrete RTN for SRC Shift Right shr (:= op = 26) R[ra] ) # R[rb] 31..n : n := ( (c = 0) R[rc] 4..0 : Shift count in register (c ) c ): or constant field of instruction The shr Instruction Step Concrete RTN T0 T2 Instruction fetch T3 n IR 4..0 ; T4 (n = 0) (n R[rc] 4..0 ); T5 C R[rb]; T6 Shr (:= (n 0) (C #C : n n - 1; Shr) ); T7 R[ra] C; step T6 is repeated n times 4-14 Chapter 4 Processor Design Notes on SRC Shift RTN In the abstract RTN, n is defined with := In the concrete RTN, it is a physical register n not only holds the shift count but is used as a counter in step T6 Step T6 is repeated n times as shown by the recursion in the RTN The control for such repeated steps will be treated later Page 7

8 4-15 Chapter 4 Processor Design 4-16 Chapter 4 Processor Design The Register File and Its Control Signals R out gates selected register onto bus R in strobed selected register from bus From Figure R0 -bit general purpose 5 registers Select logic IR R31 B out differs from R out by gating 0 when R[0] is selected B = Base ddress IR Op ra rb rc Gra Grb Grc 3 R in R out B out to decoder 31 R R1 4 0 R D R D 5 R D 5 R0 7 Bus b<31...0> Page 8

9 4-17 Chapter 4 Processor Design 4-18 Chapter 4 Processor Design Extracting c1, c2, and OP from the Instruction Register, IR<31...0> I 21 is the sign bit of C1 that must be extended Op From Figure IR Select logic c c D IR D IR D IR To control unit I 16 is the sign bit of C2 that must be extended Sign bits are fanned out from one to several bits and gated to bus c1 out c2 out 4 1 D IR D IR IR in D Bus IR Page 9

10 4-19 Chapter 4 Processor Design 4-20 Chapter 4 Processor Design The CPU Memory Interface: Memory ddress and Memory Data Registers, M<31...0> and MD<31...0> MD is loaded from memory or from CPU bus From Figure 4.3 M To memory subsystem MD MD can drive CPU bus or memory bus MD bus MD rd Strobe MD wr MD out M in D MD MD D M M CPU bus Read Write Done data addr Memory bus Page 10

11 4-21 Chapter 4 Processor Design 4-22 Chapter 4 Processor Design The LU and Its ssociated Registers D From Figure 4.3 in LU C C B DD SUB ND... NOT C=B INC4 11 LU C B D C C out C in Page 11

12 4-23 Chapter 4 Processor Design From Concrete RTN to Control Signals: The Control Sequence The Instruction Fetch Step Concrete RTN Control Sequence T0 M PC: C PC + 4; PC out, M in, INC4, C in T1 MD M[M]: PC C; Read, C out, PC in, Wait T2 IR MD; MD out, IR in T3 Instruction_execution The register transfers are the concrete RTN The control signals that cause the register transfers make up the control sequence Wait prevents the control from advancing to step T3 until the memory asserts Done 4-24 Chapter 4 Processor Design Page 12

13 4-25 Chapter 4 Processor Design Control Steps, Control Signals, and Timing Within a given time step, the order in which control signals are written is irrelevant In step T0, C in, Inc4, M in, PC out == PC out, M in, INC4, C in The only timing distinction within a step is between gates and strobes The memory read should be started as early as possible to reduce the wait M must have the right value before being used for the read Depending on memory timing, Read could be in T Chapter 4 Processor Design Control Sequence for the SRC add Instruction add (:= op = 12) R[ra] R[rb] + R[rc]: The add Instruction Step Concrete RTN Control Sequence T0 M PC: C PC + 4; PC out, M in, INC4, C in, Read T1 MD M[M]: PC C; C out, PC in, Wait T2 IR MD; MD out, IR in T3 R[rb]; Grb, R out, in T4 C + R[rc]; Grc, R out, DD, C in T5 R[ra] C; C out, Gra, R in, End Note the use of Gra, Grb, and Grc to gate the correct 5-bit register select code to the registers End signals the control to start over at step T0 Page 13

14 4-27 Chapter 4 Processor Design Control Sequence for the SRC addi Instruction addi (:= op= 13) R[ra] R[rb] + c {2 s comp., sign ext.} : The addi Instruction Step Concrete RTN Control Sequence T0. M PC: C PC + 4; PC out, M in, Inc4, C in, Read T1. MD M[M]; PC C; C out, PC in, Wait T2. IR MD; MD out, IR in T3. R[rb]; Grb, R out, in T4. C + c {sign ext.}; c2 out, DD, C in T5. R[ra] C; C out, Gra, R in, End The c2 out signal sign extends IR and gates it to the bus 4-28 Chapter 4 Processor Design Control Sequence for the SRC st Instruction st (:= op = 3) M[disp] R[ra] : disp := ((rb=0) c {sign extend} : (rb 0) R[rb] + c {sign extend, 2 s complement} ) : The st Instruction Step Concrete RTN Control Sequence T0 T2 Instruction fetch Instruction fetch T3 (rb=0) 0: rb 0 R[rb]; Grb, B out, in T4 C + c {sign-extend}; c2 out, DD, C in T5 M C; C out, M in T6 MD R[ra]; Gra, R out, MD in, Write T7 M[M] MD; Wait, End Note B out in T3 compared to R out in T3 of addi Page 14

15 4-29 Chapter 4 Processor Design The Register File and Its Control Signals R out gates selected register onto bus R in strobed selected register from bus From Figure R0 -bit general purpose 5 registers Select logic IR R31 B out differs from R out by gating 0 when R[0] is selected B = Base ddress IR Op ra rb rc Gra Grb Grc 3 R in R out B out to decoder 31 R R1 4 0 R D R D 5 R D 5 R0 7 Bus b<31...0> Chapter 4 Processor Design Page 15

16 4-31 Chapter 4 Processor Design The Shift Counter The concrete RTN for shr relies upon a 5-bit register to hold the shift count It must load, decrement, and have an = 0 test Bus From Figure Decrement n 0 n=0 Shift count, n Decr Ld n: shift count 5-bit down counter n= n=0 4- Chapter 4 Processor Design Control Sequence for the SRC shr Instruction Looping Step Concrete RTN Control Sequence T0 T2 Instruction fetch Instruction fetch T3 n IR 4..0 ; c1 out, Ld T4 (n=0) (n R[rc] 4..0 ); n=0 (Grc, R out, Ld) T5 C R[rb]; Grb, R out, C=B, C in T6 Shr (:= (n 0) n 0 (C out, SHR, C in, (C #C : Decr, Goto6) n n-1; Shr) ); T7 R[ra] C; C out, Gra, R in, End Conditional control signals and repeating a control step are new concepts Page 16

17 4-33 Chapter 4 Processor Design The LU and Its ssociated Registers D From Figure 4.3 in LU C C B DD SUB ND... NOT C=B INC4 SHR 12 LU C D B C C out C in 4-34 Chapter 4 Processor Design Logic-Level Design for One Bit of the 1- Bus SRC LU Page 17

18 4-35 Chapter 4 Processor Design 4-36 Chapter 4 Processor Design Branching cond := ( c =0 0: c = 1 1: c = 2 R[rc] = 0: c = 3 R[rc] 0: c = 4 R[rc] 31 = 0: c = 5 R[rc] 31 = 1 ): This is equivalent to the logic expression cond = (c = 1) (c = 2) (R[rc] = 0) (c = 3) (R[rc] = 0) (c = 4) R[rc] 31 (c = 5) R[rc] 31 Page 18

19 4-37 Chapter 4 Processor Design Computation of the Conditional Value CON IR From Figure 4.3 CON in D CON Cond logic Bus Decoder =0 0 c <0 CON in D CON NOR gate does = 0 test of R[rc] on bus 4-38 Chapter 4 Processor Design Control Sequence for SRC Branch Instruction, br br (:= op = 8) (cond PC R[rb]): Step Concrete RTN Control Sequence T0 T2 Instruction fetch Instruction fetch T3 CON cond(r[rc]); Grc, R out, CON in T4 CON PC R[rb]; Grb, R out, CON PC in, End Condition logic is always connected to CON, so R[rc] only needs to be put on bus in T3 Only PC in is conditional in T4 since gating R[rb] to bus makes no difference if it is not used Page 19

20 4-39 Chapter 4 Processor Design Summary of the Design Process Starting with informal description formal RTN description block diagram architecture concrete RTN steps hardware design of blocks control sequences control unit and timing t each level, more decisions must be made These decisions refine the design lso place requirements on hardware still to be designed The nice one-way process above has circularity Decisions at later stages cause changes in earlier ones Happens less in a text than in reality because Can be fixed on re-reading Confusing to first-time student 4-40 Chapter 4 Processor Design Clocking the Data Path: Register Transfer Timing Gate signal: R out R in Source register D CK R1 Circuit propagation delay Strobe signal: Bus gate R out Gate prop. time, t g n-bit bus n Bus prop. delay, t bp t R2valid Logic block Combinational logic LU, etc. delay, t comb R in Latch hold time, t h Latch setup time, t su Minimum pulse width, t w Destination register D CK R2 Latch prop. delay, t l t R2valid is the period from begin of gate signal till inputs to R2 are valid t comb is delay through combinational logic, such as LU or cond logic Minimum clock period, t min Page 20

21 4-41 Chapter 4 Processor Design The Control Unit The control unit s job is to generate the control signals in the proper sequence Things the control signals depend on The time step Ti The instruction opcode (for steps other than T0, T1, T2) Some few data path signals like CON, n = 0, etc. Some external signals: reset, interrupt, etc. (to be covered) The components of the control unit are: a time state generator, instruction decoder, and combinational logic to generate control signals 4-42 Chapter 4 Processor Design Control Unit Detail with Inputs and Outputs Page 21

22 4-43 Chapter 4 Processor Design Synthesizing Control Signal Encoder Logic Step T3. T4. T5. add Control Sequence Grb, R, out in Grc, R,DD,C out in C, out Gra, R,End in addi Step Control Sequence T3. Grb, R, out in T4. c2,dd,c out in T5. C, out Gra, R,End in Step Control Sequence T0. PC,M,Inc4,C,Read out in in T1. C out,pc in,wait T2. MD,IR out in st Step Control Sequence T3. Grb, B, out in T4. c2, DD, C out in T5. C out,m in T6. Gra, R,MD,Write out in T7. Wait, End Design process: Comb through the entire set of control sequences. Find all occurrences of each control signal. Write an equation describing that signal. Example: Gra = T5 (add + addi) + T6 st + T7 shr +... shr Step Control Sequence T3. c1,ld out T4. n=0 (Grc, R, Ld) out T5. Grb, R out,c=b T6. n 0 (C out,shr,c in, Decr, Goto7) T7. C out, Gra, R in,end 4-44 Chapter 4 Processor Design Use of Data Path Conditions in Control Signal Logic add Step Control Sequence Step T3. Grb, R, out in T4. Grc, R,DD,C out in T5. C,Gra,R,End out in Step Control Sequence T0. PC out,m in,inc4,c in, Read T1. C out,pc in,wait T2. MD out,ir in addi Control Sequence Step T3. Grb, R, out in T4. c2,dd,c out in T5. C,Gra, R,End out in st Control Sequence Step T3. Grb, B, out in T4. c2, DD, C out in T5. C,M out in T6. Gra, R,MD,Write out in T7. Wait, End T3. c1 out,ld shr Control Sequence T4. n=0 (Grc, R,Ld) out T5. Grb, R,C=B out T6. n 0 (C,SHR,C, out in Decr, Goto7) T7. C out,gra, R in,end Example: Grc = T4 add + T4 (n=0) shr +... Page 22

23 4-45 Chapter 4 Processor Design Generation of the logic for C out and G ra T5 add T C out add addi T5 T7 ld Gra 4-46 Chapter 4 Processor Design Control Unit Detail with Inputs and Outputs Page 23

24 4-47 Chapter 4 Processor Design Branching in the Control Unit 3-state gates allow 6 to be applied to counter input Reset will synchronously reset counter to step T Chapter 4 Processor Design Control Unit Detail with Inputs and Outputs Page 24

25 4-49 Chapter 4 Processor Design The Clocking Logic: Start, Stop, and Memory Synchronization Mck is master clock oscillator 4-50 Chapter 4 Processor Design The Complete 1-Bus Design of SRC High-level architecture block diagram Concrete RTN steps Hardware design of registers and data path logic Revision of concrete RTN steps where needed Control sequences Register clocking decisions Logic equations for control signals Time step generator design Clock run, stop, and synchronization logic Page 25

26 4-51 Chapter 4 Processor Design Other rchitectural Designs Will Require a Different RTN More data paths allow more things to be done in one step Consider a two bus design By separating input and output of LU on different buses, the C register is eliminated Steps can be saved by strobing LU results directly into their destinations 4-52 Chapter 4 Processor Design The 2-Bus SRC Microarchitecture bus ( In bus ) 31 general purpose registers IR PC M MD 0 R0 R31 Memory bus Bbus ( Out bus ) Bus carries data going into registers Bus B carries data being gated out of registers LU function C = B is used for all simple register transfers B LU C Page 26

27 The 2-Bus add Instruction 4-53 Chapter 4 Processor Design Step Concrete RTN Control Sequence T0 M PC; PC out, C = B, M in, Read T1 PC PC + 4: MD M[M];PC out, INC4, PC in, Wait T2 IR MD; MD out, C = B, IR in T3 R[rb]; Grb, R out, C = B, in T4 R[ra] + R[rc]; Grc, R out, DD, Sra, R in, End Note the appearance of Grc to gate the output of the register rc onto the B bus and Sra to select ra to receive data strobed from the bus Two register select decoders will be needed bus ( In bus ) 31 general purpose registers IR PC M MD 0 R0 R31 Memory bus Bbus ( Out bus ) B LU 1997 V. Heuring C and H. Jordan 4-54 Chapter 4 Processor Design Performance and Design %Speedup = Where T1 bus T 2 bus T 2 bus 100 T = Exec' n.time = IC CPI τ Page 27

28 4-55 Chapter 4 Processor Design Speedup By Going to 2 Buses ssume for now that IC and τ don t change in going from 1 bus to 2 buses Naively assume that CPI goes from 8 to 7 clocks. % Speedup = T T T 1 bus 2 bus 2 bus 100 IC = 8 τ IC 7 IC τ 7 τ 100 = = 14% Class Problem: How will this speedup change if clock period of 2-bus machine is increased by 10%? 4-56 Chapter 4 Processor Design 3-Bus rchitecture Shortens Sequences Even More 3-bus architecture allows both operand inputs and the output of the LU to be connected to buses Both the C output register and the input register are eliminated Careful connection of register inputs and outputs can allow multiple RTs in a step Page 28

29 4-57 Chapter 4 Processor Design The 3-Bus SRC Design Cbus bus Bbus 31 0 R0 general purpose registers IR PC M MD R31 Memory bus -bus is LU operand 1, B-bus is LU operand 2, and C-bus is LU output Note M input connected to the B-bus LU B C The 3-Bus add Instruction 4-58 Chapter 4 Processor Design Step Concrete RTN Control Sequence T0 M PC: MD M[M]; PC out, M in, INC4, PC in, PC PC + 4: Read, Wait T1 IR MD; MD out, C = B, IR in T2 R[ra] R[rb] + R[rc]; Grc, R out, GBrb, RB out, DD, Sra, R in, End Note the use of 3 register selection signals in step T2: Grc, GBrb, and Sra In step T0, PC moves to M over bus B and goes through the LU INC4 operation to reach PC again by way of bus C PC must be edge-triggered or master-slave Cbus Memory bus bus B bus 31 0 R0 general purpose registers IR PC M MD R31 B LU C Page 29

30 4-59 Chapter 4 Processor Design Performance and Design How does going to three buses affect performance? ssume average CPI goes from 8 to 4, while τ increases by 10%: IC 8 τ IC 4 1.1τ % Speedup = 100 = 100 = IC 4 1.1τ % 4-60 Chapter 4 Processor Design Processor Reset Function Reset sets program counter to a fixed value May be a hardwired value, or contents of a memory cell whose address is hardwired The control step counter is reset Pending exceptions are prevented, so initialization code is not interrupted It may set condition codes (if any) to known state It may clear some processor state registers soft reset makes minimal changes: PC, T (trace) hard reset initializes more processor state Page 30

31 4-61 Chapter 4 Processor Design SRC Reset Capability We specify both a hard and soft reset for SRC The Strt signal will do a hard reset It is effective only when machine is stopped It resets the PC to zero It resets all general registers to zero The Soft Reset signal is effective when the machine is running It sets PC to zero It restarts instruction fetch It clears the Reset signal ctions are described in instruction_interpretation 4-62 Chapter 4 Processor Design bstract RTN for SRC Reset and Start Processor State Strt: Rst: Start signal External reset signal instruction_interpretation := ( Run Strt (Run 1: PC, R[0..31] 0); Run Rst (IR M[PC]: PC PC + 4; instruction_execution): Run Rst ( Rst 0: PC 0); instruction_interpretation): Page 31

32 4-63 Chapter 4 Processor Design Resetting in the Middle of Instruction Execution The abstract RTN implies that reset takes effect after the current instruction is done To describe reset during an instruction, we must go from abstract to concrete RTN uestions for discussion: Why might we want to reset in the middle of an instruction? How would we reset in the middle of an instruction? 4-64 Chapter 4 Processor Design The add Instruction with Reset Processing Step Concrete RTN T0 Rst (M PC: C PC + 4): Rst (Rst 0: PC 0: T 0): T1 Rst (MD M[M]: P C): Rst (Rst 0: PC 0: T 0): T2 Rst (IR MD): Rst (Rst 0: PC 0: T 0): T3 Rst ( R[rb]): Rst (Rst 0: PC 0: T 0): T4 Rst (C + R[rc]): Rst (Rst 0: PC 0: T 0): T5 Rst (R[ra ] C): Rst (Rst 0: PC 0: T 0): See text for the corresponding control signals Page

33 4-65 Chapter 4 Processor Design Control Sequences Including the Reset Function Step T0 T1 Control Sequence Reset (PC out, M in, Inc4, C in, Read): Reset (ClrPC, ClrR, Goto0): Reset (C out, PC in, Wait): Reset (ClrPC, ClrR, Goto0): ClrPC clears the program counter to all zeros, and ClrR clears the 1-bit Reset flip-flop Because the same reset actions are in every step of every instruction, their control signals are independent of time step or opcode 4-66 Chapter 4 Processor Design General Comments on Exceptions n exception is an event that causes a change in the program specified flow of control Often called interrupts We will use exception for the general term and use interrupt for an exception caused by an external event, such as an I/O device condition The usage is not standard. Other books use these words with other distinctions, or none Page 33

34 4-67 Chapter 4 Processor Design Combined Hardware/Software Response to an Exception The system must control the type of exceptions it will process at any given time The state of the running program is saved when an allowed exception occurs Control is transferred to the correct software routine, or handler, for this exception This exception, and others of less or equal importance, are disallowed during the handler The state of the interrupted program is restored at the end of execution of the handler 4-68 Chapter 4 Processor Design Hardware Required to Support Exceptions To determine relative importance, a priority number is associated with every exception Hardware must save and change the PC, since without it no program execution is possible Hardware must disable the current exception lest is interrupt the handler before it can start ddress of the handler is called the exception vector and is a hardware function of the exception type Exceptions must access a save area for PC and other hardware saved items Choices are special registers or a hardware stack Page 34

35 4-69 Chapter 4 Processor Design New Instructions Needed to Support Exceptions n instruction executed at the end of the handler must reverse the state changes done by hardware when the exception occurred There must be instructions to control what exceptions are allowed The simplest of these enable or disable all exceptions If processor state is stored in special registers on an exception, instructions are needed to save and restore these registers 4-70 Chapter 4 Processor Design n Interrupt Facility for SRC The exception mechanism for SRC handles external interrupts There are no priorities, but only a simple enable and disable mechanism The PC and information about the source of the interrupt are stored in special registers ny other state saving is done by software The interrupt source supplies 8 bits that are used to generate the interrupt vector It also supplies a 16-bit code carrying information about the cause of the interrupt Page 35

36 4-71 Chapter 4 Processor Design SRC Processor State ssociated with Interrupts Processor interrupt mechanism From Device ireq: Interrupt request signal To Device iack: Interrupt acknowledge signal Internal IE: 1-bit interrupt enable flag to CPU IPC : Storage for PC saved upon interrupt to CPU II : Information on source of last interrupt From Device Isrc_info : Information from interrupt source From Device Isrc_vect 7..0 : Type code from interrupt source Internal Ivect := 20@0#Isrc_vect 7..0 #4@0: Ivect Isrc_vect Chapter 4 Processor Design SRC Instruction Interpretation Modified for Interrupts instruction_interpretation := ( Run Strt Run 1: Run (ireq IE) (IR M[PC]: PC PC + 4; instruction_execution): Run (ireq IE) (IPC PC : II Isrc_info : iack 1: IE 0: PC Ivect ; iack 0); instruction_interpretation); If interrupts are enabled, PC and interrupt information are stored in IPC and II, respectively With multiple requests, external priority circuit (discussed in later chapter) determines which vector and information are returned Interrupts are disabled The acknowledge signal is pulsed Page 36

37 4-73 Chapter 4 Processor Design SRC Instructions to Support Interrupts Return from interrupt instruction rfi (:= op = 29 ) (PC IPC: IE 1): Save and restore interrupt state svi (:= op = 16) (R[ra] II : R[rb] IPC ): ri (:= op = 17) (II R[ra] : IPC R[rb]): Enable and disable interrupt system een (:= op = 10 ) (IE 1): edi (:= op = 11 ) (IE 0): The 2 rfi actions are indivisible, can t een and branch 4-74 Chapter 4 Processor Design Concrete RTN for SRC Instruction Fetch with Interrupts Step (ireq IE) Concrete RTN (ireq IE) T0 ( (ireq IE) ( (ireq IE) (IPC PC: II Isrc_info: M PC: C PC+4): IE 0: PC 20@0#Isrc_vect 7..0 #0000: Iack 1; Iack 0: End); T1 MD M[M] : PC C; T2 IR MD; PC could be transferred to IPC over the bus II and IPC probably have separate inputs for the externally supplied values iack is pulsed, described as 1; 0, which is easier as a control signal than in RTN Page 37

38 4-75 Chapter 4 Processor Design Recap of the Design Process: the Main Topic of Chapter 4 Informal description Formal RTN description Block diagram architecture Concrete RTN steps Hardware design of blocks Control sequences Control unit and timing SRC Chapter 2 Chapter Chapter 4 Processor Design Chapter 4 Summary Chapter 4 has done a nonpipelined data path and a hardwired controller design for SRC The concepts of data path block diagrams, concrete RTN, control sequences, control logic equations, step counter control, and clocking have been introduced The effect of different data path architectures on the concrete RTN was briefly explored We have begun to make simple, quantitative estimates of the impact of hardware design on performance Hard and soft resets were designed simple exception mechanism was supplied for SRC Page 38

Chapter 4 Topics. Comp. Sys. Design & Architecture 2 nd Edition Prentice Hall, Mark Franklin,S06

Chapter 4 Topics. Comp. Sys. Design & Architecture 2 nd Edition Prentice Hall, Mark Franklin,S06 Chapter 4 Topics The Design Process A 1-bus Microarchitecture for SRC Data Path Implementation Logic Design for the 1-bus SRC The Control Unit The 2- and 3-bus Processor Designs The Machine Reset Process

More information

4-1 Chapter 4 - Processor Design. Chapter 4 Topics

4-1 Chapter 4 - Processor Design. Chapter 4 Topics 4-1 Chapter 4 - Processor Design Chapter 4 Topics The Design Process A 1-bus Microarchitecture for SRC Data Path Implementation Logic Design for the 1-bus SRC The Control Unit The 2- and 3-bus Processor

More information

Chapter 4 Topics C S. D A 2/e

Chapter 4 Topics C S. D A 2/e Chapter 4 Topics The esign Process 1-bus Microarchitecture for RC ata Path Implementation Logic esign for the 1-bus RC The Control Unit The 2- and 3-bus Processor esigns The Machine Reset Process Machine

More information

RTN (Register Transfer Notation)

RTN (Register Transfer Notation) RTN (Register Transfer Notation) A formal means of describing machine structure & function. Is at the just right level for machine descriptions. Does not replace hardware description languages. RTN is

More information

Microprogramming: Basic Idea

Microprogramming: Basic Idea 5-45 Chapter 5 Processor Design Advanced Topics Microprogramming: Basic Idea Recall control sequence for 1-bus SRC Step Concrete RTN Control Sequence T0 MA PC: C PC + 4; PC out, MA in, INC4, C in, Read

More information

Chapter 2: Machine Languages and Digital Logic

Chapter 2: Machine Languages and Digital Logic Chapter 2: Machine Languages and igital Logic Computer ystems esign and rchitecture What are the components of an I? ometimes known as The Programmers Model of the machine torage cells General and special

More information

2 1.1 הקדמה

2 1.1 הקדמה 1 מבוא למחשבים חוברת שקפים ערך: ד"ר אורי סןיסה 2 1.1 הקדמה 3 4 Addressing modes 5 6 7 8 9 10 11 12 13 14 15 16 RTN Description of SRC 17 18 19 *****SRC Simulator Help***** The program simulates a RISC

More information

CPE300: Digital System Architecture and Design

CPE300: Digital System Architecture and Design CPE300: Digital System Architecture and Design Fall 2011 MW 17:30-18:45 CBC C316 Pipelining 11142011 http://www.egr.unlv.edu/~b1morris/cpe300/ 2 Outline Review I/O Chapter 5 Overview Pipelining Pipelining

More information

Example: Computer, SRC Simple RISC Computer

Example: Computer, SRC Simple RISC Computer 2-24 Chapter 2 Machines, Machine Languages, and Digital Logic Exaple: Coputer, SRC Siple RISC Coputer 32 general purpose registers of 32 bits 32-bit progra counter, PC, and instruction register, IR 2 32

More information

Chapter 5 (a) Overview

Chapter 5 (a) Overview Chapter 5 (a) Overview (a) The principles of pipelining (a) A pipelined design of SRC (b) Pipeline hazards (b) Instruction-level parallelism (ILP) Superscalar processors Very Long Instruction Word (VLIW)

More information

Chapter 2: Machines, Machine Languages, and Digital Logic

Chapter 2: Machines, Machine Languages, and Digital Logic Chapter 2: Machines, Machine Languages, and igital Logic Instruction sets, RC, RTN, and the mapping of register transfers to digital logic circuits Chapter 2 Topics 2.1 Classification of Computers and

More information

Chapter 5 Processor Design Advanced Topics

Chapter 5 Processor Design Advanced Topics Chapter 5 Processor esign dvanced Topics The principles of pipelining pipelined design of RC Pipeline hazards Instruction-level parallelism (ILP) uperscalar processors Very Long Instruction Word (VLIW)

More information

Digital System Design Using Verilog. - Processing Unit Design

Digital System Design Using Verilog. - Processing Unit Design Digital System Design Using Verilog - Processing Unit Design 1.1 CPU BASICS A typical CPU has three major components: (1) Register set, (2) Arithmetic logic unit (ALU), and (3) Control unit (CU) The register

More information

5-1 Instruction Codes

5-1 Instruction Codes Chapter 5: Lo ai Tawalbeh Basic Computer Organization and Design 5-1 Instruction Codes The Internal organization of a digital system is defined by the sequence of microoperations it performs on data stored

More information

Introduction to CPU Design

Introduction to CPU Design ١ Introduction to CPU Design Computer Organization & Assembly Language Programming Dr Adnan Gutub aagutub at uqu.edu.sa [Adapted from slides of Dr. Kip Irvine: Assembly Language for Intel-Based Computers]

More information

csitnepal Unit 3 Basic Computer Organization and Design

csitnepal Unit 3 Basic Computer Organization and Design Unit 3 Basic Computer Organization and Design Introduction We introduce here a basic computer whose operation can be specified by the resister transfer statements. Internal organization of the computer

More information

Advanced Computer Architecture

Advanced Computer Architecture Advanced Computer Architecture Lecture No. 22 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 5 Computer Systems Design and Architecture 5.3 Summary Microprogramming Working of a General Microcoded

More information

Module 5 - CPU Design

Module 5 - CPU Design Module 5 - CPU Design Lecture 1 - Introduction to CPU The operation or task that must perform by CPU is: Fetch Instruction: The CPU reads an instruction from memory. Interpret Instruction: The instruction

More information

CSCI 2121 Computer Organization and Assembly Language PRACTICE QUESTION BANK

CSCI 2121 Computer Organization and Assembly Language PRACTICE QUESTION BANK CSCI 2121 Computer Organization and Assembly Language PRACTICE QUESTION BANK Question 1: Choose the most appropriate answer 1. In which of the following gates the output is 1 if and only if all the inputs

More information

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control, UNIT - 7 Basic Processing Unit: Some Fundamental Concepts, Execution of a Complete Instruction, Multiple Bus Organization, Hard-wired Control, Microprogrammed Control Page 178 UNIT - 7 BASIC PROCESSING

More information

PROBLEMS. 7.1 Why is the Wait-for-Memory-Function-Completed step needed when reading from or writing to the main memory?

PROBLEMS. 7.1 Why is the Wait-for-Memory-Function-Completed step needed when reading from or writing to the main memory? 446 CHAPTER 7 BASIC PROCESSING UNIT (Corrisponde al cap. 10 - Struttura del processore) PROBLEMS 7.1 Why is the Wait-for-Memory-Function-Completed step needed when reading from or writing to the main memory?

More information

structural RTL for mov ra, rb Answer:- (Page 164) Virtualians Social Network Prepared by: Irfan Khan

structural RTL for mov ra, rb Answer:- (Page 164) Virtualians Social Network  Prepared by: Irfan Khan Solved Subjective Midterm Papers For Preparation of Midterm Exam Two approaches for control unit. Answer:- (Page 150) Additionally, there are two different approaches to the control unit design; it can

More information

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015 Advanced Parallel Architecture Lesson 3 Annalisa Massini - 2014/2015 Von Neumann Architecture 2 Summary of the traditional computer architecture: Von Neumann architecture http://williamstallings.com/coa/coa7e.html

More information

CPU Organization (Design)

CPU Organization (Design) ISA Requirements CPU Organization (Design) Datapath Design: Capabilities & performance characteristics of principal Functional Units (FUs) needed by ISA instructions (e.g., Registers, ALU, Shifters, Logic

More information

BASIC COMPUTER ORGANIZATION AND DESIGN

BASIC COMPUTER ORGANIZATION AND DESIGN 1 BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle Memory Reference Instructions Input-Output and Interrupt Complete

More information

Chapter 5. Computer Architecture Organization and Design. Computer System Architecture Database Lab, SANGJI University

Chapter 5. Computer Architecture Organization and Design. Computer System Architecture Database Lab, SANGJI University Chapter 5. Computer Architecture Organization and Design Computer System Architecture Database Lab, SANGJI University Computer Architecture Organization and Design Instruction Codes Computer Registers

More information

Computer Organization (Autonomous)

Computer Organization (Autonomous) Computer Organization (Autonomous) UNIT II Sections - A & D Prepared by Anil Kumar Prathipati, Asst. Prof., Dept. of CSE. SYLLABUS Basic Computer Organization and Design: Instruction codes Stored Program

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

BASIC COMPUTER ORGANIZATION AND DESIGN

BASIC COMPUTER ORGANIZATION AND DESIGN 1 BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle Memory Reference Instructions Input-Output and Interrupt Complete

More information

Chapter 14 Design of the Central Processing Unit

Chapter 14 Design of the Central Processing Unit Chapter 14 Design of the Central Processing Unit We now focus on the detailed design of the CPU (Central Processing Unit) of the Boz 7. The CPU has two major components: the Control Unit and the ALU (Arithmetic

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

Computer Hardware Engineering

Computer Hardware Engineering Computer Hardware Engineering IS2, spring 27 Lecture 9: LU and s ssociate Professor, KTH Royal Institute of Technology Slides version. 2 Course Structure Module : C and ssembly Programming LE LE2 LE EX

More information

Lecture-15 W-Z: Increment-Decrement Address Latch:

Lecture-15 W-Z: Increment-Decrement Address Latch: Lecture-15 W-Z: (W) and (Z) are two 8-bit temporary registers not accessible to the user. They are exclusively used for the internal operation by the microprocessor. These registers are used either to

More information

Outline of today s lecture. EEL-4713 Computer Architecture Designing a Multiple-Cycle Processor. What s wrong with our CPI=1 processor?

Outline of today s lecture. EEL-4713 Computer Architecture Designing a Multiple-Cycle Processor. What s wrong with our CPI=1 processor? Outline of today s lecture EEL-7 Computer Architecture Designing a Multiple-Cycle Processor Recap and Introduction Introduction to the Concept of Multiple Cycle Processor Multiple Cycle Implementation

More information

BASIC COMPUTER ORGANIZATION AND DESIGN

BASIC COMPUTER ORGANIZATION AND DESIGN BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle Memory Reference Instructions Input-Output and Interrupt Complete

More information

Basics of Microprocessor

Basics of Microprocessor Unit 1 Basics of Microprocessor 1. Microprocessor Microprocessor is a multipurpose programmable integrated device that has computing and decision making capability. This semiconductor IC is manufactured

More information

Chapter 3 - Top Level View of Computer Function

Chapter 3 - Top Level View of Computer Function Chapter 3 - Top Level View of Computer Function Luis Tarrataca luis.tarrataca@gmail.com CEFET-RJ L. Tarrataca Chapter 3 - Top Level View 1 / 127 Table of Contents I 1 Introduction 2 Computer Components

More information

4. MICROPROGRAMMED COMPUTERS

4. MICROPROGRAMMED COMPUTERS Structure of Computer Systems Laboratory No. 4 1 4. MICROPROGRAMMED COMPUTERS This laboratory work presents the principle of microprogrammed computers and an example of microprogrammed architecture, in

More information

CS 31: Intro to Systems Digital Logic

CS 31: Intro to Systems Digital Logic CS 3: Intro to Systems Digital Logic Martin Gagné Swarthmore College January 3, 27 You re going to want scratch papr today borrow some if needed. Quick nnouncements Late Policy Reminder 3 late days total

More information

Initial Representation Finite State Diagram. Logic Representation Logic Equations

Initial Representation Finite State Diagram. Logic Representation Logic Equations Control Implementation Alternatives Control may be designed using one of several initial representations. The choice of sequence control, and how logic is represented, can then be determined independently;

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor 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

More information

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital hardware modules that accomplish a specific information-processing task. Digital systems vary in

More information

Basic Computer Organization - Designing your first computer. Acknowledgment: Most of the slides are adapted from Prof. Hyunsoo Yoon s slides.

Basic Computer Organization - Designing your first computer. Acknowledgment: Most of the slides are adapted from Prof. Hyunsoo Yoon s slides. Basic Computer Organization - Designing your first computer Acknowledgment: Most of the slides are adapted from Prof. Hyunsoo Yoon s slides. 1 This week- BASIC COMPUTER ORGANIZATION AND DESIGN Instruction

More information

CENG 450: Instruction Set (16-bit)

CENG 450: Instruction Set (16-bit) CENG 450: Instruction Set (16-bit) In this lab, you will design and implement a pipelined 16-bit processor on FPGA. The instructions set of the processor is as follows: Instructions Set We use a RISC-like

More information

Basic Computer Organization and Design Part 2/3

Basic Computer Organization and Design Part 2/3 Basic Computer Organization and Design Part 2/3 Adapted by Dr. Adel Ammar Computer Organization Basic Computer Instructions Basic Computer Instruction Format Memory-Reference Instructions (OP-code = 000

More information

Chapter 5: Processor Design Advanced Topics. Microprogramming: Basic Idea

Chapter 5: Processor Design Advanced Topics. Microprogramming: Basic Idea 5-1 Chapter 5 Processor Desig Advaced Topics Chapter 5: Processor Desig Advaced Topics Topics 5.3 Microprogrammig Cotrol store ad microbrachig Horizotal ad vertical microprogrammig 5- Chapter 5 Processor

More information

CHAPTER 5 Basic Organization and Design Outline Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle

CHAPTER 5 Basic Organization and Design Outline Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle CS 224: Computer Organization S.KHABET CHAPTER 5 Basic Organization and Design Outline Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle Memory Reference Instructions

More information

CPE300: Digital System Architecture and Design

CPE300: Digital System Architecture and Design CPE300: Digital System Architecture and Design Fall 2011 MW 17:30-18:45 CBC C316 Number Representation 09212011 http://www.egr.unlv.edu/~b1morris/cpe300/ 2 Outline Recap Logic Circuits for Register Transfer

More information

Chapter 1: Basics of Microprocessor [08 M]

Chapter 1: Basics of Microprocessor [08 M] Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)

More information

Programming Level A.R. Hurson Department of Computer Science Missouri University of Science & Technology Rolla, Missouri

Programming Level A.R. Hurson Department of Computer Science Missouri University of Science & Technology Rolla, Missouri Programming Level A.R. Hurson Department of Computer Science Missouri University of Science & Technology Rolla, Missouri 65409 hurson@mst.edu A.R. Hurson 1 Programming Level Computer: A computer with a

More information

UNIT:2 BASIC COMPUTER ORGANIZATION AND DESIGN

UNIT:2 BASIC COMPUTER ORGANIZATION AND DESIGN 1 UNIT:2 BASIC COMPUTER ORGANIZATION AND DESIGN BASIC COMPUTER ORGANIZATION AND DESIGN 2.1 Instruction Codes 2.2 Computer Registers AC or Accumulator, Data Register or DR, the AR or Address Register, program

More information

REGISTER TRANSFER LANGUAGE

REGISTER TRANSFER LANGUAGE REGISTER TRANSFER LANGUAGE The operations executed on the data stored in the registers are called micro operations. Classifications of micro operations Register transfer micro operations Arithmetic micro

More information

Microprocessor Architecture

Microprocessor Architecture Microprocessor - 8085 Architecture 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration

More information

CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN

CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN CHAPTER SIX BASIC COMPUTER ORGANIZATION AND DESIGN 6.1. Instruction Codes The organization of a digital computer defined by: 1. The set of registers it contains and their function. 2. The set of instructions

More information

Computer Architecture and Organization: L06: Instruction Cycle

Computer Architecture and Organization: L06: Instruction Cycle Computer Architecture and Organization: L06: Instruction Cycle By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, ah.abdulhafez@gmail.com 1 Outlines 1. Fetch and decode 2. Determine the Type of Instruction

More information

The Big Picture: Where are We Now? EEM 486: Computer Architecture. Lecture 3. Designing a Single Cycle Datapath

The Big Picture: Where are We Now? EEM 486: Computer Architecture. Lecture 3. Designing a Single Cycle Datapath The Big Picture: Where are We Now? EEM 486: Computer Architecture Lecture 3 The Five Classic Components of a Computer Processor Input Control Memory Designing a Single Cycle path path Output Today s Topic:

More information

Blog -

Blog - . Instruction Codes Every different processor type has its own design (different registers, buses, microoperations, machine instructions, etc) Modern processor is a very complex device It contains Many

More information

Computer Architecture

Computer Architecture Computer Architecture Lecture 1: Digital logic circuits The digital computer is a digital system that performs various computational tasks. Digital computers use the binary number system, which has two

More information

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: 1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit

More information

Micro-Operations. execution of a sequence of steps, i.e., cycles

Micro-Operations. execution of a sequence of steps, i.e., cycles Micro-Operations Instruction execution execution of a sequence of steps, i.e., cycles Fetch, Indirect, Execute & Interrupt cycles Cycle - a sequence of micro-operations Micro-operations data transfer between

More information

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.

2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5. DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in

More information

Architecture Project Phase (1)

Architecture Project Phase (1) Objective Cairo University CMP 301B Faculty of Engineering Spring 2013 Computer Engineering Department Architecture Project Phase (1) In this phase, it is required to design and implement a simple pipelined

More information

Announcements. Microprogramming IA-32. Microprogramming Motivation. Microprogramming! Example IA-32 add Instruction Formats. Reading Assignment

Announcements. Microprogramming IA-32. Microprogramming Motivation. Microprogramming! Example IA-32 add Instruction Formats. Reading Assignment Announcements Microprogramming CS 333 Fall 2006 Reading Assignment Read Chapter 5, Section 5.4 end of chapter Lab 2 Postlab Homework clarifications 4.11, 4.12, 4.19 Microprogramming Motivation Control

More information

EE309: Computer Organization, Architecture and MicroProcessors. sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS

EE309: Computer Organization, Architecture and MicroProcessors.   sumantra/courses/up/up.html GND HIGH ORDER ADDRESS BUS CMP:8085 Primer-1 EE309: Computer Organization, rchitecture and MicroProcessors http://www.ee.iitb.ac.in/ sumantra/courses/up/up.html The 8085 Chip F LGS: S Z x x P x cy EXTERNLLY INITITED SIGNLS SERIL

More information

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks)

QUESTION BANK. EE 6502 / Microprocessor and Microcontroller. Unit I Processor. PART-A (2-Marks) QUESTION BANK EE 6502 / Microprocessor and Microcontroller Unit I- 8085 Processor PART-A (2-Marks) YEAR/SEM : III/V 1. What is meant by Level triggered interrupt? Which are the interrupts in 8085 level

More information

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT UNIT-III 1 KNREDDY UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT Register Transfer: Register Transfer Language Register Transfer Bus and Memory Transfers Arithmetic Micro operations Logic

More information

Part A Questions 1. What is an ISP? ISP stands for Instruction Set Processor. This unit is simply called as processor which executes machine instruction and coordinates the activities of other units..

More information

Architecture of 8085 microprocessor

Architecture of 8085 microprocessor Architecture of 8085 microprocessor 8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below Accumulator Arithmetic and logic Unit

More information

Unit II Basic Computer Organization

Unit II Basic Computer Organization 1. Define the term. Internal Organization-The internal organization of a digital system is defined by the sequence of microoperations it performs on data stored in its registers. Program- A program is

More information

CENG 3420 Computer Organization and Design. Lecture 06: MIPS Processor - I. Bei Yu

CENG 3420 Computer Organization and Design. Lecture 06: MIPS Processor - I. Bei Yu CENG 342 Computer Organization and Design Lecture 6: MIPS Processor - I Bei Yu CEG342 L6. Spring 26 The Processor: Datapath & Control q We're ready to look at an implementation of the MIPS q Simplified

More information

INPUT-OUTPUT ORGANIZATION

INPUT-OUTPUT ORGANIZATION 1 INPUT-OUTPUT ORGANIZATION Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes of Transfer Priority Interrupt Direct Memory Access Input-Output Processor Serial Communication 2

More information

Computer Organization

Computer Organization Computer Organization! Computer design as an application of digital logic design procedures! Computer = processing unit + memory system! Processing unit = control + datapath! Control = finite state machine

More information

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of

More information

The register set differs from one computer architecture to another. It is usually a combination of general-purpose and special purpose registers

The register set differs from one computer architecture to another. It is usually a combination of general-purpose and special purpose registers Part (6) CPU BASICS A typical CPU has three major components: 1- register set, 2- arithmetic logic unit (ALU), 3- control unit (CU). The figure below shows the internal structure of the CPU. The CPU fetches

More information

Computer Organization. Structure of a Computer. Registers. Register Transfer. Register Files. Memories

Computer Organization. Structure of a Computer. Registers. Register Transfer. Register Files. Memories Computer Organization Structure of a Computer Computer design as an application of digital logic design procedures Computer = processing unit + memory system Processing unit = control + Control = finite

More information

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University Chapter 3 Top Level View of Computer Function and Interconnection Contents Computer Components Computer Function Interconnection Structures Bus Interconnection PCI 3-2 Program Concept Computer components

More information

ECE410 Design Project Spring 2013 Design and Characterization of a CMOS 8-bit pipelined Microprocessor Data Path

ECE410 Design Project Spring 2013 Design and Characterization of a CMOS 8-bit pipelined Microprocessor Data Path ECE410 Design Project Spring 2013 Design and Characterization of a CMOS 8-bit pipelined Microprocessor Data Path Project Summary This project involves the schematic and layout design of an 8-bit microprocessor

More information

Advanced Computer Architecture-CS501. Vincent P. Heuring&Harry F. Jordan Chapter 2 Computer Systems Design and Architecture

Advanced Computer Architecture-CS501. Vincent P. Heuring&Harry F. Jordan Chapter 2 Computer Systems Design and Architecture Lecture Handout Computer Architecture Lecture No. 4 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 2 Computer Systems Design and Architecture 2.3, 2.4,slides Summary 1) Introduction to ISA

More information

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit Lecture1: introduction Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit 1 1. History overview Computer systems have conventionally

More information

Computer Hardware Engineering

Computer Hardware Engineering Computer Hardware Engineering IS2, spring 2 Lecture : LU and s ssociate Professor, KTH Royal itute of Technology ssistant Research Engineer, University of California, Berkeley Revision v., June 7, 2: Minor

More information

Ch 5: Designing a Single Cycle Datapath

Ch 5: Designing a Single Cycle Datapath Ch 5: esigning a Single Cycle path Computer Systems Architecture CS 365 The Big Picture: Where are We Now? The Five Classic Components of a Computer Processor Control Memory path Input Output Today s Topic:

More information

Chapter 4. Instruction Execution. Introduction. CPU Overview. Multiplexers. Chapter 4 The Processor 1. The Processor.

Chapter 4. Instruction Execution. Introduction. CPU Overview. Multiplexers. Chapter 4 The Processor 1. The Processor. COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 4 The Processor The Processor - Introduction

More information

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 4 The Processor Introduction CPU performance factors Instruction count Determined by ISA and compiler CPI and Cycle

More information

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor

COMPUTER ORGANIZATION AND DESIGN. 5 th Edition. The Hardware/Software Interface. Chapter 4. The Processor COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition Chapter 4 The Processor COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface 5 th Edition The Processor - Introduction

More information

Microcontroller Systems

Microcontroller Systems µcontroller systems 1 / 43 Microcontroller Systems Engineering Science 2nd year A2 Lectures Prof David Murray david.murray@eng.ox.ac.uk www.robots.ox.ac.uk/ dwm/courses/2co Michaelmas 2014 µcontroller

More information

Chapter 16. Control Unit Operation. Yonsei University

Chapter 16. Control Unit Operation. Yonsei University Chapter 16 Control Unit Operation Contents Micro-Operation Control of the Processor Hardwired Implementation 16-2 Micro-Operations Micro-Operations Micro refers to the fact that each step is very simple

More information

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem

More information

ECE 574: Modeling and Synthesis of Digital Systems using Verilog and VHDL. Fall 2017 Final Exam (6.00 to 8.30pm) Verilog SOLUTIONS

ECE 574: Modeling and Synthesis of Digital Systems using Verilog and VHDL. Fall 2017 Final Exam (6.00 to 8.30pm) Verilog SOLUTIONS ECE 574: Modeling and Synthesis of Digital Systems using Verilog and VHDL Fall 2017 Final Exam (6.00 to 8.30pm) Verilog SOLUTIONS Note: Closed book no notes or other material allowed apart from the one

More information

1. Internal Architecture of 8085 Microprocessor

1. Internal Architecture of 8085 Microprocessor Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.

More information

Chapter 5: The Processor: Datapath and Control

Chapter 5: The Processor: Datapath and Control Chapter 5: The Processor: Datapath and Control Overview Logic Design Conventions Building a Datapath and Control Unit Different Implementations of MIPS instruction set A simple implementation of a processor

More information

COMPUTER ORGANIZATION AND DESIGN

COMPUTER ORGANIZATION AND DESIGN COMPUTER ORGANIZATION AND DESIGN 5 Edition th The Hardware/Software Interface Chapter 4 The Processor 4.1 Introduction Introduction CPU performance factors Instruction count CPI and Cycle time Determined

More information

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics Chapter 4 Objectives Learn the components common to every modern computer system. Chapter 4 MARIE: An Introduction to a Simple Computer Be able to explain how each component contributes to program execution.

More information

RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization Feb 14, 2005

RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization Feb 14, 2005 General Project Description RISC Processor Simulator (SRC) INEL 4215: Computer Architecture and Organization Feb 14, 2005 In the textbook, Computer Systems Design and Architecture by Heuring, we have the

More information

INPUT-OUTPUT ORGANIZATION

INPUT-OUTPUT ORGANIZATION INPUT-OUTPUT ORGANIZATION Peripheral Devices: The Input / output organization of computer depends upon the size of computer and the peripherals connected to it. The I/O Subsystem of the computer, provides

More information

Chapter 17. Microprogrammed Control. Yonsei University

Chapter 17. Microprogrammed Control. Yonsei University Chapter 17 Microprogrammed Control Contents Basic Concepts Microinstruction Sequencing Microinstruction Execution TI 8800 Applications of Microprogramming 17-2 Introduction Basic Concepts An alternative

More information

Computer Logic II CCE 2010

Computer Logic II CCE 2010 Computer Logic II CCE 2010 Dr. Owen Casha Computer Logic II 1 The Processing Unit Computer Logic II 2 The Processing Unit In its simplest form, a computer has one unit that executes program instructions.

More information

RISC Processor Design

RISC Processor Design RISC Processor Design Single Cycle Implementation - MIPS Virendra Singh Indian Institute of Science Bangalore virendra@computer.org Lecture 13 SE-273: Processor Design Feb 07, 2011 SE-273@SERC 1 Courtesy:

More information

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015 Advanced Parallel Architecture Lesson 3 Annalisa Massini - Von Neumann Architecture 2 Two lessons Summary of the traditional computer architecture Von Neumann architecture http://williamstallings.com/coa/coa7e.html

More information

Chapter 6: Datapath and Control. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V.

Chapter 6: Datapath and Control. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. 6- Principles of Computer Architecture Miles Murdocca and Vincent Heuring 999 M. Murdocca and V. Heuring 6-2 Chapter Contents 6. Basics of the Microarchitecture 6.2 A Microarchitecture for the ARC 6.3

More information

Pin Description, Status & Control Signals of 8085 Microprocessor

Pin Description, Status & Control Signals of 8085 Microprocessor Pin Description, Status & Control Signals of 8085 Microprocessor 1 Intel 8085 CPU Block Diagram 2 The 8085 Block Diagram Registers hold temporary data. Instruction register (IR) holds the currently executing

More information