Thapar University 2007 M.Tech Electronics and Communication Engineering hardware discription language vl006 - Question Paper
hardware discription language vl006
second mid semester exams
Electronics & Communication Engineering Department M.E. (EC) Is' Year, VlTech Is' Year (VLSI Design & CAD)
VL006 Hardware Description Languages (9,h April, 2007)
Second Mid Semester Exam Time: 60 min Marks: 12
NOTE: Attempt all questions strictly in sequence.
1. Write a resolution function for resolving multiple values from tristate drivers. (3)
2. Write the description of a half subtractor using direct instantiation. (3)
3. Write a procedure called scan_results with an in mode bit-vector signal parameter results, and out mode variable parameters majority_value of type bit, majority _count of type natural and tie of type Boolcan.Thc procedure counts the occurrences of 0 and I values in results. It sets majority_value to the most frequently occurring values, majority_count to the number of occurrences and tie to true if there are an equal number of occurrences of 0* and 1 *. (4)
4. Write a block with a guard expression that is true when a signal en=T or *H\ The block should contain a guarded signal assignment statement that assigns an inverted version of the signal A to the signal z_out when the guard expression is true. Declare the GUARD signal explicitly within the block. (2)
Attachment: |
Earning: Approval pending. |