Verilog HDL:Digital Design and Modeling. Chapter 11. Additional Design Examples. Additional Figures

Size: px
Start display at page:

Download "Verilog HDL:Digital Design and Modeling. Chapter 11. Additional Design Examples. Additional Figures"

Transcription

1 Chapter Additional Design Examples Verilog HDL:Digital Design and Modeling Chapter Additional Design Examples Additional Figures

2 Chapter Additional Design Examples 2 Page 62 a b y y 2 y 3 c d e f Figure State diagram for a Johnson counter with a nonsequential counting sequence There are two unused states, y y 2 y 3 = and Page 63 y 2 y 3 y 3 2 y 2 y 3 y Dy Dy 2 y 2 y 3 y Dy 3 Figure 2 Input maps for the Johnson counter of Figure using D flip-flops The unused states are y y 2 y 3 = and

3 Chapter Additional Design Examples 3 Page 63 Dy = y 3 ' Dy 2 = y Dy 3 = y 2 () δ Y λ y y 3 +Clock D inst > +y y 2 +y D inst2 > +y 2 y 3 +y 2 D inst3 > +y 3 y3 Logic diagram for the Johnson counter of Figure using D flip- Figure 3 flops

4 Chapter Additional Design Examples 4 Page 67 +clk rst_n clk > CTR3 rst_n inst 2 ctr[2] ctr[] ctr[] inst2 shftr_clk > SRG3 rst_n inst3 2 +ctr[2] +ctr[] +ctr[] +shftr[2] +shftr[] +shftr[] +sngl_ shftr[] shftr[] shftr[2] +dbl_ inst4 inst5 net net2 serial_in inst6 Figure 8 Logic diagram for the counter-shifter

5 Chapter Additional Design Examples 5 Page 6 Table Functions for the Universal Shift Register Function Function Code Shift Amount (right/left) NOP (No operation) Shift right Shift left Load clk rst_n data_in [7:] fctn [:] shift_amt [:] Universal Shift Register q [7:] (a) data_in [7] data_in [] q [7] q [] (b) Figure 4 Universal shift register

6 Chapter Additional Design Examples 6 Page 68 Code word (n bits) Message word (m bits) m, m 2,, m m Parity check word (k bits) p, p 2,, p k Code word X = x, x 2,, x m, x m +,, x n Figure 8 Code word of n bits containing m message bits and k parity check bits Page 62 p, p 2, m 3, p 4, m 5, m 6, m 7, p 8, m 9, m, m, m 2 where m 3, m 5, m 6, m 7, m 9, m, m, m 2 are the message bits and p, p 2, p 4, p 8 are the parity check bits for groups E, E 2, E 4, E 8, respectively, as shown below Group E = p m 3 m 5 m 7 m 9 m Group E 2 = p 2 m 3 m 6 m 7 m m Group E 4 = p 4 m 5 m 6 m 7 m 2 Group E 8 = p 8 m 9 m m m 2

7 Chapter Additional Design Examples 7 Page 622 p p 2 m 3 p 4 m 5 m 6 m 7 Message to be sent Code word sent Code word received Group E = p m 3 m 5 m 7 = = Error = Group E 2 = p 2 m 3 m 6 m 7 = = No error = Group E 4 = p 4 m 5 m 6 m 7 = = Error = Groups E 4 E 2 E Syndrome word

8 Chapter Additional Design Examples 8 Page 623 Table 2 Examples of Single Error Correction and Double Error Detection Code Word Format Syndrome Code Word Parity p p 2 m 3 p 4 m 5 m 6 m 7 p cw E 4 E 2 E Single Error Double Error Sent Received Bad Yes No Sent Received Bad Yes No Sent Received Good No Yes Sent Received Good No Yes Sent Received Bad No No Data bus reg p +p +m 3 2k+ DX p +m 5 2 +m 7 m 3 +p 2 2 Data bus p +m 2k m 6 4 m +m p m m 2k m m 6 7 +m 7 Syndrome word +m 3 +m 5 +m 6 +m 7 Valid data Figure 2 Hamming code error detection and correction

9 Chapter Additional Design Examples 9 Page 625 m3 m5 m7 m9 m task pbit_generate task error_inject p mr3 mr5 mr7 mr9 mr define error bits e_err decoder DX 4:6 error correction logic m3 m6 m7 m m m5 m6 m7 m2 m9 m m m2 p2 mr3 mr6 mr7 mr mr p4 mr5 mr6 mr7 mr2 p8 mr9 mr mr mr2 e2_err e4_err e8_err mr3_err mr3 mr5_err mr5 mr6_err mr6 mr7_err mr7 mr9_err mr9 mr_err mr mr_err mr mr2_err mr2 mv3 mv5 mv6 mv7 mv9 mv mv mv2 e_err e2_err e4_err e8_err Figure 2 Logic diagram for the Hamming code error detection and correction circuit of Examlple 2

10 Chapter Additional Design Examples Page 626 Bit position = Data = m3 m5 m6 m7 m9 m m m2 p p2 p4 p8 The statement error_inject () passes the constant to the task as the bit_number Then the statement bit_position = ' b << bit_number shifts a bit eleven bit positions to the left to location m3 The message bit m3 is exclusive-ored with the bit as shown below, thereby inverting m3 The message containing the error is then passed back to the task invocation as the received message, which is then corrected by the error correction logic In a similar manner, errors are injected into message bits m7, m9, and m2 Data = m3 m5 m6 m7 m9 m m m2 p p2 p4 p8 XOR = Received m3 ' m5 m6 m7 m9 m m m2 p p2 p4 p8 message =

11 Chapter Additional Design Examples Page 63 i + k + i + k i + k i + i i Multiplier k consecutive s In the sequential add-shift method, the multiplicand would be added k times to the shifted partial product The number of additions can be reduced by the following property of binary strings: 2 i + k 2 i = 2 i + k + 2 i + k i i (2) The right-hand side of the equation is a binary string that can be replaced by the difference of two numbers on the left-hand side of the equation Thus, the k consecutive s can be replaced by the following string: i + k + i + k i + k i + i i Multiplier + k consecutive s Addition of the multiplicand Subtraction of the multiplicand

12 Chapter Additional Design Examples 2 Page i + k 2 i i 2 2 Multiplier +3 k = 4 The validity of Equation 2 can be verified using the multiplier of +3 shown above 2 i + k 2 i = 2 i + k = = = 3 Thus, the multiplier (+3) can be regarded as the difference of two numbers: 32 2, as shown below (32) ) (2) (3) The product can be generated by one subtraction in column 2 i and one addition in column 2 i + k, as shown below; that is, by adding 32 and subtracting 2 In this case, adding 2 5 times the multiplicand and subtracting 2 times the multiplicand yields the appropriate result Standard multiplier k = 4 Recoded multiplier + k =3

