D75P 34 – HNC Computer Architecture Interim Week Hexadecimal revisited! © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except.

Slides:



Advertisements
Similar presentations
How to Convert Decimal Numbers to Binary EXAMPLES.
Advertisements

Number Systems and Codes
DH2T 34 – HNC Computer Architecture 1 Week 2 Introduction to the Hexadecimal Number System © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen.
CSC1016 Coursework Clarification Derek Mortimer March 2010.
Computer Structures Lecture 2: Working with 0’s and 1’s.
Assembly Language and Computer Architecture Using C++ and Java
Level ISA3: Information Representation
Introduction to Programming with Java, for Beginners
Assembly Language and Computer Architecture Using C++ and Java
Chapter 4.2 Binary numbers: Arithmetic
Data Representation in Computers
The Binary Number System
Number Systems and Arithmetic
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
© Copyright 2012 by Pearson Education, Inc. All Rights Reserved. 1 Number Systems 0, 1 0, 1, 2, 3, 4, 5, 6, 7 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 0, 1, 2, 3,
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Chapter 16 Binary and Hexadecimal Numbers. §16.2 thru 16.3 – Addition and Subtraction of Binary Numbers Binary = Base 2 Addition and subtraction are similar.
Real Numbers and the Decimal Number System
Binary and Hexadecimal Numbers
Memory Terminology & Data Representation CSCI 1060 Fall 2006.
Higher Computing Data Representation.
Positional Number Systems
Numeral Systems Subjects: Numeral System Positional systems Decimal
Numbering Systems CS208.
IT253: Computer Organization
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
Number Systems CIT Network Math
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
D75P 34 – HNC Computer Architecture Week 5 Memory Maps. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated Prepared.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Number Systems 0, 1 0, 1, 2,
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Working with 8-bit bytes and hexadecimal
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
D75P 34 – HNC Computer Architecture Week 10 Korean Text Support. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated.
Codes Octal Power Hexadecimal ASCII BCD Code
D75P 34R – HNC Computer Architecture Week 1 Introduction to Binary Storage © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless.
Announcement!!! First exam next Thursday (I’m trying to give you a first exam before the drop date) I’ll post a sample exam over the weekend and will try.
D75P 34R - HNC Computer Architecture Week 4 Signed Integers © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise.
Topic 14.1 Extended Hexadecimal  Decimal is base 10 and uses 10 digits (0,1,2,3,4,5,6,7,8,9).  Binary is base 2 and uses 2 digits (0,1).  Computers.
Binary Decimal Hexadecimal
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
CMSC 1041 Binary / Hex Binary and Hex The number systems of Computer Science.
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
Dr. Clincy Slide 1 CS Chapter 2 (Part 1 of 3) Dr. Clincy Professor of CS Ch 2 Appendix pages will not be on the exam – already covered this.
 Human language : commonly used to express feeling and understand what other people expression.  Computer language : are a languages by which a user.
Binary Representation in Text
Binary Representation in Text
Appendix F Number Systems binary 0, 1 0, 1, 2, 3, 4, 5, 6, 7
Topic: Binary Encoding – Part 1
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Number Systems and Codes
Binary, Denary, Hexadecimal Conversion Binary Addition
Binary and Hexadecimal
Unit 18: Computational Thinking
What is a byte? What is it? How would you use it?
Dr. Clincy Professor of CS
Introduction to Chapter 2
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Number Systems.
Binary / Hex Binary and Hex The number systems of Computer Science.
Chapter Four Data Representation in Computers By Bezawit E.
Hexadecimal.
Binary & Hex Review.
WJEC GCSE Computer Science
Networks & I/O Devices.
Dr. Clincy Professor of CS
Presentation transcript:

D75P 34 – HNC Computer Architecture Interim Week Hexadecimal revisited! © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where stated Clipart on slide 2 © with non-distribution licence Prepared 29/9/03www.clipart.com

In order to complete the Memory Map assessment question, you must first be very, very familiar with decimal – hexadecimal conversions.

Hexadecimal means a “number base” of 16, from “hex” meaning 6, and “decimal”, meaning 10. It is used solely as a convenient translation “language” from the computer’s native counting language – binary – to ours, decimal. So although a computer “thinks” in binary, it displays the results in hex!

The ancient Egyptians used 12…. The Greeks and Arabs used 10… The Romans did not use number bases at all! So although they were good at building, painting and administration, they never developed complex mathematical systems as the Greeks and Arabs did. The Ancient Babylonians used number bases of 60….

We already saw that computers are very basic things – they can only recognise two states, thus giving us the term “binary”. They can accomplish quite a lot with just two states, though – combinations of binary digits can be used to represent ….

Numbers….. … Letters … Colours … …and many other things besides!

Unfortunately for us, although computers can handle large strings of similar looking numbers….. …the human eye gets very confused when presented with large groups of identical-looking objects!

This is part of a program written for one of the first electronic computers, the Manchester Mark 1, in In those days all programming was done in binary. This was very tedious and prone to lots of errors!

So nowadays we convert the binary stored by the computer into hex, to make it easier to read and understand

To convert a decimal number – to hexadecimal … …start by dividing by 16 … …and continue until you run out of numbers. (When dividing, just do the whole numbers, ignore the remainders for the moment…)

Now we turn our attention to the remainders – multiply them all by 16 to get the red column on the right….. …read from the BOTTOM UP to get 787DD4h … …or in binary!

To convert from hex - DC0Fh - to decimal, you have to do some multiplying …. Hexadecimal number base – powers of ’s4096’s256’s16’s1’s D or 13C or 120F or 15 (13 x 4096) + (12 x 256) + (0 x 16) + (15 x 1) = 56,335. The binary equivalent would be

1. Work out how much memory can be addressed. This is always 2 number of address lines. The top address will always be this number – 1. When writing your memory map, you can follow this sequence ….

2. Notice how big the memory locations are. (They might not always be one byte!) This could be important when working out sizes later. Draw a column and label it from 0 – top address.

3. Now begin to fill in the bits. The question might take different forms. “Bootstrap code begins at 0 and uses 32 bytes. Assume 1 byte per address.” Starting from 0, the top address will be NOT 32 but 31. Remember 0 counts as a number!

“I/o starts from 30h and uses 64 bits. Assume 2 bytes per address” Conversions …  8 bits in a byte (nowadays!)  1024 bytes in a kilobyte  1024 kilobytes in a megabyte This block uses 8 bytes, and each address uses 2 bytes. So the actual locations used will be 30h to 33h!

“The top 32 kb are used for the algorithm. Assume 16 address lines and 1 byte per address.” The top address will be (2 16 – 1) = 65535, or FFFFh. 32kb is equivalent to (32 x 1024) = bytes, or locations. Counting down, this gives us a starting point of 32768, or 8000h.

Note that if the space occupied is an even number of addresses, and it starts from an odd number, it must always end on an even one (and vice versa).

Remember to label all your used blocks and free space! The essential bits…  The top address must be correct!  There will be at least two contiguous blocks.  There must be a full set of hex or decimal figures.

Summary Although computers store things as binary values, they display things in hexadecimal. This is important when describing a Memory Map. The top address will be (2 address bus width – 1). Fill in the used memory as directed in the question. Finally, label all the used blocks and free space.