ENCM 501 Winter 2014 Tutorial for Week 4 Goals for Today (And A

Total Page:16

File Type:pdf, Size:1020Kb

ENCM 501 Winter 2014 Tutorial for Week 4 Goals for Today (And A ENCM 501 Tutorial 29Jan2014 slide 2/12 Goals for today (and a note) ENCM 501 Winter 2014 Tutorial for Week 4 Goals: I Explore tradeoffs in instruction encoding. Steve Norman, PhD, PEng I Review conventions for describing memory capacity, in preparation for lectures on memory hierarchies. Electrical & Computer Engineering Schulich School of Engineering University of Calgary Note: You are not expected to memorize all of the technical details that get used today—for example, you won’t be 29 January, 2014 expected to memorize exactly how a MIPS BEQ instruction is encoded and processed. ENCM 501 Tutorial 29Jan2014 slide 3/12 ENCM 501 Tutorial 29Jan2014 slide 4/12 32-bit constants and immediate mode instructions 64-bit constants and immediate mode instructions Suppose we are designing a new 32-bit ISA, and we have Suppose instead we’re designing a new 64-bit ISA, again with already decided that every instruction will be 32 bits in size. fixed-width 32-bit instructions. The C long and unsigned The C int and unsigned types will be 32 bits wide. long types will be 64 bits wide. Suppose that our ISA is going to use immediate mode Our new ISA is going to use immediate mode operands to operands to implement this sort of thing, where constant is implement assignment like this, in which constant is any one any one of all 232 possible constants: of all 264 possible constants: unsigned x; // x is in a GPR. unsigned long y; // y is in a GPR. // ... // ... x = constant ; y = constant ; In general, how many instructions will be needed for the In general, how many instructions will be needed for this kind assignment statement? of assignment statement? ENCM 501 Tutorial 29Jan2014 slide 5/12 ENCM 501 Tutorial 29Jan2014 slide 6/12 64-bit constants, continued More about 64-bit constants Suppose we are trying to design our ISA to be similar to In MIPS64, in the worst case, using immediate mode to get a MIPS, in which there are 32 GPRs, and instructions all have 64-bit constant into a GPR would take four instructions, each 6-bit opcodes. with a 16-bit piece of the constant, plus two extra instructions to shift or DADDU or OR bits into the correct places in the Consider the statement y = constant ; from the previous GPR. slide. This seems expensive . six or more instructions are needed Using immediate mode operands, is it possible to implement to perform a simple operation. any such statement using only three instructions? Think of two reasons why this is not really a serious problem. ENCM 501 Tutorial 29Jan2014 slide 7/12 ENCM 501 Tutorial 29Jan2014 slide 8/12 Describing Capacity: kilobytes, megabytes, Memory capacity definitions gigabytes, kilobits, megabits, gigabits (Slides 7–9 are based on slides that have been used in 10 ENCM 369 for a few years.) 1 KB = 1 kilobyte = 2 bytes = 1,024 bytes. 20 B means byte (8 bits). b means bit. 1 MB = 1 megabyte = 2 bytes = 1,048,576 bytes. 30 But often B and b get mixed up, so watch out for mistakes! 1 GB = 1 gigabyte = 2 bytes = 1,073,741,824 bytes. When describing memory size, powers of two are always So, how many one-bit memory cells does it take to make a used (e.g., 1 KB = 1024 bytes, 1 MB = 1,048,576 bytes). 256 MB memory circuit? When describing disk capacity or data transfer rate, powers of ten are more frequently used (e.g, 160 GB = 160,000,000,000 bytes). ENCM 501 Tutorial 29Jan2014 slide 9/12 ENCM 501 Tutorial 29Jan2014 slide 10/12 Does it bother you that 1 Mb might or might not MIPS J and JAL instructions be exactly 1,000,000 bits? Here is how the PC update works in MIPS32 (in MIPS64, bits 63–28 are copied from old to new PC): old PC It should! Engineers should try to avoid ambiguity and 31 28 27 2 10 imprecision in technical communication! 00 IEEE standard 1541—unfortunately not in wide use—proposes 3102625 new prefixes and symbols: kibi- (Ki), mebi- (Mi), gibi- (Gi), copy opcode J or JAL etc., for powers of two. copy instruction 20 Example: 1 Mib = 1 mebibit = 2 bits. These prefixes are 00 nice, but won’t be used in ENCM 501—we will stick with the 31 28 27 210 more commonly used prefixes and symbols. new PC If all jumps and procedure calls are done with J and JAL, how much memory, in MB, can program instructions occupy? ENCM 501 Tutorial 29Jan2014 slide 11/12 ENCM 501 Tutorial 29Jan2014 slide 12/12 ARM call instruction: BL (branch and link) MIPS branch instructions Here is an example BNE instruction: 000101_01000_00000_1111111111110110 This instruction will add 4 times the offset to the PC, and write a return address into register r14: Suppose the address of the branch instruction is 0x0040015c. 1110_1011_ 24-bit signed offset What is the branch target address? Let’s follow the steps a MIPS processor would take to find the target address. If all procedure calls are done with BL, how much memory, in MB, can program instructions occupy? Compilers for MIPS often generate loops that look like this . label: [first instruction in loop] For both MIPS and ARM, how is it possible to get around the . code size limits we have found on this slide and the previous . one? BNE gpr1, gpr2, label [delay slot instruction] What is the maximum number of instructions in such a loop?.
Recommended publications
  • The 2016 SNIA Dictionary
    A glossary of storage networking data, and information management terminology SNIA acknowledges and thanks its Voting Member Companies: Cisco Cryptsoft DDN Dell EMC Evaluator Group Fujitsu Hitachi HP Huawei IBM Intel Lenovo Macrosan Micron Microsoft NetApp Oracle Pure Storage Qlogic Samsung Toshiba Voting members as of 5.23.16 Storage Networking Industry Association Your Connection Is Here Welcome to the Storage Networking Industry Association (SNIA). Our mission is to lead the storage industry worldwide in developing and promoting standards, technologies, and educational services to empower organizations in the management of information. Made up of member companies spanning the global storage market, the SNIA connects the IT industry with end-to-end storage and information management solutions. From vendors, to channel partners, to end users, SNIA members are dedicated to providing the industry with a high level of knowledge exchange and thought leadership. An important part of our work is to deliver vendor-neutral and technology-agnostic information to the storage and data management industry to drive the advancement of IT technologies, standards, and education programs for all IT professionals. For more information visit: www.snia.org The Storage Networking Industry Association 4360 ArrowsWest Drive Colorado Springs, Colorado 80907, U.S.A. +1 719-694-1380 The 2016 SNIA Dictionary A glossary of storage networking, data, and information management terminology by the Storage Networking Industry Association The SNIA Dictionary contains terms and definitions related to storage and other information technologies, and is the storage networking industry's most comprehensive attempt to date to arrive at a common body of terminology for the technologies it represents.
    [Show full text]
  • Units of Measure Used in International Trade Page 1/57 Annex II (Informative) Units of Measure: Code Elements Listed by Name
    Annex II (Informative) Units of Measure: Code elements listed by name The table column titled “Level/Category” identifies the normative or informative relevance of the unit: level 1 – normative = SI normative units, standard and commonly used multiples level 2 – normative equivalent = SI normative equivalent units (UK, US, etc.) and commonly used multiples level 3 – informative = Units of count and other units of measure (invariably with no comprehensive conversion factor to SI) The code elements for units of packaging are specified in UN/ECE Recommendation No. 21 (Codes for types of cargo, packages and packaging materials). See note at the end of this Annex). ST Name Level/ Representation symbol Conversion factor to SI Common Description Category Code D 15 °C calorie 2 cal₁₅ 4,185 5 J A1 + 8-part cloud cover 3.9 A59 A unit of count defining the number of eighth-parts as a measure of the celestial dome cloud coverage. | access line 3.5 AL A unit of count defining the number of telephone access lines. acre 2 acre 4 046,856 m² ACR + active unit 3.9 E25 A unit of count defining the number of active units within a substance. + activity 3.2 ACT A unit of count defining the number of activities (activity: a unit of work or action). X actual ton 3.1 26 | additional minute 3.5 AH A unit of time defining the number of minutes in addition to the referenced minutes. | air dry metric ton 3.1 MD A unit of count defining the number of metric tons of a product, disregarding the water content of the product.
    [Show full text]
  • “ICT Equipment Societies”?? Measuring the Digital Information
    Information Societies or “ICT equipment societies”? Measuring the information processing capacity of a society in bits and bytes Information Societies or “ICT equipment societies”? Measuring the digital information processing capacity of a society in bits and bytes Martin Hilbert1, Priscila López2, Cristián Vásquez3 This is the author’s pre-print version of the article finally published as: Hilbert, M., López, P., & Vásquez, C. (2010). Information Societies or “ICT Equipment Societies?” Measuring the Digital Information-Processing Capacity of a Society in Bits and Bytes. The Information Society, 26(3), 157–178. doi:10.1080/01972241003712199 http://www.tandfonline.com/doi/abs/10.1080/01972241003712199 Information Societies or “ICT equipment societies”? Measuring the digital information processing capacity of a society in bits and bytes............................................................... 1 Multiple dimensions of technology diffusion ............................................................. 3 The closing digital equipment divide .......................................................................... 7 The three subsystems of information processing ...................................................... 10 The amount of digital information ............................................................................ 13 The digital divide as a moving target ........................................................................ 18 Limitations and resulting research challenges .........................................................
    [Show full text]
  • Lecture 4” Area
    ● Log into the Moodle site ● Enter the “Lecture 4” area ● At 14:00, choose “Daily Quiz 3” ● Answer the multiple choice quiz (you have until 14:10 to finish) Let's try! ● In the remote machine, inside directory ~jmalves/PE8/ ● Try commands ls -l and cd on directories: another_dir also_a_dir some_dir third_dir J.M.P. Alves 2 / 49 BMP0260 / ICB5765 / IBI5765 Now you do it! Go to the course site and enter Practical Exercise 8 Follow the instructions to answer the questions in the exercise Remember: in a PE, you should do things in practice before answering the question! J.M.P. Alves 3 / 49 BMP0260 / ICB5765 / IBI5765 How to change permissions ● The chmod command allows one to change permissions for a file or a directory (if one has permission to do that, of course!) ● This command can use a symbolic (i.e., letters) or octal (numbers) mode ● The symbolic mode uses letters u, g, o, a, r, w, and x ● u, g, o, a are for user (owner), group, others, and all, respectively ● r, w, x are read, write, execute, as usual ● The octal mode uses numbers 0 to 7 (eight digits, thus octal) J.M.P. Alves 4 / 49 BMP0260 / ICB5765 / IBI5765 Description Symbol Octal code Read r 4 Write w 2 Execute x 1 Read and Execute rx 5 (4 + 1) Read and Write rw 6 (4 + 2) Read, Write and Execute rwx 7 (4 + 2 + 1) -rwxr-xr-x 1 joe bmp0260 12456 Feb 31 13:37 file.txt Remove read and execute permissions for others (i.e., not user or group): chmod o-rx file.txt symbolic or chmod 750 file.txt octal -rwxr-x--- 1 joe bmp0260 12456 Feb 31 13:37 file.txt J.M.P.
    [Show full text]
  • File Organization & Management
    1 UNESCO -NIGERIA TECHNICAL & VOCATIONAL EDUCATION REVITALISATION PROJECT -PHASE II NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY File Organization and Management YEAR II- SE MESTER I THEORY Version 1: December 2008 1 2 Table of Contents WEEK 1 File Concepts .................................................................................................................................6 Bit: . .................................................................................................................................................7 Binary digit .....................................................................................................................................8 Representation ...............................................................................................................................9 Transmission ..................................................................................................................................9 Storage ............................................................................................................................................9 Storage Unit .....................................................................................................................................9 Abbreviation and symbol ............................................................................................................ 10 More than one bit ......................................................................................................................... 11 Bit, trit,
    [Show full text]
  • Single-Event Effects of Space and Atmospheric Radiation on Memory Components
    DEPARTMENT OF PHYSICS, UNIVERSITY OF JYVÄSKYLÄ LIRMM, UNIVERSITY OF MONTPELLIER/CNRS RESEARCH REPORT No. 10/2017 SINGLE-EVENT EFFECTS OF SPACE AND ATMOSPHERIC RADIATION ON MEMORY COMPONENTS by Alexandre Louis BOSSER Academic Dissertation for the Degree of Doctor of Philosophy To be presented, by permission of the Faculty of Mathematics and Science of the University of Jyväskylä and the President of the University of Montpellier, for public examination in Auditorium FYS 1 of the University of Jyväskylä on December 20th, 2017 at 12 noon. Jyväskylä, Finland 2017 2 Author Alexandre Louis Bosser Department of Physics, University of Jyväskylä Jyväskylä, Finland LIRMM, University of Montpellier/CNRS Montpellier, France email: [email protected] Supervisors Professor Ari Virtanen Department of Physics, University of Jyväskylä Jyväskylä, Finland Assistant Professor Arto Javanainen Department of Physics, University of Jyväskylä Jyväskylä, Finland School of Engineering, Vanderbilt University Nashville, TN, USA Professor Luigi Dilillo LIRMM, University of Montpellier/CNRS Montpellier, France Reviewers Professor Ronald Schrimpf Institute for Space and Defense Electronics, Vanderbilt University Nashville, TN, USA Professor Simone Gerardin Department of Information Engineering, University of Padova Padova, Italy Opponent Professor Fernanda Lima Kastensmidt Institute of Informatics, Federal University of Rio Grande do Sul Porto Alegre, Brazil 3 Abstract Electronic memories are ubiquitous components in electronic systems: they are used to store
    [Show full text]
  • The Complete List of Measurement Units Supported
    28.3.2019 The Complete List of Units to Convert The List of Units You Can Convert Pick one and click it to convert Weights and Measures Conversion The Complete List of Measurement Units Supported # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z # ' (minute) '' (second) Common Units, Circular measure Common Units, Circular measure % (slope percent) % (percent) Slope (grade) units, Circular measure Percentages and Parts, Franctions and Percent ‰ (slope permille) ‰ (permille) Slope (grade) units, Circular measure Percentages and Parts, Franctions and Percent ℈ (scruple) ℔, ″ (pound) Apothecaries, Mass and weight Apothecaries, Mass and weight ℥ (ounce) 1 (unit, point) Apothecaries, Mass and weight Quantity Units, Franctions and Percent 1/10 (one tenth or .1) 1/16 (one sixteenth or .0625) Fractions, Franctions and Percent Fractions, Franctions and Percent 1/2 (half or .5) 1/3 (one third or .(3)) Fractions, Franctions and Percent Fractions, Franctions and Percent 1/32 (one thirty-second or .03125) 1/4 (quart, one forth or .25) Fractions, Franctions and Percent Fractions, Franctions and Percent 1/5 (tithe, one fifth or .2) 1/6 (one sixth or .1(6)) Fractions, Franctions and Percent Fractions, Franctions and Percent 1/7 (one seventh or .142857) 1/8 (one eights or .125) Fractions, Franctions and Percent Fractions, Franctions and Percent 1/9 (one ninth or .(1)) ångström Fractions, Franctions and Percent Metric, Distance and Length °C (degrees Celsius) °C (degrees Celsius) Temperature increment conversion, Temperature increment Temperature scale
    [Show full text]
  • Underwater Acoustics
    UNDERWATER ACOUSTICS - TASK 3: REPORTING A report prepared by TNO for the Joint Industry Programme on E&P Sound and Marine Life JIP Topic - Sound source characterisation and propagation 2016 www.soundandmarinelife.org About the E&P Sound & Marine Life Programme The ocean is filled with a wide variety of natural and man-made sounds. Since the [early 1990s], there has been increasing environmental and regulatory focus on man-made sounds in the sea and on the effects these sounds may have on marine life. There are now many national and international regimes that regulate how we introduce sound to the marine environment. We believe that effective policies and regulations should be firmly rooted in sound independent science. This allows regulators to make consistent and reasonable regulations while also allowing industries that use or introduce sound to develop effective mitigation strategies. In 2005, a broad group of international oil and gas companies and the International Association of Geophysical Contractors (IAGC) committed to form a Joint Industry Programme under the auspices of the International Association of Oil and Gas Producers (IOGP) to identify and conduct a research programme that improves understanding of the potential impact of exploration and production sound on marine life. The Objectives of the programme were (and remain): 1. To support planning of E&P operations and risk assessments 2. To provide the basis for appropriate operational measures that are protective of marine life 3. To inform policy and regulation. The members of the JIP are committed to ensuring that wherever possible the results of the studies it commissions are submitted for scrutiny through publication in peer-reviewed journals.
    [Show full text]
  • Byte, Kilobyte Quick Reference Chart
    Byte, Kilobyte Quick Reference Chart TERM STANDARD ABBREVIATION DESCRIPTION VALUE bit JEDEC & IEC b Represents a single unit of digital information that can be one of two values: 0 or 1. The 1 b term “bit” is shorthand for binary digit. (can be 0 or 1) byte JEDEC & IEC B Generally consists of eight (8) bits of digital information as a block. 8 b kilobyte1 JEDEC KB Consists of 1024 bytes of data as one block. 1024 B kilobyte2 METRIC kB Consists of 1000 bytes of data as one block. 1000 B kibibyte IEC KiB Consists of 1024 bytes of data as one block. 1024 B megabyte1 JEDEC MB Consists of 1024 kilobytes of data as one block. 1024 KB megabyte2 METRIC MB Consists of 1000 kilobytes of data as one block. 1000 kB mebibyte IEC MiB Consists of 1024 kibibytes of data as one block. 1024 KiB gigabyte1 JEDEC GB Consists of 1024 megabytes of data as one block. 1024 MB gigabyte2 METRIC GB Consists of 1000 megabytes of data as one block. 1000 MB gibibyte IEC GiB Consists of 1024 mebibytes of data as one block. 1024 MiB terabyte1 JEDEC TB Consists of 1024 gigabytes of data as one block. 1024 GB terabyte2 METRIC TB Consists of 1000 gigabytes of data as one block. 1000 GB tebibyte IEC TiB Consists of 1024 gibibytes of data as one block. 1024 GiB petabyte1 JEDEC PB Consists of 1024 terabytes of data as one block. 1024 TB petabyte2 METRIC PB Consists of 1000 terabytes of data as one block. 1000 TB pebibyte IEC PiB Consists of 1024 tebibytes of data as one block.
    [Show full text]
  • INFORMATION TECHNOLOGY Content
    Induction Course for MII Certificate Examination 2017 INFORMATION TECHNOLOGY Content . Part I Archiving Architecture Network Architecture Hardware and Software management . Part II Data mining for operations, quality assurance and planning purposes IT standards Replacement planning Hospital Authority (HA) Future Planning Archiving architecture . Computer Basic . Redundant array of independent disk (RAID) . Hierarchy Storage . Storage Network Technology Computer Basic . 1 byte = 8 bits . 1 kilobyte (K / Kb) = 2^10 bytes = 1,024 bytes . 1 megabyte (M / MB) = 2^20 bytes = 1,048,576 bytes . 1 gigabyte (G / GB) = 2^30 bytes = 1,073,741,824 bytes . 1 terabyte (T / TB) = 2^40 bytes = 1,099,511,627,776 bytes . 1 petabyte (P / PB) = 2^50 bytes = 1,125,899,906,842,624 bytes . 1 exabyte (E / EB) = 2^60 bytes = 1,152,921,504,606,846,976 bytes Computer Basic Multiples of bits Name Standard Name Value (Symbol) SI (Symbol) SI decimal prefixes Binary IEC binary prefixes kilobyte (kB) 103 = 10001 210 kibibyte (KiB) Name Value Name Value (Symbol) (Symbol) 6 2 20 megabyte (MB) 10 = 1000 2 mebibyte (MiB) 3 10 10 kilobit (kbit) 10 2 kibibit (Kibit) 2 9 3 30 gigabyte (GB) 10 = 1000 2 gibibyte (GiB) 6 20 20 megabit (Mbit) 10 2 mebibit (Mibit) 2 9 30 30 12 4 40 gigabit (Gbit) 10 2 gibibit (Gibit) 2 terabyte (TB) 10 = 1000 2 tebibyte (TiB) 12 40 40 15 5 50 terabit (Tbit) 10 2 tebibit (Tibit) 2 petabyte (PB) 10 = 1000 2 pebibyte (PiB) 15 50 50 petabit (Pbit) 10 2 pebibit (Pibit) 2 18 6 60 exabyte (EB) 10 = 1000 2 exbibyte (EiB) 18 60 60 exabit (Ebit) 10 2 exbibit (Eibit) 2 21 7 70 zettabyte (ZB) 10 = 1000 2 zebibyte (ZiB) 21 70 70 zettabit (Zbit) 10 2 zebibit (Zibit) 2 24 8 80 24 80 80 yottabyte (YB) 10 = 1000 2 yobibyte (YiB) yottabit (Ybit) 10 2 yobibit (Yibit) 2 1 word = 2 bytes = 16 bits *Depend on system* Computer Basic .
    [Show full text]
  • Mémoires : Types, Tailles, Utilisation
    Cours de Systèmes Logiques 1 Mémoires : Types, tailles, utilisation Etienne Messerli & Yann Thoma Reconfigurable and Embedded Digital Systems Institute Haute Ecole d’Ingénierie et de Gestion du Canton de Vaud This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License Septembre 2019 E. Messerli, Y. Thoma (HES-SO / HEIG-VD / REDS) Mémoires : Types, tailles, utilisation Septembre 2019 1 / 38 Plan 1 Introduction 2 Types de mémoires 3 PROM E. Messerli, Y. Thoma (HES-SO / HEIG-VD / REDS) Mémoires : Types, tailles, utilisation Septembre 2019 2 / 38 Introduction Caractéristique des mémoires But : conserver des informations 3 modes de fonctionnement : Accès en lecture Read pour obtenir l’information enregistrée dans une case spécifiée (adresse) Accès en écriture Write pour enregistrer une information dans une case spécifiée (adresse) Aucun accès à la mémoire (maintien) E. Messerli, Y. Thoma (HES-SO / HEIG-VD / REDS) Mémoires : Types, tailles, utilisation Septembre 2019 3 / 38 Introduction Les unités des mémoires Le bit : unité élémentaire d’information (0 ou 1) L’octet ou byte : paquet de 8 bits (vecteur, nombre), que l’on peut manipuler simultanément. On l’associe parfois à un caractère (code ASCII) Le mot ou word : paquet de bits que l’on peut manipuler simultanément (généralement 16, 32 ou 64 bits) Poids des bits dans un nombre entier : Le bit de poids fort d’un nombre est le bit de gauche en anglais : MSB pour most significant bit Le bit de poids faible d’un nombre est le bit de droite en anglais : LSB pour least significant bit E. Messerli, Y.
    [Show full text]
  • Unicorn Documentation Release 1.0.0
    unicorn Documentation Release 1.0.0 Philipp Bräutigam, Steffen Brand February 23, 2017 Contents 1 User Guide 3 1.1 Requirements...............................................3 1.2 Installation................................................3 1.3 ConvertibleValue and Unit........................................3 1.3.1 Unit...............................................3 1.3.2 ConvertibleValue........................................4 1.4 Converters................................................4 1.4.1 Converting...........................................4 1.4.2 Mathematical operations....................................5 1.4.3 Nesting.............................................5 1.4.4 Adding your own units.....................................6 1.4.5 Extending converters......................................6 1.4.6 Converter Registry.......................................8 1.4.7 Converter Implementations...................................9 1.5 Contribute................................................ 14 1.6 License.................................................. 15 i ii unicorn Documentation, Release 1.0.0 A framework agnostic library to convert between several units. Contents 1 unicorn Documentation, Release 1.0.0 2 Contents CHAPTER 1 User Guide Requirements • PHP 7.0 or higher • BCMath extension installed and enabled Installation The recommended way to install Unicorn is using Composer. Run the following command in your project directory: composer require xynnn/unicorn This requires you to have Composer installed globally, as explained
    [Show full text]