13 Chapter Additional Design Examples 3 Page 633 Table 3 Booth Multiplier Recoding Table Multiplier Bit i Bit i Version of Multiplicand multiplicand + multiplicand multiplicand multiplicand Standard sequential add-shift Multiplicand +53 Multiplier ) Page 634 Booth algorithm Multiplicand +53 Recoded multiplier ) + +59

14 Chapter Additional Design Examples 4 Page 634 Multiplicand +3 Multiplier ) 2 56 Booth algorithm Multiplicand +3 Recoded multiplier ) Page 634 Multiplicand +5 Multiplier ) Page 635 Booth algorithm Multiplicand +5 Recoded multiplier ) + +45

15 Chapter Additional Design Examples 5 Page 635 Multiplicand 9 Multiplier ) Booth algorithm Multiplicand 9 Recoded multiplier ) Page 635 Multiplicand 3 Multiplier ) 7 +9 Page 636 Booth algorithm Multiplicand 3 Recoded multiplier ) + +9

16 Chapter Additional Design Examples 6 Page 636 Multiplicand +9 Multiplier ) 29 Booth algorithm Multiplicand +9 Recoded multiplier ) Page 637 Multiplicand +7 Multiplier ) a_ext_neg a_ext_pos Booth algorithm Multiplicand +7 Recoded multiplier ) + + pp pp2 pp3 pp4 +35 a_neg

17 Chapter Additional Design Examples 7 Page 642 y y 2 y 3 a x x ' x b ' x ' c x x d z z t t 3 e z 2 z 2 t t Figure 29 State diagram for the Moore machine of Section 6 clk x set_n set2_n set3_n rst_n rst2_n rst3_n Moore structural synchronous sequential machine y[:3] y_n[:3] z z 2 Figure 3 Block diagram for the Moore machine of Section 6

18 Chapter Additional Design Examples 8 Page 643 set_n +clk y 2 +y 3 x y +y 2 +x rst_n inst inst2 net net2 inst3 net3 y S D inst4 > R +y y set2_n +y rst2_n inst5 inst6 net5 net6 inst7 net7 y 2 S D inst8 > R +y 2 y 2 set3_n rst3_n net9 inst9 net inst net inst y 3 S D inst2 > R +y 3 y 3 inst3 +z inst4 +z 2 Figure 3 Logic diagram for the Moore machine of Figure 29

19 Chapter Additional Design Examples 9 Page 65 a y y 2 x 2 x b x x 2 c x 2 x z Figure 36 State diagram for the Mealy pulse-mode machine of Section 7 Page 65 Latches Inputs x x 2 y y y 2 r r 2 3 R y y 2 r S 2 3 R y 2 y y 2 S s 2 3 S y y 2 r R 2 3 r Figure 37 Input maps for the Mealy pulse-mode machine of Figure 36

20 Chapter Additional Design Examples 2 Page 652 set_n +x +x 2 inst net +y 2 +y inst3 net3 inst2 inst4 net2 net4 Ly inst5 inst6 net5 net6 y S D inst7 > R inst +y +z x x 2 rst_n Ly 2 inst8 inst9 net8 net9 y 2 S D inst > R +y 2 Figure 39 Logic diagram for the Mealy pulse-mode machine of Figure 36

21 Chapter Additional Design Examples 2 Page 657 a x y y 2 y 3 x ' z b x ' x c x x ' z Figure 44 State diagram for the Mealy one-hot machine of Section 8

22 Chapter Additional Design Examples 22 Page 658 y 2 y 3 y x x ' Dy = y 3 x + y x ' Dy y 2 y 3 y 3 2 x' x Dy 2 = y x + y 2 x ' Dy 2 y 2 y 3 y x ' 3 2 x Dy 3 = y 2 x + y 3 x ' Dy 3 (a) y 2 y 3 y x x z = y 2 ' x z (b) Figure 45 Figure 44 (a) Input maps and (b) output map for the Mealy one-hot machine of

23 Chapter Additional Design Examples 23 Page 659 set_n_y +clk +y 3 +x +y x rst_n_y inst inst2 net net2 inst3 net3 y S D inst4 > R +y set_n_y y 2 +y 2 inst5 inst6 net5 net6 inst7 net7 y 2 S D inst8 > R +y 2 inst3 +z rst_n_y y 2 net9 inst9 net inst net inst y 3 S D inst2 > R +y 3 Figure 46 Logic diagram for the Mealy one-hot machine of Figure 44

24 Chapter Additional Design Examples 24 Page 665 a x y y 2 y 3 x ' z b x ' x c x x ' z Figure 5 State diagram for a Mealy one-hot sequential machine

25 Chapter Additional Design Examples 25 Page 67 Operand B Operand A Cout Decimal arithmetic element Cin Result Figure 56 Decimal arithmetic element Page ) ) 93 89

26 Chapter Additional Design Examples 26 Page ) 42 +) ) 87 +) (89)

27 Chapter Additional Design Examples 27 Page 674 Table 5 Nines Complementer Subtrahend 9s Complement b 3 b 2 b b f 3 f 2 f f m 9s complementer f [3:] b[3:] Figure 57 Block diagram for a 9s complementer

28 Chapter Additional Design Examples 28 Page 675 f = b m f = b f 2 = m' b 2 + m(b 2 b ) f 3 = m' b 3 + m b 3 ' b 2 ' b ' (6) +b[] +m +b[] inst +f[] +f[] m +b[2] inst2 net2 inst3 net3 inst4 net4 inst5 +f[2] +b[3] b[3] b[2] inst6 inst7 net6 net7 inst8 +f[3] b[] Figure 58 Logic diagram for a 9s complementer

29 Chapter Additional Design Examples 29 Page 68 m a[] a[] a[2] a[3] b[] b[] b[2] b[3] 9s f[] f[] f[2] f[3] inst Adder cin A inst2 2 B 3 cout sum[] sum[] sum[2] sum[3] cout3 Adder cin A inst6 2 3 B cout bcd[] bcd[] bcd[2] bcd[3] inst3 inst4 net3 net4 aux_cy inst5 a[4] a[5] a[6] a[7] b[4] b[5] b[6] b[7] 9s f[4] f[5] f[6] f[7] inst7 Adder cin A inst8 2 B 3 cout sum[4] sum[5] sum[6] sum[7] cout7 Adder cin A inst2 2 3 B cout bcd[4] bcd[5] bcd[6] bcd[7] net9 inst9 inst net inst cout Figure 62 Logic diagram for a BCD adder/subtractor

