Computer Architecture Lab Session

Size: px
Start display at page:

Download "Computer Architecture Lab Session"

Transcription

1 Computer Architecture Lab Session The 4 th week / Sep 24 th, 2015 Su-Jin Oh sujinohkor@gmail.com 1

2 Index Review Little Bit Different Kinds of Instructions Shift Instructions Some Ways for Console I/O Task 2

3 What did we learn at the last time? :D REVIEW 3

4 Brief Introduction of R-type Instructions Instruction Format op rs rt rd shamt funct 6 bits 5 bits 5 bits 5 bits 5 bits 6 bits opcode: the operation code Every R-type operation s opcode is zero. rs, rt: the source registers rd: the destination register shamt: the amount to shift Among every R-type instruction, only shift operations use this filed. function: the specific function 4

5 R-type Instructions; ADD and SUB ADD add $s0, $s1, $s2 # $s0 <- $s1 + $s ($s1) 18 ($s2) 16 ($s0) 0 32 op rs rt rd shamt funct SUB sub $t0, $t3, $t5 # $t0 <- $t3 - $t ($t0) 13 ($t3) 8 ($t5) 0 34 op rs rt rd shamt funct 5

6 R-type Instructions; Logical Operations 1 AND and $s3, $s1, $s2 # $s3 <- $s1 AND $s2 A B OUTPUT Source Registers $s $s Destination Register $s OR or $s4, $s1, $s2 # $s4 <- $s1 OR $s2 A B OUTPUT Source Registers $s $s Destination Register $s

7 R-type Instructions; Logical Operations 2 XOR xor $s5, $s1, $s2 # $s5 <- $s1 XOR $s2 A B OUTPUT Source Registers $s $s Destination Register $s NOR nor $s6, $s1, $s2 # $s6 <- $s1 NOR $s2 A B OUTPUT Source Registers $s $s Destination Register $s

8 Brief Introduction of I-type Instructions Instruction Format op rs rt imm 6 bits 5 bits 5 bits 16 bits opcode: the operation code rs: the source register rt: the second operand or the destination register imm: the immediate value 8

9 I-type Instructions; ADDI ADDI addi $s1, $s0, 5 # $s1 <- $s ($s0) 17 ($s1) 5 op rs rt imm SUBI does not exist. 9

10 I-type Instructions; Logical Operations ANDI andi $s2, $s1, 0xFA34 # $s2 <- $s1 AND 0xFA34 ORI ori $s3, $s1, 0xFA34 # $s3 <- $s1 OR 0xFA34 XORI xori $s4, $s1, 0xFA34 # $s4 <- $s1 XOR 0xFA34 Source Registers $s imm Destination Register $s

11 Number System Conversion Binary Decimal 11 = (1 2 3 ) + (0 2 2 ) + (1 2 1 ) + (1 2 0 ) Hexadecimal B HEXADECIMAL DEC HEX DEC HEX DEC HEX DEC HEX C D A 14 E B 15 F 11

12 ADDU, ADDIU, SUBU, and NOR LITTLE BIT DIFFERENT KINDS OF INSTRUCTIONS 12

13 MSB and LSB MSB (: Most Significant Bit) and LSB (: Least Significant Bit) MSB LSB Simply, the rightmost digit is highly crucial, while the leftmost digit is just insignificant. e.g. If a person lent 15K (15: binary 1111) to someone. In this case, if MSB is broken then the number will be just 7K (0111). Whereas if LSB is broken then the number will be 14K (1110). 13

14 Signed and Unsigned Numbers A binary number may be signed or unsigned. Commonly, signed numbers are indicated through two s complement representation How can we describe negative numbers? The number 1 and the one s complement. 1 0x One s 0xFFFF FFFE The two s complement, further it is same with the number -1. Two s 0xFFFF FFFF I recommend below websites! 의 _ 보수법으로 _ 음수 _ 표현하기 14

15 ADDU and ADDIU 1/2 ADDU (U: Unchecked) addu $s3, $s1, $s2 # $s3 <- $s1 + $s2 It does not have a possibility of overflow (just ignore). What is the difference with ADD add $s4, $s1, $s2 # $s4 <- $s1 + $s2 It has a possibility of overflow. ADDIU (I-type instruction) addiu $s5, $s1, 5 # $s5 <- $s1 + 5 It uses a 16-bit immediate value (constant) as a source. It does not have a possibility of overflow (just ignore). In hexadecimal number system, one digit is 4-bit, two digits are 8-bit (1-byte). 15

16 ADDU and ADDIU 2/ The leftmost binary digit indicates the sign of the number. 16

17 SUBU 1/2 SUBU (U: Unchecked) subu $s3, $s1, $s2 # $s3 <- $s1 - $s2 It does not have a possibility of overflow (just ignore). What is the difference with SUB sub $s4, $s1, $s2 # $s4 <- $s1 - $s2 It has a possibility of overflow. 17

18 SUBU 2/ The leftmost binary digit indicates the sign of the number. 18

19 Logical NOT 1/2 MIPS does not provide NOT instruction. A NOR $0 = NOT A nor $s2, $s1, $0 # $s2 <- $s1 nor $0 $0 == R0: The constant value 0. NOR: Only both sources are 0, then the result will be 1. 19

20 Logical NOT 2/2 Source Registers $s1 0x $0 0x Destination Register $s2 0xFFFF EDCB NOT $s1 $s1 0x NOT 0xFFFF EDCB xFFFF EDCB HEX 0xFFFF EDCB F F F F E D C B 20

21 These Shift Instructions are R-type Instructions SHIFT INSTRUCTIONS 21

22 SLL, SRL, and SRA 1/3 SLL (: Shift Left Logical) sll $s1, $s0, 4 # $s1 == $s $s1 <- $s0 << 4 Left shifts always fill the least significant bits with 0 s. Shifting a value left by N is equivalent to multiplying it by 2 N. SRL (: Shift Right Logical) srl $s2, $s0, 4 # $s2 <- $s0 >>> 4 In case of SRL, 0 s shift into the most significant bits. SRA (: Shift Right Arithmetic) sra $s3, $s0, 4 # $s3 == $s $s3 <- $s0 >> 4 In case of SRA, the sign bit shifts into the most significant bits. Arithmetically shifting a value right by N is equivalent to dividing it by 2 N. 22

23 SLL, SRL, and SRA 2/3 23

24 SLL, SRL, and SRA 3/3 Assembly Code op rs rt rd shamt funct sll $s1, $s0, srl $s2, $s0, sra $s3, $s0, Source Values $s shamt Assembly Code Results: Destination Registers sll $s1, $s0, srl $s2, $s0, sra $s3, $s0,

25 SLLV, SRLV, and SRAV 1/3 SLLV (: Shift Left Logical Variable) sllv $s3, $s1, $s2 # $s3 == $s1 2 $s2 --- $s3 <- $s1 << $s2 Left shifts always fill the least significant bits with 0 s. Shifting a value left by N is equivalent to multiplying it by 2 N. SRLV (: Shift Right Logical Variable) srlv $s4, $s1, $s2 # $s4 <- $s1 >>> $s2 In case of SRLV, 0 s shift into the most significant bits. SRAV (: Shift Right Arithmetic Variable) srav $s5, $s1, $2 # $s5 == $s1 2 $s2 --- $s5 <- $s1 >> $s2 In case of SRAV, the sign bit shifts into the most significant bits. Arithmetically shifting a value right by N is equivalent to dividing it by 2 N. 25

26 SLLV, SRLV, and SRAV 2/3 26

27 SLLV, SRLV, and SRAV 3/3 Assembly Code op rs rt rd shamt funct sllv $s3, $s1, $s srlv $s4, $s1, $s srav $s5, $s1, $s Source Values $s $s Assembly Code Results: Destination Registers sllv $s3, $s1, $s srlv $s4, $s1, $s srav $s5, $s1, $s

28 You can input some values through your console! SOME WAYS FOR CONSOLE I/O 28

29 MIPS System Calls CA 02 week additional.pdf 29

30 Input an Integer 1/2 30

31 Input an Integer 2/2 31

32 Input a String 1/2 32

33 Input a String 2/2 33

34 A simple task.. TASK 34

35 Task NOTE: You should make an archive file which has both your source file and your screen capture image. You should submit this archive file on Smart Campus. Please, write your name and student ID number on your file names!!! e.g 오수진.zip / 오수진.asm / 오수진.png Please, follow each question! 1. Input two integer values through console. Then save these figures into $s1 and $s2, respectively. The 2 nd number should be 10 or lower. 2. Calculate $s1 SLLV/SRLV/SRAV $s2. Then save these results into from $s3 to $s5. Take a screen capture which should show both your console and your QtSpim Register Table (especially, from $s1 to $s5 fields). 35

36 Thanks for attending :D THE END 36

EE292: Fundamentals of ECE

EE292: Fundamentals of ECE EE292: Fundamentals of ECE Fall 2012 TTh 10:00-11:15 SEB 1242 Lecture 21 121113 http://www.ee.unlv.edu/~b1morris/ee292/ 2 Outline Chapter 7 - Logic Circuits Binary Number Representation Binary Arithmetic

More information

EE 109 Midterm Review

EE 109 Midterm Review EE 109 Midterm Review 1 2 Number Systems Computer use base 2 (binary) 0 and 1 Humans use base 10 (decimal) 0 to 9 Humans using computers: Base 16 (hexadecimal) 0 to 15 (0 to 9,A,B,C,D,E,F) Base 8 (octal)

More information

EECS150 - Digital Design Lecture 2 - Synchronous Digital Systems Review Part 1. Outline

EECS150 - Digital Design Lecture 2 - Synchronous Digital Systems Review Part 1. Outline EECS5 - Digital Design Lecture 2 - Synchronous Digital Systems Review Part January 2, 2 John Wawrzynek Electrical Engineering and Computer Sciences University of California, Berkeley http://www-inst.eecs.berkeley.edu/~cs5

More information

Chapter 1: Digital logic

Chapter 1: Digital logic Chapter 1: Digital logic I. Overview In PHYS 252, you learned the essentials of circuit analysis, including the concepts of impedance, amplification, feedback and frequency analysis. Most of the circuits

More information

EECS 452 Midterm Exam Winter 2012

EECS 452 Midterm Exam Winter 2012 EECS 452 Midterm Exam Winter 2012 Name: unique name: Sign the honor code: I have neither given nor received aid on this exam nor observed anyone else doing so. Scores: # Points Section I /40 Section II

More information

You are Here! Processor Design Process. Agenda. Agenda 10/25/12. CS 61C: Great Ideas in Computer Architecture Single Cycle MIPS CPU Part II

You are Here! Processor Design Process. Agenda. Agenda 10/25/12. CS 61C: Great Ideas in Computer Architecture Single Cycle MIPS CPU Part II /26/2 CS 6C: Great Ideas in Computer Architecture Single Cycle MIPS CPU Part II /25/2 ructors: Krste Asanovic, Randy H. Katz hcp://inst.eecs.berkeley.edu/~cs6c/fa2 Fall 22 - - Lecture #26 Parallel Requests

More information

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02) 2145230 Aircraft Electricity and Electronics Asst. Prof. Thavatchai Tayjasanant, PhD Email: taytaycu@gmail.com aycu@g a co Power System Research Lab 12 th Floor, Building 4 Tel: (02) 218-6527 1 Chapter

More information

REALIZATION OF FPGA BASED Q-FORMAT ARITHMETIC LOGIC UNIT FOR POWER ELECTRONIC CONVERTER APPLICATIONS

REALIZATION OF FPGA BASED Q-FORMAT ARITHMETIC LOGIC UNIT FOR POWER ELECTRONIC CONVERTER APPLICATIONS 17 Chapter 2 REALIZATION OF FPGA BASED Q-FORMAT ARITHMETIC LOGIC UNIT FOR POWER ELECTRONIC CONVERTER APPLICATIONS In this chapter, analysis of FPGA resource utilization using QALU, and is compared with

More information

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished Number system: the system used to count discrete units is called number system Decimal system: the number system that contains 10 distinguished symbols that is 0-9 or digits is called decimal system. As

More information

Solution a b S72. Chapter 3 Solutions. Step Action Multiplier Multiplicand Product

Solution a b S72. Chapter 3 Solutions. Step Action Multiplier Multiplicand Product S72 Chapter 3 Solutions Solution 3.4 3.4.1 a. 50 23 Step Action Multiplier Multiplicand Product 0 Initial Vals 010 011 000 000 101 000 000 000 000 000 1 Prod = Prod + Mcand 010 011 000 000 101 000 000

More information

Design IV. E232 Fall 07

Design IV. E232 Fall 07 Design IV Fall 07 Class 7 Bruce McNair bmcnair@stevens.edu 7-1/27 Example Low-Pass Filter Design (like HW2 Problem 3.18) A(f) db f Cutoff (corner) frequency 7-2/27 Transmission Systems Analog signal transmission

More information

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666

UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering. Digital Computer Arithmetic ECE 666 UNIVERSITY OF MASSACHUSETTS Dept. of Electrical & Computer Engineering Digital Computer Arithmetic ECE 666 Part 6a High-Speed Multiplication - I Israel Koren ECE666/Koren Part.6a.1 Speeding Up Multiplication

More information

Instruction Level Parallelism. Data Dependence Static Scheduling

Instruction Level Parallelism. Data Dependence Static Scheduling Instruction Level Parallelism Data Dependence Static Scheduling Basic Block A straight line code sequence with no branches in except to the entry and no branches out except at the exit Loop: L.D ADD.D

More information

Lecture 02: Digital Logic Review

Lecture 02: Digital Logic Review CENG 3420 Lecture 02: Digital Logic Review Bei Yu byu@cse.cuhk.edu.hk CENG3420 L02 Digital Logic. 1 Spring 2017 Review: Major Components of a Computer CENG3420 L02 Digital Logic. 2 Spring 2017 Review:

More information

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa Experiment # 4 Binary Addition & Subtraction Eng. Waleed Y. Mousa 1. Objectives: 1. To study adder and subtractor circuits using logic gates. 2. To construct and test various adders and subtractor circuits.

More information

Lab Report: Digital Logic

Lab Report: Digital Logic Lab Report: Digital Logic Introduction The aim of the Digital Logic Lab was to construct a simple 4-bit Arithmetic Logic Unit (ALU) in order to demonstrate methods of using Boolean Algebra to manipulate

More information

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006 COE/EE2DI4 Midterm Test #1 Fall 2006 Page 1 Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006 Instructions: This examination paper includes 10 pages and 20 multiple-choice questions starting

More information

Lecture 2. Digital Basics

Lecture 2. Digital Basics Lecture Digital Basics Peter Cheung Department of Electrical & Electronic Engineering Imperial College London URL: www.ee.ic.ac.uk/pcheung/teaching/de1_ee/ E-mail: p.cheung@imperial.ac.uk Lecture Slide

More information

UNIT-IV Combinational Logic

UNIT-IV Combinational Logic UNIT-IV Combinational Logic Introduction: The signals are usually represented by discrete bands of analog levels in digital electronic circuits or digital electronics instead of continuous ranges represented

More information

Abstract. 1. Introduction. Department of Electronics and Communication Engineering Coimbatore Institute of Engineering and Technology

Abstract. 1. Introduction. Department of Electronics and Communication Engineering Coimbatore Institute of Engineering and Technology IMPLEMENTATION OF BOOTH MULTIPLIER AND MODIFIED BOOTH MULTIPLIER Sakthivel.B 1, K. Maheshwari 2, J. Manojprabakar 3, S.Nandhini 4, A.Saravanapriya 5 1 Assistant Professor, 2,3,4,5 Student Members Department

More information

