Sir Syed University of Engineering and Technology Digital Logic Design (CS-128)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

SIR SYED UNIVERSITY OF

ENGINEERING AND
TECHNOLOGY
DIGITAL LOGIC DESIGN
(CS-128)
ASSIGNMENT NO: 01
NAME: SAUD SYED
ROLL NO: 2020-BSCS-142
SECTION: A
DEGREE PROGRAM: BS IN
COMPUTER SCIENCE
ANSWER 01:
(i)
The (C) Diagram seems to have the largest duty
cycle because it has the largest Pulse width as duty
cycle is directly proportional to pulse width.

(ii)
The (C) Diagram seems to have the largest pulse
width because its pulse remains high for ¾th of the
period and remains low for ¼th of the period.

(iii)
The three of the waves have the same time.
The time period is measured from the edge of one
pulse to the corresponding edge of next pulse. Time
period can be written as T=ON time + OFF time. So.
the form the above waveform we can see that the
distance from the age of 1 pulse to the
corresponding age of next pulse is equal fully stop
so we can say that the time period of with A , B & C
is equal.

(iv)
All the 3 waveforms have the similar frequency as
they are having the same time periods.

ANSWER 02:
Roll No: 142
Into Binary:
2 / 142
2 / 71 --- 0
2 / 35 --- 1
2 / 17 --- 1
2 / 8 --- 1
2 / 4 --- 0
2 / 2 --- 0
2 / 1 --- 0
(142)10 = (10001110)2
Into Octal:
8 / 142
8 / 17 --- 6
8 / 2 --- 1
(142)10= (216)8
Into HexaDecimal:
16 / 142
16 / 8 --- E
(142)10= (8E)16
ANSWER 03:
My Roll NO is 142,
In binary: 10001110
(-451)10 = (111000011)2
1’s Complement:
000111100
2’s Complement:
000111100
+1
=000111101
Adding with My Binary Roll NO:
10001110
+000111101
=011001011
1’s Complement:
100110100
2’s Complement:
100110100
+1
= -100110101 (ANS)

ANSWER 04:
FLOATING POINT:
The term Floating Point refers to the fact that a
number’s radix point (decimal point, or more
commonly in computers, binary point) can “float”,
that is, it can be placed anywhere relative to the
significant digits of the number.
CONVERSION: (142*10^12 into Floating Point)
142 * 10^12 = 142000000000000

ANSWER 05:
(i)
Largest Binary Number in 8 bits is 11111111.
= 1 * 2^7 + 1 * 2^6 + 1 * 2^5 + 1 * 2^4 + 1 * 2^3 +
1 * 2^2 + 1 * 2^1 + 1 * 2^0
= 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
= 255
The largest possible base 10 answer is 255.

(ii)
Smallest Binary Number in 8 bits is 00000000.
= 0 * 2^7 + 0 * 2^6 + 0 * 2^5 + 0 * 2^4 + 0 * 2^3 +
0 * 2^2 + 0 * 2^1 + 0 * 2^0
=0+0+0+0+0+0+0+0
=0
The smallest possible base 10 answer is 0.

You might also like