30 Chapter Additional Design Examples 3 Page 686 Memory data bus A full B full Ibufr A 3 2 Ibufr B 3 2 IPC IPC IPC 2 S S Mux array IR Opcode 3 2 Figure 67 Instruction buffer for 2- and 4-byte instructions

31 Chapter Additional Design Examples 3 Page 687 Ifetch Decode Execute Store Ifetch Decode Execute Store Ifetch Decode Execute Store Ifetch Decode Execute Store Ifetch Decode Execute Store Ifetch Decode Execute Store Ifetch Decode Execute Store Ifetch Decode Execute Store One clock cycle Figure 68 Example of a 4-stage pipeline Iunit Decode Eunit Store Interstage buffers Figure 69 Four stages of a pipeline showing the interstage storage buffers

32 Chapter Additional Design Examples 32 Page 689 Op Code Opnd A Opnd B Dst nnnn RRR RRR RRR where RRR specifies one of eight registers ( 7) for opnd A, opnd B, and Dst Op Code Opnd A Dst (Load) Memory address RRR Op Code Opnd A Dst (Store) RRR Memory address Figure 7 Instruction format for the pipelined RISC processor

33 Chapter Additional Design Examples 33 Page 69 icache iunit decode eunit dcache clk rst_n eu_dcenbl instruction iu_instr eu_rdwr ir decoder ctrl 3 > 3 eu_reg_wr_vld opcode opcode iu_pc du_opcode opcode_out > pc 5 > eu_load_op 4 > + dcaddr dcaddr du_addrin eu_dcaddr > 4 > 4 opnda > 3 opndb du_opndb_addr > du_opnda_addr mux a 3 > alu rslt mux b eu_result 8 dst du_dstin dst eu_dst 3 > 3 > 3 5 dc_dataout clk rst_n regfile regfile:7_out Figure 7 Architecture for the pipelined RISC processor of Section

34 Chapter Additional Design Examples 34 Page 69 risc structural system_top structural risc_cpu_top risc risc risc risc risc risc icache icache_tb iunit iunit_tb decode decode_tb eunit eunit_tb regfile regfile_tb dcache dcache_tb clk rst_n instruction iu_pc structural risc_cpu_top risc risc risc risc iunit iunit_tb decode decode_tb eunit eunit_tb regfile regfile_tb eu_dcenbl eu_dcaddr eu_result eu_rdwr dc_dataout risc structural system_top_tb risc structural system_top clk rst_n risc icache structural risc_cpu_top risc dcache Figure 72 Structural block diagram for the pipelined RISC processor of Section

35 Chapter Additional Design Examples 35 Page 692 Table 7 Instruction Cache Contents Address Operation Op Code Opnd A Opnd B Dst LD Not used LD Not used LD Not used LD Not used LD Not used LD Not used LD Not used LD Not used ADD SUB AND OR XOR INC DEC NOT NEG SHR SHL ROR ROL ST Not used ST Not used ST Not used ST Not used ST Not used ST Not used ST Not used ST Not used NOP NOP NOP

36 Chapter Additional Design Examples 36 Page 693 Table 8 Data Cache Contents SRC DST Address Data Table 9 Register File Contents before Execution Table Register File Contents after Execution Address Data Address Data

37 Chapter Additional Design Examples 37 Page 694 instruction 3 instruction (To iunit) pc 5 risc_pc (From iunit) 3 Figure 73 Instruction cache for the pipelined RISC processor

38 Chapter Additional Design Examples 38 Page 695 clk clk rst_n rst_n instruction ir instruction 3 (From icache) > ir 3 iu_instr (To decode) pc iu_pc (To icache) 5 > pc + Figure 74 Instruction unit for the pipelined RISC processor

39 Chapter Additional Design Examples 39 Page 696 clk rst_n iu_instr 3 (From iunit) instr decoder opcode > opcode dcaddr 4 du_opcode (To eunit) > dcaddr 4 du_dcaddr (To eunit) opnda > opnda 3 du_opnda_addr (To eunit) opndb > opndb 3 du_opndb_addr (To eunit) dst > dst 3 du_dst(to eunit) Figure 75 Decode unit for the pipelined RISC processor

40 Chapter Additional Design Examples 4 Page 697 dcenbl rdwr reg_wr_vld clk rst_n du_opcode (From decode) (From decode) du_addrin regfile:7_out 8 (From regfile) du_opnda_addr 3 (From decode) opndb_addr du_opndb_addr 3 (From decode) dstin du_dstin (From decode) 4 4 (8 ports) regfile:7 opnda_addr 3 mux a alu > rslt > dst mux b (To dcache:2 ports) eu_dcenbl ctrl eu_rdwr eu_reg_wr_vld opcode opcode_out (To regfile) load_op > opcode eu_load_op (To regfile) dcaddrin dcaddr > dcaddr 4 eu_dcaddr (To dcache) rslt 8 eu_result (To regfile) dst (To dcache) 3 eu_dst (To regfile) Figure 76 Execution unit for the pipelined RISC processor

41 Chapter Additional Design Examples 4 Page 698 clk rst_n (From eunit) eu_reg_wr_vld eu_load_op (From eunit) eu_dst 3 (From eunit) reg_wr_vld load_op dst eu_rslt (From eunit) 8 rslt regfile:7 8 regfile:7_out (8 ports: To eunit) dcdataout 8 (From dcache) dcdataout 7 Figure 77 Register file for the pipelined RISC processor

42 Chapter Additional Design Examples 42 Page 699 (From eunit) risc_dcenbl risc_rdwr (From eunit) risc_dcaddr 4 (From eunit) dcenbl rdwr dcaddr risc_rslt 8 (From eunit) dcdatain dc_dataout (To regfile) 8 dcdataout 5 Figure 78 Data cache for the pipelined RISC processor

43 Chapter Additional Design Examples 43 Page 75 Table Instructions for the Execution Unit Instruction Function nop No operation is performed add Operand A plus operand B sub Operand A minus operand B and Operand A AND operand B or Operand A OR operand B xor Operand A exclusive-or operand B inc Increment operand A by dec Decrement operand A by not Form the s complement of operand A neg Form the 2s complement of operand A shr Shift right logical operand A shl Shift left logical operand A ror Rotate right operand A rol Rotate left operand A ld Load register file from memory st Store register file to memory