Chapter 10 Error Detection and Correction 10.1

Chapter 10 Error Detection and Correction 10.1 Data communication and networking fourth Edition by Behrouz A. Forouzan Chapter 10 Error Detection and Correction 10.1 Note Data can be corrupted during transmission. Some applications require that errors

More information

Lecture 2: Data Representation

Lecture 2: Data Representation Points Addressed in this Lecture Lecture : Data Representation Professor Peter Cheung Department of EEE, Imperial College London What do we mean by data? How can data be represented electronically? What

More information

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Objectives In this chapter, you will learn about The binary numbering system Boolean logic and gates Building computer circuits

More information

Digital Integrated CircuitDesign

Digital Integrated CircuitDesign Digital Integrated CircuitDesign Lecture 13 Building Blocks (Multipliers) Register Adder Shift Register Adib Abrishamifar EE Department IUST Acknowledgement This lecture note has been summarized and categorized

More information

TIP551. Optically Isolated 4 Channel 16 Bit D/A. Version 1.1. User Manual. Issue December 2009

TIP551. Optically Isolated 4 Channel 16 Bit D/A. Version 1.1. User Manual. Issue December 2009 The Embedded I/O Company TIP551 Optically Isolated 4 Channel 16 Bit D/A Version 1.1 User Manual Issue 1.1.4 December 2009 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101

More information

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C

CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, CS1800 Discrete Structures Midterm Version C CS1800 Discrete Structures Fall 2016 Profs. Aslam, Gold, Ossowski, Pavlu, & Sprague 7 November, 2016 CS1800 Discrete Structures Midterm Version C Instructions: 1. The exam is closed book and closed notes.

More information

Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction

Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction Objectives: 1. To study adder and subtractor circuits using logic gates. 2. To construct and test various adders and subtractor

More information

B.C.A 2017 DIGITAL ELECTRONICS BCA104T MODULE SPECIFICATION SHEET. Course Outline

B.C.A 2017 DIGITAL ELECTRONICS BCA104T MODULE SPECIFICATION SHEET. Course Outline Course Outline B.C.A 2017 DIGITAL ELECTRONICS BCA104T MODULE SPECIFICATION SHEET The purpose of the course is to teach principles of digital electronics. This course covers varieties of topics including

More information

INTRODUCTION TO DIGITAL SYSTEMS

INTRODUCTION TO DIGITAL SYSTEMS INTRODUCTION TO DIGITAL SYSTEMS INTRODUCTION TO DIGITAL SYSTEMS Modeling, Synthesis, and Simulation Using VHDL Mohammed Ferdjallah The Virginia Modeling, Analysis and Simulation Center Old Dominion University

More information

PERIPHERAL INTERFACING Rev. 1.0

PERIPHERAL INTERFACING Rev. 1.0 This work is licensed under the Creative Commons Attribution-NonCommercial-Share Alike 2.5 India License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/in/deed.en

More information

111OO11 Control the computer ' 1-4 of the lunar module +11

111OO11 Control the computer ' 1-4 of the lunar module +11 111OO11 1-4 Control the computer of the ' lunar module +11 In 1969, millions of people in the Earth were following by TV the events that happened 384,000 km away. Three minutes before landing on the Moon,

More information

OrigamiSat-1. FM Down Link Data Format. (English version)

OrigamiSat-1. FM Down Link Data Format. (English version) OrigamiSat-1 FM Down Link Data Format (English version) Document# OP-S1-0115 Revision Ver. 1.3 Date 2019/01/11, revised on 2019/01/13 Name Tokyo Tech OrigamiSat-1 project team Revision history Date Version

More information

EE100Su08 Lecture #16 (August 1 st 2008)

EE100Su08 Lecture #16 (August 1 st 2008) EESu8 Lecture #6 (ugust st 28) OUTLINE Project next week: Pick up kits in your first lab section, work on the project in your first lab section, at home etc. and wrap up in the second lab section. USE

More information

First Name: Last Name: Lab Cover Page. Teaching Assistant to whom you are submitting

First Name: Last Name: Lab Cover Page. Teaching Assistant to whom you are submitting Student Information First Name School of Computer Science Faculty of Engineering and Computer Science Last Name Student ID Number Lab Cover Page Please complete all (empty) fields: Course Name: DIGITAL

More information

IP-OPTODA16CH4. 4 Channels of Optically Isolated 16-Bit D/A Conversion. User Manual. SBS Technologies, Inc. Subject to change without notice.

IP-OPTODA16CH4. 4 Channels of Optically Isolated 16-Bit D/A Conversion. User Manual. SBS Technologies, Inc. Subject to change without notice. IP-OPTODA16CH4 4 Channels of Optically Isolated 16-Bit D/A Conversion User Manual SBS Technologies, Inc. Subject to change without notice. Part Number: 894589 Rev. 1. 2341 IP-OPTODA16CH4 4 channels of

More information

IB IL AO 1/U/SF. Function. INTERBUS Inline Terminal With One Analog Voltage Output. Data Sheet 5736CC01

IB IL AO 1/U/SF. Function. INTERBUS Inline Terminal With One Analog Voltage Output. Data Sheet 5736CC01 INTERBUS Inline Terminal With One Analog Voltage Output Data Sheet 5736CC01 05/2001 # %! $ ) This data sheet is intended to be used in conjunction with the Configuring and Installing the INTERBUS Inline

