Assignment 3
Assignment 3
Question 1: (Lecture 8)
Given below is a sentence, for this sentence perform the following actions:
i) Convert the following sentence into its equivalent ASCII HEX values:
(Hint: “car” = 63 61 72)
ii) For the equivalent HEX value chain found in part (i), find the binary
(base 2) representation. How many nibbles of information are there?
iii) For the equivalent binary value chain found in part (ii), find the Gray
Code representation. Why is this representation used?
iv) For the sentence above, find the decimal values (just like the HEX
values in part (i)) and then find the BCD representation.
Between BCD and Gray Code representation - which would require more
space for storage, explain why.
Marks = 2 + 2 + 2 + 3 + 1
Question 2: (Lecture 9, 10)
ii) What is the range of signed and unsigned HEX values that can be
represented in a 9 bit FlipFlop Register?
iii) Convert the following HEX values to their binary equivalents and then
perform Binary Multiplication between them. Show all the steps.
5A and 2C
Marks = 5 + 2 + 3
Question 3: (Lecture 11)
iii) Write a VHDL code for a 4-bit counter module that counts from 14 -> 2
and repeat.
Marks = 5 + 3 + 3
Question 4: (Lecture 12, 13)
i) Construct a CMOS NAND gate, NMOS NAND gate and NMOS NOR
gate.
ii) What are the differences between Resistor Transistor Logic, Directly
Coupled Transistor Logic and Transistor Transistor Logic? Draw 3 input
NAND using RTL, 4 input NAND using DCTL.
iii) A certain gate draws 3mA when its output is HIGH and its average
power dissipation, VCC is 7V for Transistor Transistor Logic. How much
does the gate draw when its output is LOW?
It draws 4.5 mA when in Transition time. Determine average power
dissipation for CMOS.
iv) Determine if the LSTTL (5V) can drive a CMOS (5V, HCT) circuit and
vice versa.
Marks = 3 + 3 + 2 + 2