44 Chapter Additional Design Examples 44 Page 76 opnda_addr regfile[] regfile7[] opnda_addr regfile[7] regfile7[7] muxa[] s s s 2 d d 7 muxa[7] s s s 2 d d 7 oprnd_a[] reg [7:] oprnd_a oprnd_a[7] opndb_addr regfile[] regfile7[] opndb_addr regfile[7] regfile7[7] muxb[] s s s 2 d d 7 muxb[7] s s s 2 d d 7 oprnd_b[] reg [7:] oprnd_b oprnd_b[7] Figure 93 Multiplexer array input to the execution unit ALU

45 Chapter Additional Design Examples 45 Page 728 +clk +dst[] +dst[] +dst[2] +reg_wr_vld +load_op +rslt[7:] +dcdataout[7:] rst_n regfile_sel DX 3: Enbl 7 reg_mux_sel MUX s d d reg_data_in[7:] regfile_enbl regfile En > Rst d d d 2 d 3 d 4 d 5 d 6 d 7 regfile7 En > Rst d d d 2 d 3 d 4 d 5 d 6 d 7 Figure 98 Register file and the associated control logic

46 Chapter Additional Design Examples 46 Page 739 clk rst_n instruction iu_pc structural risc_cpu_top risc risc risc risc iunit iunit_tb decode decode_tb eunit eunit_tb regfile regfile_tb eu_dcenbl eu_dcaddr eu_result eu_rdwr dc_dataout Figure 7 Structural organization of the RISC CPU top level Page 742 structural system_top_tb risc structural system_top clk rst_n risc icache structural risc_cpu_top risc dcache Figure 9 Structural organization

UNIVERSITY OF WISCONSIN MADISON

UNIVERSITY OF WISCONSIN MADISON CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON Prof. Gurindar Sohi TAs: Minsub Shin, Lisa Ossian, Sujith Surendran Midterm Examination 2 In Class (50 minutes) Friday,

More information

CprE 281: Digital Logic

CprE 281: Digital Logic CprE 28: Digital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Simple Processor CprE 28: Digital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev Digital

More information

Design of Sequential Circuits

Design of Sequential Circuits Design of Sequential Circuits Seven Steps: Construct a state diagram (showing contents of flip flop and inputs with next state) Assign letter variables to each flip flop and each input and output variable

More information

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control Logic and Computer Design Fundamentals Chapter 8 Sequencing and Control Datapath and Control Datapath - performs data transfer and processing operations Control Unit - Determines enabling and sequencing

More information

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements CSE4: Components and Design Techniques for Digital Systems Adders, subtractors comparators, multipliers and other ALU elements Adders 2 Circuit Delay Transistors have instrinsic resistance and capacitance

More information

Fundamentals of Digital Design

Fundamentals of Digital Design Fundamentals of Digital Design Digital Radiation Measurement and Spectroscopy NE/RHP 537 1 Binary Number System The binary numeral system, or base-2 number system, is a numeral system that represents numeric

More information

Adders, subtractors comparators, multipliers and other ALU elements

Adders, subtractors comparators, multipliers and other ALU elements CSE4: Components and Design Techniques for Digital Systems Adders, subtractors comparators, multipliers and other ALU elements Instructor: Mohsen Imani UC San Diego Slides from: Prof.Tajana Simunic Rosing

More information

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary EECS50 - Digital Design Lecture - Shifters & Counters February 24, 2003 John Wawrzynek Spring 2005 EECS50 - Lec-counters Page Register Summary All registers (this semester) based on Flip-flops: q 3 q 2

More information

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing IT 204 Section 3.0 Boolean Algebra and Digital Logic Boolean Algebra 2 Logic Equations to Truth Tables X = A. B + A. B + AB A B X 0 0 0 0 3 Sum of Products The OR operation performed on the products of

More information

EC 413 Computer Organization

EC 413 Computer Organization EC 413 Computer Organization rithmetic Logic Unit (LU) and Register File Prof. Michel. Kinsy Computing: Computer Organization The DN of Modern Computing Computer CPU Memory System LU Register File Disks

More information

Processor Design & ALU Design

Processor Design & ALU Design 3/8/2 Processor Design A. Sahu CSE, IIT Guwahati Please be updated with http://jatinga.iitg.ernet.in/~asahu/c22/ Outline Components of CPU Register, Multiplexor, Decoder, / Adder, substractor, Varity of

More information

Counters. We ll look at different kinds of counters and discuss how to build them

Counters. We ll look at different kinds of counters and discuss how to build them Counters We ll look at different kinds of counters and discuss how to build them These are not only examples of sequential analysis and design, but also real devices used in larger circuits 1 Introducing

More information

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3 Digital Logic: Boolean Algebra and Gates Textbook Chapter 3 Basic Logic Gates XOR CMPE12 Summer 2009 02-2 Truth Table The most basic representation of a logic function Lists the output for all possible

More information

ELEN Electronique numérique

ELEN Electronique numérique ELEN0040 - Electronique numérique Patricia ROUSSEAUX Année académique 2014-2015 CHAPITRE 3 Combinational Logic Circuits ELEN0040 3-4 1 Combinational Functional Blocks 1.1 Rudimentary Functions 1.2 Functions

More information

Design at the Register Transfer Level

Design at the Register Transfer Level Week-7 Design at the Register Transfer Level Algorithmic State Machines Algorithmic State Machine (ASM) q Our design methodologies do not scale well to real-world problems. q 232 - Logic Design / Algorithmic

More information

Lecture: Pipelining Basics

Lecture: Pipelining Basics Lecture: Pipelining Basics Topics: Performance equations wrap-up, Basic pipelining implementation Video 1: What is pipelining? Video 2: Clocks and latches Video 3: An example 5-stage pipeline Video 4:

More information

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU 534 007 DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING DIGITAL

More information

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute DIGITAL TECHNICS Dr. Bálint Pődör Óbuda University, Microelectronics and Technology Institute 4. LECTURE: COMBINATIONAL LOGIC DESIGN: ARITHMETICS (THROUGH EXAMPLES) 2016/2017 COMBINATIONAL LOGIC DESIGN:

More information

CMP 334: Seventh Class

CMP 334: Seventh Class CMP 334: Seventh Class Performance HW 5 solution Averages and weighted averages (review) Amdahl's law Ripple-carry adder circuits Binary addition Half-adder circuits Full-adder circuits Subtraction, negative

More information

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department Page 1 of 13 COE 202: Digital Logic Design (3-0-3) Term 112 (Spring 2012) Final