More information

An Optimized Implementation of CSLA and CLLA for 32-bit Unsigned Multiplier Using Verilog

An Optimized Implementation of CSLA and CLLA for 32-bit Unsigned Multiplier Using Verilog An Optimized Implementation of CSLA and CLLA for 32-bit Unsigned Multiplier Using Verilog 1 P.Sanjeeva Krishna Reddy, PG Scholar in VLSI Design, 2 A.M.Guna Sekhar Assoc.Professor 1 appireddigarichaitanya@gmail.com,

More information

SE311: Design of Digital Systems Lecture 1: Introduction to Digital Systems

SE311: Design of Digital Systems Lecture 1: Introduction to Digital Systems SE311: Design of Digital Systems Lecture 1: Introduction to Digital Systems Dr. Samir Al-Amer (Term 041) SE311_Lec1 (c) 2004 AL-AMER ١ Design of Digital Systems Grading policy Course Outlines Introduction

More information

Unit 3. Logic Design

Unit 3. Logic Design EE 2: Digital Logic Circuit Design Dr Radwan E Abdel-Aal, COE Logic and Computer Design Fundamentals Unit 3 Chapter Combinational 3 Combinational Logic Logic Design - Introduction to Analysis & Design

More information

COMPUTER ARCHITECTURE AND ORGANIZATION

COMPUTER ARCHITECTURE AND ORGANIZATION DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING COMPUTER ARCHITECTURE AND ORGANIZATION (CSE18R174) LAB MANUAL Name of the Student:..... Register No Class Year/Sem/Class :. :. :... 1 This page is left intentionally

More information

CS61c: Introduction to Synchronous Digital Systems

CS61c: Introduction to Synchronous Digital Systems CS61c: Introduction to Synchronous Digital Systems J. Wawrzynek March 4, 2006 Optional Reading: P&H, Appendix B 1 Instruction Set Architecture Among the topics we studied thus far this semester, was the

More information

Asanovic/Devadas Spring Pipeline Hazards. Krste Asanovic Laboratory for Computer Science M.I.T.

Asanovic/Devadas Spring Pipeline Hazards. Krste Asanovic Laboratory for Computer Science M.I.T. Pipeline Hazards Krste Asanovic Laboratory for Computer Science M.I.T. Pipelined DLX Datapath without interlocks and jumps 31 0x4 RegDst RegWrite inst Inst rs1 rs2 rd1 ws wd rd2 GPRs Imm Ext A B OpSel

More information

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits

More information

FIR System Specification

FIR System Specification Design Automation for Digital Filters 1 FIR System Specification 1-δ 1 Amplitude f 2 Frequency response determined by coefficient quantization δ 2 SNR = 10log E f 1 2 E( yref ) ( y y ) ( ) 2 ref finite

More information

CHAPTER 1 INTRODUCTION

CHAPTER 1 INTRODUCTION CHAPTER 1 INTRODUCTION 1.1 Project Background High speed multiplication is another critical function in a range of very large scale integration (VLSI) applications. Multiplications are expensive and slow

More information

2 Building Blocks. There is often the need to compare two binary values.

2 Building Blocks. There is often the need to compare two binary values. 2 Building Blocks 2.1 Comparators There is often the need to compare two binary values. This is done using a comparator. A comparator determines whether binary values A and B are: 1. A = B 2. A < B 3.

More information

DIGITAL ELECTRONICS QUESTION BANK

DIGITAL ELECTRONICS QUESTION BANK DIGITAL ELECTRONICS QUESTION BANK Section A: 1. Which of the following are analog quantities, and which are digital? (a) Number of atoms in a simple of material (b) Altitude of an aircraft (c) Pressure

More information

RS-232 Data Acquisition Module 232SPDA and 232SPDACL Document No. 232SPDA3798

RS-232 Data Acquisition Module 232SPDA and 232SPDACL Document No. 232SPDA3798 RS-232 Data Acquisition Module 232SPDA and 232SPDACL Document No. 232SPDA3798 This product Designed and Manufactured In Ottawa, Illinois USA of domestic and imported parts by B&B Electronics Mfg. Co. Inc.

More information

10. DSP Blocks in Arria GX Devices

10. DSP Blocks in Arria GX Devices 10. SP Blocks in Arria GX evices AGX52010-1.2 Introduction Arria TM GX devices have dedicated digital signal processing (SP) blocks optimized for SP applications requiring high data throughput. These SP

More information

Approximate Hybrid Equivalent Circuits. Again, the impedance looking into the output terminals is infinite so that. conductance is zero.

Approximate Hybrid Equivalent Circuits. Again, the impedance looking into the output terminals is infinite so that. conductance is zero. Again, the impedance looking into the output terminals is infinite so that conductance is zero. Hence, the four h-parameters of an ideal transistor connected in CE transistor are The hybrid equivalent

More information

6. DSP Blocks in Stratix II and Stratix II GX Devices

6. DSP Blocks in Stratix II and Stratix II GX Devices 6. SP Blocks in Stratix II and Stratix II GX evices SII52006-2.2 Introduction Stratix II and Stratix II GX devices have dedicated digital signal processing (SP) blocks optimized for SP applications requiring

More information

Know your energy. Modbus Register Map EB etactica Power Bar

