Digital System Laboratory Roll No: - Maximum Marks: 10 Name: Duration: 30 Mins Answer All The Following Questions
Digital System Laboratory Roll No: - Maximum Marks: 10 Name: Duration: 30 Mins Answer All The Following Questions
A. #2 check=0
#4 check=1
B. #2 check=0
#4 check=1
#4.1 check=0
#4.2 check=1
C. Error in the code
D. #1 check=0
#2 check=1
2. On successful execution of the following code, what are the values of the following?
A) out1: ________________
B) out2: ________________
(1M)
Code: -
Note: Make use of the Add_Nbit and MUL module to write the verilog code for Y= C + (A*B);
5. Write an HDL Verilog code for Y = A*B; where A and B are of 2-bit binary unsigned numbers. (3M)