More information

The Design Procedure. Output Equation Determination - Derive output equations from the state table

The Design Procedure. Output Equation Determination - Derive output equations from the state table The Design Procedure Specification Formulation - Obtain a state diagram or state table State Assignment - Assign binary codes to the states Flip-Flop Input Equation Determination - Select flipflop types

More information

System Data Bus (8-bit) Data Buffer. Internal Data Bus (8-bit) 8-bit register (R) 3-bit address 16-bit register pair (P) 2-bit address

System Data Bus (8-bit) Data Buffer. Internal Data Bus (8-bit) 8-bit register (R) 3-bit address 16-bit register pair (P) 2-bit address Intel 8080 CPU block diagram 8 System Data Bus (8-bit) Data Buffer Registry Array B 8 C Internal Data Bus (8-bit) F D E H L ALU SP A PC Address Buffer 16 System Address Bus (16-bit) Internal register addressing:

More information

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables UNIT 8 Computer Circuitry: Layers of bstraction 1 oolean Logic & Truth Tables Computer circuitry works based on oolean logic: operations on true (1) and false (0) values. ( ND ) (Ruby: && ) 0 0 0 0 0 1

More information

CMPEN 411 VLSI Digital Circuits Spring Lecture 19: Adder Design

CMPEN 411 VLSI Digital Circuits Spring Lecture 19: Adder Design CMPEN 411 VLSI Digital Circuits Spring 2011 Lecture 19: Adder Design [Adapted from Rabaey s Digital Integrated Circuits, Second Edition, 2003 J. Rabaey, A. Chandrakasan, B. Nikolic] Sp11 CMPEN 411 L19

More information

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic.

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic. Digital Integrated Circuits A Design Perspective Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic Arithmetic Circuits January, 2003 1 A Generic Digital Processor MEMORY INPUT-OUTPUT CONTROL DATAPATH

More information

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value EGC22 Digital Logic Fundamental Additional Practice Problems. Complete the following table of equivalent values. Binary. Octal 35.77 33.23.875 29.99 27 9 64 Hexadecimal B.3 D.FD B.4C 2. Calculate the following

More information

ECE 3401 Lecture 23. Pipeline Design. State Table for 2-Cycle Instructions. Control Unit. ISA: Instruction Specifications (for reference)

ECE 3401 Lecture 23. Pipeline Design. State Table for 2-Cycle Instructions. Control Unit. ISA: Instruction Specifications (for reference) ECE 3401 Lecture 23 Pipeline Design Control State Register Combinational Control Logic New/ Modified Control Word ISA: Instruction Specifications (for reference) P C P C + 1 I N F I R M [ P C ] E X 0 PC

More information

ALU A functional unit

ALU A functional unit ALU A functional unit that performs arithmetic operations such as ADD, SUB, MPY logical operations such as AND, OR, XOR, NOT on given data types: 8-,16-,32-, or 64-bit values A n-1 A n-2... A 1 A 0 B n-1

More information

ECE 341. Lecture # 3

ECE 341. Lecture # 3 ECE 341 Lecture # 3 Instructor: Zeshan Chishti zeshan@ece.pdx.edu October 7, 2013 Portland State University Lecture Topics Counters Finite State Machines Decoders Multiplexers Reference: Appendix A of

More information

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap

EECS150 - Digital Design Lecture 25 Shifters and Counters. Recap EECS150 - Digital Design Lecture 25 Shifters and Counters Nov. 21, 2013 Prof. Ronald Fearing Electrical Engineering and Computer Sciences University of California, Berkeley (slides courtesy of Prof. John

More information

Chapter 7. Sequential Circuits Registers, Counters, RAM

Chapter 7. Sequential Circuits Registers, Counters, RAM Chapter 7. Sequential Circuits Registers, Counters, RAM Register - a group of binary storage elements suitable for holding binary info A group of FFs constitutes a register Commonly used as temporary storage

More information

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic.

Digital Integrated Circuits A Design Perspective. Arithmetic Circuits. Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic. Digital Integrated Circuits A Design Perspective Jan M. Rabaey Anantha Chandrakasan Borivoje Nikolic Arithmetic Circuits January, 2003 1 A Generic Digital Processor MEM ORY INPUT-OUTPUT CONTROL DATAPATH

More information

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs Appendix B Review of Digital Logic Baback Izadi Division of Engineering Programs bai@engr.newpaltz.edu Elect. & Comp. Eng. 2 DeMorgan Symbols NAND (A.B) = A +B NOR (A+B) = A.B AND A.B = A.B = (A +B ) OR

More information

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4 Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4 4.1.1 Signal... 4 4.1.2 Comparison of Analog and Digital Signal... 7 4.2 Number Systems... 7 4.2.1 Decimal Number System... 7 4.2.2 Binary

More information

Review for Final Exam

Review for Final Exam CSE140: Components and Design Techniques for Digital Systems Review for Final Exam Mohsen Imani CAPE Please submit your evaluations!!!! RTL design Use the RTL design process to design a system that has

More information

Spiral 2-1. Datapath Components: Counters Adders Design Example: Crosswalk Controller

Spiral 2-1. Datapath Components: Counters Adders Design Example: Crosswalk Controller 2-. piral 2- Datapath Components: Counters s Design Example: Crosswalk Controller 2-.2 piral Content Mapping piral Theory Combinational Design equential Design ystem Level Design Implementation and Tools

More information

Basic Computer Organization and Design Part 3/3

Basic Computer Organization and Design Part 3/3 Basic Computer Organization and Design Part 3/3 Adapted by Dr. Adel Ammar Computer Organization Interrupt Initiated Input/Output Open communication only when some data has to be passed --> interrupt. The

More information

Digital Electronics Circuits 2017

Digital Electronics Circuits 2017 JSS SCIENCE AND TECHNOLOGY UNIVERSITY Digital Electronics Circuits (EC37L) Lab in-charge: Dr. Shankraiah Course outcomes: After the completion of laboratory the student will be able to, 1. Simplify, design

More information

CPS 104 Computer Organization and Programming Lecture 11: Gates, Buses, Latches. Robert Wagner

CPS 104 Computer Organization and Programming Lecture 11: Gates, Buses, Latches. Robert Wagner CPS 4 Computer Organization and Programming Lecture : Gates, Buses, Latches. Robert Wagner CPS4 GBL. RW Fall 2 Overview of Today s Lecture: The MIPS ALU Shifter The Tristate driver Bus Interconnections

More information

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department Page of COE 22: Digital Logic Design (3--3) Term (Fall 22) Final Exam Sunday January

More information

CPU DESIGN The Single-Cycle Implementation

CPU DESIGN The Single-Cycle Implementation CSE 202 Computer Organization CPU DESIGN The Single-Cycle Implementation Shakil M. Khan (adapted from Prof. H. Roumani) Dept of CS & Eng, York University Sequential vs. Combinational Circuits Digital circuits

More information

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010 EE 224: INTROUCTION TO IGITAL CIRCUITS & COMPUTER ESIGN Lecture 6: Sequential Logic 3 Registers & Counters 05/10/2010 Avinash Kodi, kodi@ohio.edu Introduction 2 A Flip-Flop stores one bit of information

More information

EECS150 - Digital Design Lecture 24 - Arithmetic Blocks, Part 2 + Shifters

EECS150 - Digital Design Lecture 24 - Arithmetic Blocks, Part 2 + Shifters EECS150 - Digital Design Lecture 24 - Arithmetic Blocks, Part 2 + Shifters April 15, 2010 John Wawrzynek 1 Multiplication a 3 a 2 a 1 a 0 Multiplicand b 3 b 2 b 1 b 0 Multiplier X a 3 b 0 a 2 b 0 a 1 b

More information

Practice Homework Solution for Module 4

Practice Homework Solution for Module 4 Practice Homework Solution for Module 4 1. Tired of writing the names of those you want kicked off the island on cards, you wish to modernize the voting scheme used on Digital Survivor. Specifically, you

More information

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem   ahmadsm AT kfupm Phone: Office: COE 202: Digital Logic Design Sequential Circuits Part 4 Dr. Ahmad Almulhem Email: ahmadsm AT kfupm Phone: 860-7554 Office: 22-324 Objectives Registers Counters Registers 0 1 n-1 A register is a group

More information

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

LOGIC CIRCUITS. Basic Experiment and Design of Electronics Basic Experiment and Design of Electronics LOGIC CIRCUITS Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Outline Combinational logic circuits Output

More information

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007

EECS Components and Design Techniques for Digital Systems. FSMs 9/11/2007 EECS 150 - Components and Design Techniques for Digital Systems FSMs 9/11/2007 Sarah Bird Electrical Engineering and Computer Sciences University of California, Berkeley Slides borrowed from David Culler

More information

Computer Engineering Department. CC 311- Computer Architecture. Chapter 4. The Processor: Datapath and Control. Single Cycle

Computer Engineering Department. CC 311- Computer Architecture. Chapter 4. The Processor: Datapath and Control. Single Cycle Computer Engineering Department CC 311- Computer Architecture Chapter 4 The Processor: Datapath and Control Single Cycle Introduction The 5 classic components of a computer Processor Input Control Memory

More information

Project Two RISC Processor Implementation ECE 485

Project Two RISC Processor Implementation ECE 485 Project Two RISC Processor Implementation ECE 485 Chenqi Bao Peter Chinetti November 6, 2013 Instructor: Professor Borkar 1 Statement of Problem This project requires the design and test of a RISC processor

More information

Lecture 10: Synchronous Sequential Circuits Design

Lecture 10: Synchronous Sequential Circuits Design Lecture 0: Synchronous Sequential Circuits Design. General Form Input Combinational Flip-flops Combinational Output Circuit Circuit Clock.. Moore type has outputs dependent only on the state, e.g. ripple

More information

Enrico Nardelli Logic Circuits and Computer Architecture

Enrico Nardelli Logic Circuits and Computer Architecture Enrico Nardelli Logic Circuits and Computer Architecture Appendix B The design of VS0: a very simple CPU Rev. 1.4 (2009-10) by Enrico Nardelli B - 1 Instruction set Just 4 instructions LOAD M - Copy into

More information

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing CSE4: Components and Design Techniques for Digital Systems Decoders, adders, comparators, multipliers and other ALU elements Tajana Simunic Rosing Mux, Demux Encoder, Decoder 2 Transmission Gate: Mux/Tristate

More information

EECS150 - Digital Design Lecture 16 Counters. Announcements

EECS150 - Digital Design Lecture 16 Counters. Announcements EECS150 - Digital Design Lecture 16 Counters October 20, 2011 Elad Alon Electrical Engineering and Computer Sciences University of California, Berkeley http://www-inst.eecs.berkeley.edu/~cs150 Fall 2011

More information

ECE/CS 250 Computer Architecture

ECE/CS 250 Computer Architecture ECE/CS 250 Computer Architecture Basics of Logic Design: Boolean Algebra, Logic Gates (Combinational Logic) Tyler Bletsch Duke University Slides are derived from work by Daniel J. Sorin (Duke), Alvy Lebeck

More information

Philadelphia University Student Name: Student Number:

Philadelphia University Student Name: Student Number: Philadelphia University Student Name: Student Number: Faculty of Engineering Serial Number: Final Exam, Second Semester: 2015/2016 Dept. of Computer Engineering Course Title: Logic Circuits Date: 08/06/2016

More information

Load. Load. Load 1 0 MUX B. MB select. Bus A. A B n H select S 2:0 C S. G select 4 V C N Z. unit (ALU) G. Zero Detect.

Load. Load. Load 1 0 MUX B. MB select. Bus A. A B n H select S 2:0 C S. G select 4 V C N Z. unit (ALU) G. Zero Detect. 9- Write D data Load eable A address A select B address B select Load R 2 2 Load Load R R2 UX 2 3 UX 2 3 2 3 Decoder D address 2 Costat i Destiatio select 28 Pearso Educatio, Ic.. orris ao & Charles R.

More information

UNIVERSITI TENAGA NASIONAL. College of Information Technology

UNIVERSITI TENAGA NASIONAL. College of Information Technology UNIVERSITI TENAGA NASIONAL College of Information Technology BACHELOR OF COMPUTER SCIENCE (HONS.) FINAL EXAMINATION SEMESTER 2 2012/2013 DIGITAL SYSTEMS DESIGN (CSNB163) January 2013 Time allowed: 3 hours

More information

CPE100: Digital Logic Design I

CPE100: Digital Logic Design I Professor Brendan Morris, SEB 3216, brendan.morris@unlv.edu CPE100: Digital Logic Design I Final Review http://www.ee.unlv.edu/~b1morris/cpe100/ 2 Logistics Tuesday Dec 12 th 13:00-15:00 (1-3pm) 2 hour

More information

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates ECE 250 / CPS 250 Computer Architecture Basics of Logic Design Boolean Algebra, Logic Gates Benjamin Lee Slides based on those from Andrew Hilton (Duke), Alvy Lebeck (Duke) Benjamin Lee (Duke), and Amir

More information

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters EECS150 - Digital Design Lecture 18 - Counters October 24, 2002 John Wawrzynek Fall 2002 EECS150 - Lec18-counters Page 1 Counters Special sequential circuits (FSMs) that sequence though a set outputs.

More information

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters EECS50 - Digital Design Lecture 8 - Counters October 24, 2002 John Wawrzynek Fall 2002 EECS50 - Lec8-counters Page Counters Special sequential circuits (FSMs) that sequence though a set outputs. Examples:

More information

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017 UNIVERSITY OF BOLTON TW35 SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER 2-2016/2017 INTERMEDIATE DIGITAL ELECTRONICS AND COMMUNICATIONS MODULE NO: EEE5002

More information

EE 209 Logic Cumulative Exam Name:

EE 209 Logic Cumulative Exam Name: EE 209 Logic Cumulative Exam Name: 1.) Answer the following questions as True or False a.) A 4-to-1 multiplexer requires at least 4 select lines: true / false b.) An 8-to-1 mux and no other logi can be

