Docsity

Assignment 9 - Background Study Digital Logic | ECE 349, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 349 Homework Assignment #9
Show your work! You will not receive full credit for the answer alone.
1. Using a 74x163 4-bit binary counter plus two NAND gates (and inverters, if needed),
design a counter circuit that counts in the sequence 0, 1, 2, 3, 4, 5, 6, 7, 10 , 11, 12,
13, 0 ... Do not leave any inputs on the counter unconnected.
2. Use two 74x163 4-bit binary counters and a single inverter to design a counter circuit
that counts from 0 to 128 repeatedly (a modulo-129 counter). Do not leave any inputs
on the counters unconnected.
3. Use a 74x178 shift register and a D flip-flop to generate a signal that effectively divides
a supplied clock signal by eight and has a 50% duty cycle. Accomplish the same task
with a 74x163 counter.
4. Draw a block diagram that shows how a ROM and D flip-flops can be connected to
realize the table below. Specify the truth table for the ROM.
PS NS Output
A B WX = 00 01 10 11 YZ = 00 01 10 11
00 11 10 01 00 00 10 11 01
01 00 01 10 11 10 10 11 11
10 11 00 01 01 00 10 11 01
11 10 10 01 00 00 00 01 01
5. Describe how two 16R4 PALs could be connected together to implement a state ma-
chine with 64 states, four inputs, and four Mealy-type outputs.
6. Write the 8-bit signed-magnitude, two’s-complement, and ones’-complement represen-
tations for each of the decimal numbers: 0, -0, 127, -128, 15, -25.
7. Indicate whether or not overflow occurs when adding the following 8-bit two’s comple-
ment numbers:
(a) 11010100 and 10101011
(b) 10111001 and 11010110
(c) 01011101 and 00100001
(d) 00100110 and 01011010
8. Repeat the previous problem using assuming that the numbers are one’s complement
numbers.
9. A computer has a word length of 8 bits (including sign). If two’s complement is used
to represent negative numbers, what range of integers can be stored in the computer?
If one’s complement is used? (Express your answers in decimal.)
pf2

Partial preview of the text

Download Assignment 9 - Background Study Digital Logic | ECE 349 and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

ECE 349 Homework Assignment #

Show your work! You will not receive full credit for the answer alone.

  1. Using a 74x163 4-bit binary counter plus two NAND gates (and inverters, if needed), design a counter circuit that counts in the sequence 0, 1, 2, 3, 4, 5, 6, 7, 10 , 11, 12, 13, 0 ... Do not leave any inputs on the counter unconnected.
  2. Use two 74x163 4-bit binary counters and a single inverter to design a counter circuit that counts from 0 to 128 repeatedly (a modulo-129 counter). Do not leave any inputs on the counters unconnected.
  3. Use a 74x178 shift register and a D flip-flop to generate a signal that effectively divides a supplied clock signal by eight and has a 50% duty cycle. Accomplish the same task with a 74x163 counter.
  4. Draw a block diagram that shows how a ROM and D flip-flops can be connected to realize the table below. Specify the truth table for the ROM. PS NS Output A B WX = 00 01 10 11 YZ = 00 01 10 11 00 11 10 01 00 00 10 11 01 01 00 01 10 11 10 10 11 11 10 11 00 01 01 00 10 11 01 11 10 10 01 00 00 00 01 01
  5. Describe how two 16R4 PALs could be connected together to implement a state ma- chine with 64 states, four inputs, and four Mealy-type outputs.
  6. Write the 8-bit signed-magnitude, two’s-complement, and ones’-complement represen- tations for each of the decimal numbers: 0, -0, 127, -128, 15, -25.
  7. Indicate whether or not overflow occurs when adding the following 8-bit two’s comple- ment numbers: (a) 11010100 and 10101011 (b) 10111001 and 11010110 (c) 01011101 and 00100001 (d) 00100110 and 01011010
  8. Repeat the previous problem using assuming that the numbers are one’s complement numbers.
  9. A computer has a word length of 8 bits (including sign). If two’s complement is used to represent negative numbers, what range of integers can be stored in the computer? If one’s complement is used? (Express your answers in decimal.)
  1. Refer to Figure 21-6 below. Show the contents of the product register after each addition and shift step when multiplying 1001 by 1100.
  2. (Optional 2 points) Turn in your homework on time and get two points.