King Fahd University of Petroleum & Minerals
College of Computer Sciences and Engineering
Department of Computer Engineering
COE 202: Fundamentals of Computer Engineering (071)
Assignment 1
(Note: All references to the text book are made to Morris Mano an

Complement Representation
Positive numbers (+N) are represented in exactly the same way as in signed
magnitude system
egative numbers (-N) are represented by the complement of N (N)
N
Define the Complement N of some number N as:
N = M -N where, M = Some

Information Processing and Digital Systems
Objectives
In this lesson, some basic concepts regarding information processing and
representation are clarified. These include:
1. Analog versus Digital parameters and systems.
2. Digitization of Analog signals.

Number Systems
Before the inception of digital computers, the only number system that was in common use is
the decimal number system ( ( which has a total of 10 digits (0 to 9).
As discussed in the previous lesson, signals in digital computers may repre

3. Using Optical Means (Laser Disks, e.g. CDs)
Consider the case where values are represented by voltage signals:
Each signal represents a digit in some Number System
If the Decimal Number System is used, each signal should be capable of
representing on

Binary Codes
Binary Codes for Decimal Digits
Internally, digital computers operate on binary numbers.
When interfacing to humans, digital processors, e.g. pocket calculators, communication is
decimal-based.
Input is done in decimal then converted to bi

Machine Representation of Numbers
Registers
Digital computers store numbers in special digital electronic devices called
Registers
Registers consist of a fixed number n of storage elements.
Each storage element is capable of storing one bit of data (ei

Information Processing and Digital Systems
Digital versus Analog
We live in an Analog world.
Analog means Continuous
We use the word Analog to express phenomena or parameters that have
smooth gradual change or movement.
For example, earths movement ar

Complement Arithmetic
Basic Rules
1. Negation is replaced by complementing ( - N N )
2. Subtraction is replaced by addition to the complement.
Thus, (X Y) is replaced by (X + Y' )
3. For some number N, its complement N is computed as N = M N, where
M =

Complement Representation
Positive numbers (+N) are represented in exactly the same way as in signed
magnitude system
Negative numbers (-N) are represented by the complement of N (N)
Define the Complement N of some number N as:
N = M -N where, M = Some

The Radix Point
Consider a number system of radix r,
A number D of n integral digits and m fractional digits is represented as shown
MSD LSD
Digits to the left of the radix point (integral digits) have positive position indices,
while digits to the righ

Overflow Condition
If adding two n-digit unsigned numbers results in an n+1 digit sum, this
represents an overflow condition.
In digital computers, overflow represents a problem since register sizes are
fixed, accordingly a result of n+1 bits cannot fit

Number Base Conversion
Given the representation of some number (XB) in a number system of radix
B, this lesson will show how to obtain the representation of the same number (X)
in another number system of radix A, i.e. (XA).
Converting Whole (Integer) Num

COE 202 Digital Logic Design, Term 161
Verilog Assignment# 1
Due date: Thursday, Nov. 3rd, 2016
Let F (W,X,Y,Z) = M(1,2,4)
d(W,X,Y,Z) = m(8,10,11,13,14)
be a Boolean function with the following dont care conditions:
a. Implement F using minimum number of

COE 202 ASSIGNMENT 2
ALRAHMA ABDULRAHMAN
DR. MOHAMED ELRABAA
201436160
Q1)
a) Write a parameterized synthesizable Verilog description (i.e. dont
use the * or the / operators) of a circuit that have two N-bit un-signed
inputs A and B. The output
Y = |3*(A

Objectives
In this lesson, we will study basic arithmetic operations in various number systems with a particular
stress on the binary system.
Approach
Arithmetic in the Binary number system (addition, subtraction and multiplication).
Arithmetic in othe

Number Systems
Introduction & Objectives:
Before the inception of digital computers, the only number system that was in common use is the
decimal number system ( ) which has a total of 10 digits (0 to 9).
As discussed in the previous lesson, signals in

BINARY CODES
TEST THIS WEEK! REVIEW CLASS WEDNESDAY
Objectives
In this lesson, you will study:
1. Several binary codes including
Binary Coded Decimal (BCD),
Error detection codes,
Character codes
2. Coding versus binary conversion.
Binary Codes for Decima

King Fahd University of Petroleum & Minerals
College of Computer Sciences and Engineering
Department of Computer Engineering
COE 202: Fundamentals of Computer Engineering (071)
Assignment 2
1. Prove the identity of each of the following Boolean equations,

King Fahd University of Petroleum & Minerals
College of Computer Sciences and Engineering
Department of Computer Engineering
COE 202: Fundamentals of Computer Engineering (071)
Assignment 3
(Note: All references to the text book are made to M. Morris Mano

King Fahd University of Petroleum & Minerals
College of Computer Sciences and Engineering
Department of Computer Engineering
COE 202: Fundamentals of Computer Engineering (071)
Assignment 4
1. The full-adder of the following figure receives two external i

King Fahd University of Petroleum & Minerals
College of Computer Sciences and Engineering
Department of Computer Engineering
COE 202: Fundamentals of Computer Engineering (071)
Assignment 5
1. Implement the following state diagram using SR and T flip flop

King Fahd University of Petroleum & Minerals
College of Computer Sciences and Engineering
Department of Computer Engineering
COE 202: Fundamentals of Computer Engineering (071)
Assignment 6
1. Write the state diagram for a circuit that if the input 1010 o

College of Computer Sciences & Engineering
Department of Computer Engineering
COE: 202: Fundamentals of Computer Engineering (071)
Quiz I (Solution)
Qn. 1.
Find the value of X that satisfies the following equations.
a. (173)16 (X)2 = (2123)4
(X)2 = (173)1

College of Computer Sciences & Engineering
Department of Computer Engineering
COE: 202: Fundamentals of Computer Engineering
(071)
Quiz I
Qn. 1.
Find the value of X that satisfies the following equations.
a. (173)16 (X)2 = (2123)4
b. (739)10 = (X)7
c. (11

King Fahd University of Petroleum & Minerals
College of Computer Sciences and Engineering
Department of Computer Engineering
COE 202: Fundamentals of Computer Engineering Summer 071
Syllabus
Catalog Description
Introduction to Computer Engineering. Digita

Notes
The output of an AND gate is 1 if and only if ALL its input signals are 1s, otherwise it is 0.
A function of two input binary variables will have a truth table of 4 rows since each variable may
assume any one of two possible values (0 or 1).
A funct

STANDARD AND CANONICAL FORMS CLASS NOTES (LESSON 8)
CHAPTER OBJECTIVES
Learn Binary Logic and BOOLEAN AlgebraLearn How to Map a Boolean
Expression into Logic Circuit Implementation Learn How To Manipulate
Boolean Expressions and Simplify ThemLesson Ojecti

Practical Aspects of Logic Gates
Introduction & Objectives
Logic gates are physically implemented as Integrated Circuits (IC).
Integrated circuits are implemented in several technologies.
Two landmark IC technologies are the TTL and the CMOS technologies.

COE 202 ASSIGNMENT 1
ALRAHMA ABDULRAHMAN
DR. MOHAMED ELRABAA
201436160
Let F (W,X,Y,Z) = M(1,2,4) be a Boolean function with the
following dont care conditions: d(W,X,Y,Z) = m(8,10,11,13,14)
a.
Implement F using minimum number of NAND gates
b.
Implement