More information

CMPEN 411 VLSI Digital Circuits Spring Lecture 21: Shifters, Decoders, Muxes

CMPEN 411 VLSI Digital Circuits Spring Lecture 21: Shifters, Decoders, Muxes CMPEN 411 VLSI Digital Circuits Spring 2011 Lecture 21: Shifters, Decoders, Muxes [Adapted from Rabaey s Digital Integrated Circuits, Second Edition, 2003 J. Rabaey, A. Chandrakasan, B. Nikolic] Sp11 CMPEN

More information

Carry Look Ahead Adders

Carry Look Ahead Adders Carry Look Ahead Adders Lesson Objectives: The objectives of this lesson are to learn about: 1. Carry Look Ahead Adder circuit. 2. Binary Parallel Adder/Subtractor circuit. 3. BCD adder circuit. 4. Binary

More information

課程名稱 : 數位邏輯設計 P-1/ /6/11

課程名稱 : 數位邏輯設計 P-1/ /6/11 課程名稱 : 數位邏輯設計 P-1/55 2012/6/11 Textbook: Digital Design, 4 th. Edition M. Morris Mano and Michael D. Ciletti Prentice-Hall, Inc. 教師 : 蘇慶龍 INSTRUCTOR : CHING-LUNG SU E-mail: kevinsu@yuntech.edu.tw Chapter

More information

Implementing the Controller. Harvard-Style Datapath for DLX

Implementing the Controller. Harvard-Style Datapath for DLX 6.823, L6--1 Implementing the Controller Laboratory for Computer Science M.I.T. http://www.csg.lcs.mit.edu/6.823 6.823, L6--2 Harvard-Style Datapath for DLX Src1 ( j / ~j ) Src2 ( R / RInd) RegWrite MemWrite

More information

CMP 338: Third Class

CMP 338: Third Class CMP 338: Third Class HW 2 solution Conversion between bases The TINY processor Abstraction and separation of concerns Circuit design big picture Moore s law and chip fabrication cost Performance What does

More information

Microprocessor Power Analysis by Labeled Simulation

Microprocessor Power Analysis by Labeled Simulation Microprocessor Power Analysis by Labeled Simulation Cheng-Ta Hsieh, Kevin Chen and Massoud Pedram University of Southern California Dept. of EE-Systems Los Angeles CA 989 Outline! Introduction! Problem

More information

Models for representing sequential circuits

Models for representing sequential circuits Sequential Circuits Models for representing sequential circuits Finite-state machines (Moore and Mealy) Representation of memory (states) Changes in state (transitions) Design procedure State diagrams

More information

