hw3.pdf - UNIVERSITY OF CALIFORNIA BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences Elad Alon Homework#3 Due

hw3.pdf - UNIVERSITY OF CALIFORNIA BERKELEY College of...

This preview shows page 1 - 2 out of 3 pages.

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences Elad Alon Homework #3 EECS 150 Due Thursday, September 22, 5pm, 240 Cory drop box. 1. An “N:M compressor” creates an M-bit binary-weighted output that represents the N-bit unit- weighted input. For example, a full adder represents A+B+Cin as R+Cout, and thus implements a 3:2 compressor. For this problem, you will create a 5:3 compressor. The five equally-weighted input bits are represented by 3 binary-encoded outputs. a. Download the HW3 Verilog project (instructions at the end of this document). b. Implement a 5:3 compressor in “Compressor53.v”. A skeleton is provided; do not change the interface. c. Write a self-checking testbench for the 5:3 compressor in “HW3Testbench.v”. Complete the “Compressor53Test.input” test vector file containing all 32 test cases; see DDCA Section 4.8 – Testbenches for an example. Please edit the existing file so as not to break the simulation script. d. Simulate the circuit and show that it works. e. Introduce an error in the test vector file and show that the testbench reports a mismatch. 2. DDCA 1.64 3. Logic design: a. Derive the logic function for the gate shown below: b. What type of gate is this?
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Fall '96
  • cs150

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors