Introduction Updated
Introduction Updated
Muhammad Imran
Dr. Muhammad Imran
PhD – Electrical (Telecom) Engg – MCS-NUST (2014)
MS – Electrical (Telecom) Engg – MCS-NUST (2011)
BE – Communication System Engg – SEECS-NUST (2007)
Research Interests – Control systems, Model Reduction,
Signal Processing, Communication Systems
Author of 68x ISI indexed Journals and 15x Conference
Publications
5x PhD students and 2x MS students under supervision
2x PhD and 26x MS Students complete their degrees
https://mcs.nust.edu.pk/faculty/muhammad-
imran/
Assoc HoD (Sept 2015 - 2023)
Teaching Experience
▪ Digital Signal Processing (UG)
▪ Instrumentation and Measurement (UG)
▪ Linear Control Systems (UG & PG)
▪ Adaptive Control (PG)
▪ Linear Circuit Analysis (UG)
▪ Electrical Network Analysis (UG)
▪ Digital Logic Design (UG)
Text:
▪ Digital Design by M. Morris Mano & Michael D. Ciletti (4th
edition). (Textbook)
▪ M. Morris R. Mano and Michael D. Ciletti, Digital Design: With
an Introduction to the Verilog HDL, VHDL, and System Verilog.
6th Edition, Pearson Education, Inc., 2018.
Reference:
Lecture Slides:
▪ Will be provided after the lecture.
TENTATIVE GRADING POLICY:
Mids : 30%
Final Exam : 50%
Quiz : 10%
Assignments / Project : 10%
An ability to demonstrate management skills and apply engineering principles to one’s own
work, as a member and/or leader in a team, to manage projects in a multidisciplinary
environment.
PLO 12 Lifelong Learning
An ability to recognize importance of, and pursue lifelong learning in the broader context of
innovation and technological developments
CLO’s and Mapping with PLO’s
CLO’s PLO Domain Assessment
1 Identify different number systems, their 1 C2 Quiz / Exam
conversions and perform different operations on
them.
2 Apply the concepts of standard gates and 2 C3 Quiz / Exam
minimization methods to analyze and design
small scale combinational and sequential circuits
3 Analyze the operation of simple synchronous 3 C3 Quiz / Exam
sequential systems
4 Implement a digital system using modern tools 5 P3 Lab
5 Demonstrate a solution to a real-world problem and 11 A2 Lab
justify its timeline and resource allocation
Binary Systems
Binary Algebra
Simplification of Boolean Functions
Combinational Logic
Sequential Logic
Sequential Circuits
Registers and Counters
Memory and Programable Logic
Areas of study will include
1 0 0 1 1 1 0 0
128 + 0 + 0 + 16 + 8 + 4 + 0 + 0 = 156
Convert 28 decimal to binary
Binary → 11100
7 6 5 4 3 2 1 0
27 26 25 24 23 22 21 20
128 64 32 16 8 4 2 1
Convert decimal 0.6875 to binary
(0.6875)10 = (0.1011)2
Convert decimal 153 to Octal
153 = (231)8
3 2 1 0
𝟖𝟑 𝟖𝟐 𝟖𝟏 𝟖𝟎
512 64 8 1
Convert decimal 0.513 to Octal
(26153.7404)8 = (010 110 001 101 011 . 111 100 000 100)2
Bin Hex
0000 0
0001 1
0010 2
0011 3
Convention – write 0x before number 0100 4
Hex to Binary –convert digits 0101 5
0110 6
0111 7
0x2ac 1000 8
1001 9
1010 a
0010 1010 1100 1011 b
1100 c
0x2ac = 001010101100 1101 d
1110 e
1111 f
Bin Hex
0000 0
0001 1
0010 2
0011 3
Just convert groups of 4 bits 0100 4
101001101111011 0101 5
0110 6
0101 0011 0111 1011 0111 7
1000 8
1001 9
5 3 7 b 1010 a
1011 b
1100 c
101001101111011 = 0x537b 1101 d
1110 e
1111 f
Dec Hex
0 0
1 1
2 2
3 3
Just multiply each hex digit by decimal 4 4
value, and add the results. 5 5
0x2ac 6 6
7 7
8 8
2 • 256 + 10 • 16 + 12 • 1 = 684 9 9
10 a
11 b
12 c
163 162 161 160
13 d
4096 256 16 1 14 e
15 f
Binary similar to decimal arithmetic
No carries 1 0 1 1 0 0 Carries
Carries
0 1 1 0 0 1 0 1 1 0
+ 1 0 0 0 1 + 1 0 1 1 1
1 1 1 0 1 1 0 1 1 0 1
1 0 1 1 0 1 1 1 1 0
- 1 0 0 1 0 - 1 0 0 1 1
0 0 1 0 0 0 1 0 1 1
0 - 1 results in a borrow
Borrow makes it (10)2 =(2) 10
1 0 1 1 Successive additions of
X 1 0 1 multiplicand or zero,
multiplied by 2 (102).
1 0 1 1
Note that multiplication
0 0 0 0 by 102 just shifts bits
1 0 1 1 left.
1 1 0 1 1 1
Simply Subtraction (Subtraction by addition)
▪ R’s Complement (Radix Complement)
▪ In Binary 2’s complement
▪ In Decimal 10’s complement
▪ (R-1) Complement (Diminished Radix Complement)
▪ In Binary 1’s complement
▪ In Decimal 9’s Complement
Given a number N in base r having n digits, it is (rn -
1 )-N
Decimal: (10n -1 )-N
▪ If n=6 then 106-1=1000000-1=999999
▪ 9’s complement of 546700 is 999999-546700=453299
▪ In simple words subtract each digit from 9
Binary: (2n -1 )-N
▪ If n=4 then 24= (16)10= (10000)2
▪ 24 – 1 = (15)10= (1111)2
▪ Note: 1-0=1 and 1-1 =0 (Bit Changes)
▪ In simple words just change the bits
▪ 1’s complement of 1011000 is 0100111.
Given a number N in base r having n digits, it is
(rn –N)
Simply add one to the radix-1 complement
(rn –N) = [(rn -1 )-N] +1
Decimal:
▪ 2389➔ 7610+1=7611
Binary: (2n -1 )-N
▪ 101100➔010011+1=010100
M-N
Add the minuend, M to r’s complement of
Subtrahend, N
▪ M+ (rn -N)= M-N+ rn
If M ≥ N then sum will produce end carry rn.
Ignore it result is M-N
If M ≤ N (No Carry) then take r’s complement
of answer (Negative) result is N-M
Using 10’s complement subtract 72532-03250