Arithme(c logic units and memory

Arithme(c logic units and memory Arithme(c logic units and memory CSCI 255: Introduc/on to Embedded Systems Keith Vertanen Copyright 2011 Layers of abstrac-on abstrac(on building blocks examples computer components Macbook Pro components

More information

7 Multipliers and their VHDL representation

7 Multipliers and their VHDL representation 7 Multipliers and their VHDL representation 7.1 Introduction to arithmetic algorithms If a is a number, then a vector of digits A n 1:0 = [a n 1... a 1 a 0 ] is a numeral representing the number in the

More information

CHAPTER log 2 64 = 6 lines/mux or decoder 9-2.* C = C 8 V = C 8 C * 9-4.* (Errata: Delete 1 after problem number) 9-5.

CHAPTER log 2 64 = 6 lines/mux or decoder 9-2.* C = C 8 V = C 8 C * 9-4.* (Errata: Delete 1 after problem number) 9-5. CHPTER 9 2008 Pearson Education, Inc. 9-. log 2 64 = 6 lines/mux or decoder 9-2.* C = C 8 V = C 8 C 7 Z = F 7 + F 6 + F 5 + F 4 + F 3 + F 2 + F + F 0 N = F 7 9-3.* = S + S = S + S S S S0 C in C 0 dder

More information

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters) EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters) March 19&21, 2002 John Wawrzynek Spring 2002 EECS150 - Lec13-seq3 version 2 Page 1 Counters Special sequential circuits (FSMs) that

More information

Logic Design II (17.342) Spring Lecture Outline

Logic Design II (17.342) Spring Lecture Outline Logic Design II (17.342) Spring 2012 Lecture Outline Class # 10 April 12, 2012 Dohn Bowden 1 Today s Lecture First half of the class Circuits for Arithmetic Operations Chapter 18 Should finish at least

More information

NCU EE -- DSP VLSI Design. Tsung-Han Tsai 1

NCU EE -- DSP VLSI Design. Tsung-Han Tsai 1 NCU EE -- DSP VLSI Design. Tsung-Han Tsai 1 Multi-processor vs. Multi-computer architecture µp vs. DSP RISC vs. DSP RISC Reduced-instruction-set Register-to-register operation Higher throughput by using

More information

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D. Basic Experiment and Design of Electronics LOGIC CIRCUITS Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University Digital IC packages TTL (transistor-transistor

More information

CHW 261: Logic Design

CHW 261: Logic Design CHW 26: Logic Design Instructors: Prof. Hala Zayed Dr. Ahmed Shalaby http://www.bu.edu.eg/staff/halazayed4 http://bu.edu.eg/staff/ahmedshalaby4# Slide Digital Fundamentals Digital Concepts Slide 2 What?

More information

Menu. Excitation Tables (Bonus Slide) EEL3701 EEL3701. Registers, RALU, Asynch, Synch

Menu. Excitation Tables (Bonus Slide) EEL3701 EEL3701. Registers, RALU, Asynch, Synch Menu Registers >Storage Registers >Shift Registers More LSI Components >Arithmetic-Logic Units (ALUs) > Carry-Look-Ahead Circuitry (skip this) Asynchronous versus Synchronous Look into my... 1 Excitation

More information

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1>

Chapter 5. Digital Design and Computer Architecture, 2 nd Edition. David Money Harris and Sarah L. Harris. Chapter 5 <1> Chapter 5 Digital Design and Computer Architecture, 2 nd Edition David Money Harris and Sarah L. Harris Chapter 5 Chapter 5 :: Topics Introduction Arithmetic Circuits umber Systems Sequential Building

More information

[2] Predicting the direction of a branch is not enough. What else is necessary?

[2] Predicting the direction of a branch is not enough. What else is necessary? [2] When we talk about the number of operands in an instruction (a 1-operand or a 2-operand instruction, for example), what do we mean? [2] What are the two main ways to define performance? [2] Predicting

More information

EXPERIMENT Bit Binary Sequential Multiplier

EXPERIMENT Bit Binary Sequential Multiplier 12.1 Objectives EXPERIMENT 12 12. -Bit Binary Sequential Multiplier Introduction of large digital system design, i.e. data path and control path. To apply the above concepts to the design of a sequential

More information

[2] Predicting the direction of a branch is not enough. What else is necessary?

[2] Predicting the direction of a branch is not enough. What else is necessary? [2] What are the two main ways to define performance? [2] Predicting the direction of a branch is not enough. What else is necessary? [2] The power consumed by a chip has increased over time, but the clock

More information

CS61C : Machine Structures

CS61C : Machine Structures CS 61C L15 Blocks (1) inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #15: Combinational Logic Blocks Outline CL Blocks Latches & Flip Flops A Closer Look 2005-07-14 Andy Carle CS

More information

Integer Multipliers 1

Integer Multipliers 1 Integer Multipliers Multipliers must have circuit in most DS applications variety of multipliers exists that can be chosen based on their performance Serial, Serial/arallel,Shift and dd, rray, ooth, Wallace

More information

EECS150 - Digital Design Lecture 23 - FSMs & Counters

EECS150 - Digital Design Lecture 23 - FSMs & Counters EECS150 - Digital Design Lecture 23 - FSMs & Counters April 8, 2010 John Wawrzynek Spring 2010 EECS150 - Lec22-counters Page 1 One-hot encoding of states. One FF per state. State Encoding Why one-hot encoding?

More information

Logic. Combinational. inputs. outputs. the result. system can

Logic. Combinational. inputs. outputs. the result. system can Digital Electronics Combinational Logic Functions Digital logic circuits can be classified as either combinational or sequential circuits. A combinational circuit is one where the output at any time depends

More information

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO UN IVERSIT Y O F CA LIFO RNI A AT BERKELEY BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO SAN TA BARBA RA S AN TA CRUZ De p a r tm en t of Ele ctr i ca l En gin e e rin g a

More information

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring - Principles of Computer rchitecture Miles Murdocca and Vincent Heuring 999 M. Murdocca and V. Heuring -2 Chapter Contents. Introduction.2 Combinational Logic.3 Truth Tables.4 Logic Gates.5 Properties

More information

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS ARITHMETIC COMBINATIONAL MODULES AND NETWORKS 1 SPECIFICATION OF ADDER MODULES FOR POSITIVE INTEGERS HALF-ADDER AND FULL-ADDER MODULES CARRY-RIPPLE AND CARRY-LOOKAHEAD ADDER MODULES NETWORKS OF ADDER MODULES

More information

Written exam for IE1204/5 Digital Design with solutions Thursday 29/

Written exam for IE1204/5 Digital Design with solutions Thursday 29/ Written exam for IE4/5 Digital Design with solutions Thursday 9/ 5 9.-. General Information Examiner: Ingo Sander. Teacher: William Sandqvist phone 8-794487 Exam text does not have to be returned when

More information

CS61C : Machine Structures

CS61C : Machine Structures inst.eecs.berkeley.edu/~cs61c/su05 CS61C : Machine Structures Lecture #15: Combinational Logic Blocks 2005-07-14 CS 61C L15 Blocks (1) Andy Carle Outline CL Blocks Latches & Flip Flops A Closer Look CS

More information

COE 328 Final Exam 2008

COE 328 Final Exam 2008 COE 328 Final Exam 2008 1. Design a comparator that compares a 4 bit number A to a 4 bit number B and gives an Output F=1 if A is not equal B. You must use 2 input LUTs only. 2. Given the following logic

More information

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary Number System Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary BOOLEAN ALGEBRA BOOLEAN LOGIC OPERATIONS Logical AND Logical OR Logical COMPLEMENTATION

More information

A crash course in Digital Logic

A crash course in Digital Logic crash course in Digital Logic Computer rchitecture 1DT016 distance Fall 2017 http://xyx.se/1dt016/index.php Per Foyer Mail: per.foyer@it.uu.se Per.Foyer@it.uu.se 2017 1 We start from here Gates Flip-flops

More information

Shift Register Counters

Shift Register Counters Shift Register Counters Shift register counter: a shift register with the serial output connected back to the serial input. They are classified as counters because they give a specified sequence of states.

More information

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1 Ch 7. Finite State Machines VII - Finite State Machines Contemporary Logic esign 1 Finite State Machines Sequential circuits primitive sequential elements combinational logic Models for representing sequential

More information

Hardware Design I Chap. 4 Representative combinational logic

Hardware Design I Chap. 4 Representative combinational logic Hardware Design I Chap. 4 Representative combinational logic E-mail: shimada@is.naist.jp Already optimized circuits There are many optimized circuits which are well used You can reduce your design workload

More information

vidyarthiplus.com vidyarthiplus.com vidyarthiplus.com ANNA UNIVERSITY- COMBATORE B.E./ B.TECH. DEGREE EXAMINATION - JUNE 2009. ELECTRICAL & ELECTONICS ENGG. - FOURTH SEMESTER DIGITAL LOGIC CIRCUITS PART-A

More information

Chapter 2 Basic Arithmetic Circuits

Chapter 2 Basic Arithmetic Circuits Chapter 2 Basic Arithmetic Circuits This chapter is devoted to the description of simple circuits for the implementation of some of the arithmetic operations presented in Chap. 1. Specifically, the design

More information