Know your energy. Modbus Register Map EB etactica Power Bar Know your energy Modbus Register Map EB etactica Power Bar Revision history Version Action Author Date 1.0 Initial document KP 25.08.2013 1.1 Document review, description and register update GP 26.08.2013

More information

Operational Amplifiers (Op Amps)

Operational Amplifiers (Op Amps) Operational Amplifiers (Op Amps) Introduction * An operational amplifier is modeled as a voltage controlled voltage source. * An operational amplifier has a very high input impedance and a very high gain.

More information

KL-2502 Technical Documentation 2-Channel Puls Width Output Terminal 24VDC Please keep for further use!

KL-2502 Technical Documentation 2-Channel Puls Width Output Terminal 24VDC Please keep for further use! KL-2502 Technical Documentation 2-Channel Puls Width Output Terminal 24VDC Please keep for further use! Edition date/rev. date: 09.03.1998 Document no./rev. no.: TRS - V - BA - GB - 0102-00 Software version:

More information

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output. LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output. At any given moment, every terminal is in one of the two

More information

CS 61C Great Ideas in Computer Architecture (a.k.a. Machine Structures) Lecture 1: Course Introduction

CS 61C Great Ideas in Computer Architecture (a.k.a. Machine Structures) Lecture 1: Course Introduction CS 61C Great Ideas in Computer Architecture (a.k.a. Machine Structures) Lecture 1: Course Introduction Instructors: Professor John Wawrzynek (call me John ) Professor Vladimir Stojanovic (call me Vladimir

More information

0 A. Review. Lecture #16. Pipeline big-delay CL for faster clock Finite State Machines extremely useful You!ll see them again in 150, 152 & 164

0 A. Review. Lecture #16. Pipeline big-delay CL for faster clock Finite State Machines extremely useful You!ll see them again in 150, 152 & 164 CS61C L15 Representations of Combinatorial Logic Circuits (1) inst.eecs.berkeley.edu/~cs61c CS61C : Machine Structures Lecture #16 Representations of Combinatorial Logic Circuits CPS today! 2005-10-26

More information

Chapter 11. Digital Integrated Circuit Design II. $Date: 2016/04/21 01:22:37 $ ECE 426/526, Chapter 11.

Chapter 11. Digital Integrated Circuit Design II. $Date: 2016/04/21 01:22:37 $ ECE 426/526, Chapter 11. Digital Integrated Circuit Design II ECE 426/526, $Date: 2016/04/21 01:22:37 $ Professor R. Daasch Depar tment of Electrical and Computer Engineering Portland State University Portland, OR 97207-0751 (daasch@ece.pdx.edu)

More information

SIGNED PIPELINED MULTIPLIER USING HIGH SPEED COMPRESSORS

SIGNED PIPELINED MULTIPLIER USING HIGH SPEED COMPRESSORS INTERNATIONAL JOURNAL OF RESEARCH IN COMPUTER APPLICATIONS AND ROBOTICS ISSN 2320-7345 SIGNED PIPELINED MULTIPLIER USING HIGH SPEED COMPRESSORS 1 T.Thomas Leonid, 2 M.Mary Grace Neela, and 3 Jose Anand

More information

Digital Electronics 8. Multiplexer & Demultiplexer

Digital Electronics 8. Multiplexer & Demultiplexer 1 Module -8 Multiplexers and Demultiplexers 1 Introduction 2 Principles of Multiplexing and Demultiplexing 3 Multiplexer 3.1 Types of multiplexer 3.2 A 2 to 1 multiplexer 3.3 A 4 to 1 multiplexer 3.4 Multiplex

More information

ROTRONIC HygroClip Digital Input / Output

ROTRONIC HygroClip Digital Input / Output ROTRONIC HygroClip Digital Input / Output OEM customers that use the HygroClip have the choice of using either the analog humidity and temperature output signals or the digital signal input / output (DIO).

More information

CMSC 611: Advanced Computer Architecture

CMSC 611: Advanced Computer Architecture CMSC 611: Advanced Computer Architecture Pipelining Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from Hennessy & Patterson / 2003 Elsevier Science

More information

EE 308 Apr. 24, 2002 Review for Final Exam

EE 308 Apr. 24, 2002 Review for Final Exam Review for Final Exam Numbers Decimal to Hex (signed and unsigned) Hex to Decimal (signed and unsigned) Binary to Hex Hex to Binary Addition and subtraction of fixed-length hex numbers Overflow, Carry,

More information

Computer Arithmetic (2)

Computer Arithmetic (2) Computer Arithmetic () Arithmetic Units How do we carry out,,, in FPGA? How do we perform sin, cos, e, etc? ELEC816/ELEC61 Spring 1 Hayden Kwok-Hay So H. So, Sp1 Lecture 7 - ELEC816/61 Addition Two ve

More information

Data Acquisition: A/D & D/A Conversion

Data Acquisition: A/D & D/A Conversion Data Acquisition: A/D & D/A Conversion Mark Colton ME 363 Spring 2011 Sampling: A Review In order to store and process measured variables in a computer, the computer must sample the variables 10 Continuous

More information

IES Digital Mock Test

IES Digital Mock Test . The circuit given below work as IES Digital Mock Test - 4 Logic A B C x y z (a) Binary to Gray code converter (c) Binary to ECESS- converter (b) Gray code to Binary converter (d) ECESS- To Gray code

More information

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics Egemen K. Çetinkaya Egemen K. Çetinkaya Department of Electrical & Computer Engineering Missouri University of Science and

More information

Design of Area and Power Efficient FIR Filter Using Truncated Multiplier Technique

Design of Area and Power Efficient FIR Filter Using Truncated Multiplier Technique Design of Area and Power Efficient FIR Filter Using Truncated Multiplier Technique TALLURI ANUSHA *1, and D.DAYAKAR RAO #2 * Student (Dept of ECE-VLSI), Sree Vahini Institute of Science and Technology,

More information

Digital. Design. R. Ananda Natarajan B C D

Digital. Design. R. Ananda Natarajan B C D Digital E A B C D 0 1 2 3 4 5 6 Design 7 8 9 10 11 12 13 14 15 Y R. Ananda Natarajan Digital Design Digital Design R. ANANDA NATARAJAN Professor Department of Electronics and Instrumentation Engineering

More information

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as BioE 1310 - Review 5 - Digital 1/16/2017 Instructions: On the Answer Sheet, enter your 2-digit ID number (with a leading 0 if needed) in the boxes of the ID section. Fill in the corresponding numbered

More information

Combinational Logic Circuits. Combinational Logic

Combinational Logic Circuits. Combinational Logic Combinational Logic Circuits The outputs of Combinational Logic Circuits are only determined by the logical function of their current input state, logic 0 or logic 1, at any given instant in time. The

More information

CZ3001 ADVANCED COMPUTER ARCHITECTURE

CZ3001 ADVANCED COMPUTER ARCHITECTURE CZ3001 ADVANCED COMPUTER ARCHITECTURE Lab 3 Report Abstract Pipelining is a process in which successive steps of an instruction sequence are executed in turn by a sequence of modules able to operate concurrently,

More information

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #14

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #14 Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #14 Ziad Matni Dept. of Computer Science, UCSB Administrative Remaining on the calendar This supersedes

More information

C SC 483 Chess and AI: Computation and Cognition. Lecture 3 September 10th

C SC 483 Chess and AI: Computation and Cognition. Lecture 3 September 10th C SC 483 Chess and AI: Computation and Cognition Lecture 3 September th Programming Project A series of tasks There are lots of resources and open source code available for chess Please don t simply copy

More information

D3 04AD 4-Channel Analog Input

D3 04AD 4-Channel Analog Input 4-Channel Analog Input 22 Module Specifications The following table provides the specifications for the Analog Input Module. Review these specifications to make sure the module meets your application requirements.

More information

Keywords , IJARCSSE All Rights Reserved Page Lecturer, EN Dept., DBACER,

Keywords , IJARCSSE All Rights Reserved Page Lecturer, EN Dept., DBACER, Volume 3, Issue 7, July 2013 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com VHDL Implementation

More information

R.B.V.R.R. WOMEN S COLLEGE (AUTONOMOUS) Narayanaguda, Hyderabad. ELECTRONIC PRINCIPLES AND APPLICATIONS

R.B.V.R.R. WOMEN S COLLEGE (AUTONOMOUS) Narayanaguda, Hyderabad. ELECTRONIC PRINCIPLES AND APPLICATIONS R.B.V.R.R. WOMEN S COLLEGE (AUTONOMOUS) Narayanaguda, Hyderabad. DEPARTMENT OF PHYSICS QUESTION BANK FOR SEMESTER V PHYSICS PAPER VI (A) ELECTRONIC PRINCIPLES AND APPLICATIONS UNIT I: SEMICONDUCTOR DEVICES

More information

ETSI TS V1.1.2 ( )

ETSI TS V1.1.2 ( ) Technical Specification Satellite Earth Stations and Systems (SES); Regenerative Satellite Mesh - A (RSM-A) air interface; Physical layer specification; Part 3: Channel coding 2 Reference RTS/SES-25-3

More information

Written exam IE1204/5 Digital Design Friday 13/

Written exam IE1204/5 Digital Design Friday 13/ Written exam IE204/5 Digital Design Friday 3/ 207 08.00-2.00 General Information Examiner: Ingo Sander. Teacher: Kista, William Sandqvist tel 08-7904487 Teacher: Valhallavägen, Ahmed Hemani 08-7904469

More information

Lab 5. Binary Counter

Lab 5. Binary Counter Lab. Binary Counter Overview of this Session In this laboratory, you will learn: Continue to use the scope to characterize frequencies How to count in binary How to use an MC counter Introduction The TA

More information

COSC4201. Scoreboard

COSC4201. Scoreboard COSC4201 Scoreboard Prof. Mokhtar Aboelaze York University Based on Slides by Prof. L. Bhuyan (UCR) Prof. M. Shaaban (RIT) 1 Overcoming Data Hazards with Dynamic Scheduling In the pipeline, if there is

More information

VersaPoint I/O Module

VersaPoint I/O Module Module provides two-input channels for resistive temperature sensors. It supports platinum or nickel sensors according to the DIN standard and SAMA Directive. In addition, CU10, CU50, CU53, KTY81 and KTY84

More information

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405 Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405 Course Description This course covers digital techniques and numbering

More information

Lab 6. Binary Counter

Lab 6. Binary Counter Lab 6. Binary Counter Overview of this Session In this laboratory, you will learn: Continue to use the scope to characterize frequencies How to count in binary How to use an MC14161 or CD40161BE counter

More information

Review of Booth Algorithm for Design of Multiplier

Review of Booth Algorithm for Design of Multiplier Review of Booth Algorithm for Design of Multiplier N.VEDA KUMAR, THEEGALA DHIVYA Assistant Professor, M.TECH STUDENT Dept of ECE,Megha Institute of Engineering & Technology For womens,edulabad,ghatkesar

More information

Debugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study

Debugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study Debugging a Boundary-Scan I 2 C Script Test with the BusPro - I and I2C Exerciser Software: A Case Study Overview When developing and debugging I 2 C based hardware and software, it is extremely helpful

More information

LECTURE 8. Pipelining: Datapath and Control

LECTURE 8. Pipelining: Datapath and Control LECTURE 8 Pipelining: Datapath and Control PIPELINED DATAPATH As with the single-cycle and multi-cycle implementations, we will start by looking at the datapath for pipelining. We already know that pipelining

More information

System Description Wireless Power Transfer

System Description Wireless Power Transfer Volume I: Low Power Part 1: Interface Definition Version 1.1.1 July 2012 Version 1.1.1 Volume I: Low Power Part 1: Interface Definition Version 1.1.1 July 2012 Wireless Power Consortium, July 2012 Version

More information

CS 110 Computer Architecture Lecture 11: Pipelining

CS 110 Computer Architecture Lecture 11: Pipelining CS 110 Computer Architecture Lecture 11: Pipelining Instructor: Sören Schwertfeger http://shtech.org/courses/ca/ School of Information Science and Technology SIST ShanghaiTech University Slides based on

More information

Lecture 3: Logic circuit. Combinational circuit and sequential circuit

Lecture 3: Logic circuit. Combinational circuit and sequential circuit Lecture 3: Logic circuit Combinational circuit and sequential circuit TRAN THI HONG HONG@IS.NAIST.JP Content Lecture : Computer organization and performance evaluation metrics Lecture 2: Processor architecture

More information

Adder (electronics) - Wikipedia, the free encyclopedia

Adder (electronics) - Wikipedia, the free encyclopedia Page 1 of 7 Adder (electronics) From Wikipedia, the free encyclopedia (Redirected from Full adder) In electronics, an adder or summer is a digital circuit that performs addition of numbers. In many computers

More information

DELD MODEL ANSWER DEC 2018

DELD MODEL ANSWER DEC 2018 2018 DELD MODEL ANSWER DEC 2018 Q 1. a ) How will you implement Full adder using half-adder? Explain the circuit diagram. [6] An adder is a digital logic circuit in electronics that implements addition

