1 / 17

Class Exercise 1B

This exercise set covers topics such as multipliers, full adders, arithmetic and logic circuits, memory, flip-flops, and ROM vs RAM.

robertb
Download Presentation

Class Exercise 1B

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Class Exercise 1B

  2. Rules • If you believe that you know a correct answer, please raise your hand • I will select one or more students (independently whether an answer given by the first student is correct or incorrect) • Please, identify yourself by first name and give an answer • Correct answer = 1 bonus point ECE 448 – FPGA and ASIC Design with VHDL

  3. Problem 15 What is the width of an output of a 4x4 unsigned multiplier? What is the width of an output of a 4x4 signed multiplier? What is the width of an output of a NxN unsigned multiplier?

  4. Problem 16 What is the width of an output of a 4x8 unsigned multiplier? What is the width of an output of a 4x8 signed multiplier? What is the width of an output of a NxM unsigned multiplier?

  5. Problem 17 Give an example of binary inputs to an unsigned 4x4 multiplier and a signed 4x4 multiplier that produce different results.

  6. Problem 18 Show how to implement Full Adder using two 2-to-1 multiplexers and a minimum number of logic gates

  7. Problem 19 • Explain how to perform the following operations • Z = X+Y mod 24 • Z = X*Y mod 24 • using a 4-bit adder with carry in (cin) • and carry out (cout), • and a 4x4 multiplier, respectively, • where X, Y, and Z are 4-bit variables.

  8. Problem 20 Explain how to perform the following operation using simple arithmetic and logic circuits: Y = (X*(2X + 1)) mod 24, where X and Y are 4-bit variables.

  9. Problem 21 Explain using simple diagrams (based on medium-scale logic components) how to efficiently perform the following operations in hardware using combinational logic only A. C = A <<< 3 B. C = A <<< B, where A, B, and C are 8-bit variables.

  10. Problem 22 What is a size of a memory with a 4-bit address input and an 8-bit data output? What is a size of a memory with an m-bit address input and an n-bit data output?

  11. Problem 23 Show how to implement Full Adder using ROM (diagram + contents of ROM)

  12. Problem 24 Show how to implement a 3x3 squarer, implementing equation y = x2, using ROM (diagram + contents of ROM).

  13. Problem 25 Explain how to perform the following operation using a single-port ROM only: Y = (X*(2X + 1)) mod 28, where X and Y are 8-bit variables. Show the implementation as a ROM, including the width of the address input and the width of the data output, as well as the contents of memory locations with addresses 0, 1, 8 and 16.

  14. Problem 26 What is a function of a tri-state buffer?

  15. Problem 27 What is a difference between a D-flip-flop and a latch?

  16. Problem 28 What is a difference between a D-flip-flop with asynchronous vs. synchronous clear?

  17. Problem 29 What is a difference in terms of required inputs and outputs between ROM and RAM of the same size (e.g. 2m x n)?

More Related