More information

Final Exam, Math 6105

Final Exam, Math 6105 Final Exam, Math 6105 SWIM, June 29, 2006 Your name Throughout this test you must show your work. 1. Base 5 arithmetic (a) Construct the addition and multiplication table for the base five digits. (b)

More information

Course Outline Cover Page

Course Outline Cover Page College of Micronesia FSM P.O. Box 159 Kolonia, Pohnpei Course Outline Cover Page Digital Electronics I VEE 135 Course Title Department and Number Course Description: This course provides the students

More information

DESIGNING OF MODIFIED BOOTH ENCODER WITH POWER SUPPRESSION TECHNIQUE

DESIGNING OF MODIFIED BOOTH ENCODER WITH POWER SUPPRESSION TECHNIQUE International Journal of Latest Trends in Engineering and Technology Vol.(8)Issue(1), pp.222-229 DOI: http://dx.doi.org/10.21172/1.81.030 e-issn:2278-621x DESIGNING OF MODIFIED BOOTH ENCODER WITH POWER

More information

DESIGN OF LOW POWER MULTIPLIERS

DESIGN OF LOW POWER MULTIPLIERS DESIGN OF LOW POWER MULTIPLIERS GowthamPavanaskar, RakeshKamath.R, Rashmi, Naveena Guided by: DivyeshDivakar AssistantProfessor EEE department Canaraengineering college, Mangalore Abstract:With advances

More information

Mahendra Engineering College, Namakkal, Tamilnadu, India.

Mahendra Engineering College, Namakkal, Tamilnadu, India. Implementation of Modified Booth Algorithm for Parallel MAC Stephen 1, Ravikumar. M 2 1 PG Scholar, ME (VLSI DESIGN), 2 Assistant Professor, Department ECE Mahendra Engineering College, Namakkal, Tamilnadu,

More information

Electronics. Digital Electronics

Electronics. Digital Electronics Electronics Digital Electronics Introduction Unlike a linear, or analogue circuit which contains signals that are constantly changing from one value to another, such as amplitude or frequency, digital

More information

TIP500. Optically Isolated 16 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2010

TIP500. Optically Isolated 16 Channel 12 Bit ADC. Version 1.1. User Manual. Issue January 2010 The Embedded I/O Company TIP500 Optically Isolated 16 Channel 12 Bit ADC Version 1.1 User Manual Issue 1.1.9 January 2010 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101

More information

Fast Dynamic Parallel Data Interface for the NGD RF Driver

Fast Dynamic Parallel Data Interface for the NGD RF Driver Introduction The NGD series of Acousto-Optic RF Drivers are capable of fast dynamic control of frequency, output power level, and relative phase or delay (Channel #2 relative to Channel #1). The rear panel

More information