Question Paper: Fundamentals of HDL : Question Paper Jun 2015 - Electronics & Communication (Semester 4) | Visveswaraya Technological University (VTU)
0

Fundamentals of HDL - Jun 2015

Electronics & Communication (Semester 4)

TOTAL MARKS: 100
TOTAL TIME: 3 HOURS
(1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
1 (a) Name the different types of operations in HDL. Explain the bitwise, unary and Boolean logical operations present in Verilog with example.(8 marks) 1 (b) Name the VHDL data types. Explain the physical data type and composite data type in VHDL.(6 marks) 1 (c) Write the result of the following operation if A=10010011 and B=01101111:
i) A sr/04 ii) B) sla 03 iii) A <<02 iv) A%2 v) !(&B) vi) A & B in VHDL.
(6 marks)
2 (a) Write the VHDL code for 2×2 unsigned combinational array multiplier using dataflow description.(6 marks) 2 (b) Write the Verilog description for 4 bit ripple carry adder. Assume 5ns delay for all the gates and description using dataflow.(8 marks) 2 (c) Explain how signal declaration is done in VHDL and verilog.(6 marks) 3 (a) With the help of booth algorithm multiply the number (-8)× (7). Also write the VHDL code to realize the same.(10 marks) 3 (b) Write an HDL code to realize the positive edge triggered JK flip flop.
i) Use if statement in VHDL
ii) Use case statement in Verilog HDL.
(10 marks)
4 (a) Write the logic circuit for performing 3 bit comparison using 3 full adder. Also write the structural description to realize the same in VHDL.(10 marks) 4 (b) What is binding? Explain how binding between entity and architecture is done in VHDL and also binding between library and module in VHDL.(5 marks) 4 (c) Write the truth table of a logic system having 3 input and when the odd number of inputs are high then the output of the system will be high. Also write the Verilog code to realize the same using structural description.(5 marks) 5 (a) What is the need of procedure and task? Explain the declaration and body of the task.(4 marks) 5 (b) Write the procedure for converting an unsigned binary to an integer.(8 marks) 5 (c) What is a function? Write the code for finding greater of two signed numbers in Verilog using function.(8 marks) 6 (a) What is the need for mixed types description?(4 marks) 6 (b) Using package declaration declare one dimensional array type with N elements and L number of bits in each element. Write a VHDL code for finding the largest element present in one dimensional array declared using package.(8 marks) 6 (c) Write the truth table for the SRAM shown in Fig. Q6(c). Write a Verilog HDL code to read or write the data from SRAM.

(8 marks) 7 (a) Write the mixed language description of an adder shown in Fig. Q7(a). Invoke a VHDL full adder from Verilog.

(10 marks) 7 (b) Write the truth table of JK flipflop with clear. Describe the JK flipflop with clear using mixed language description.(10 marks) 8 (a) Write the general steps of synthesis in form of a flowchart and explain it.(10 marks) 8 (b) Write VHDL and Verilog code for signal assignment statement y=3x with x as of size bits. Also show the mapping of this signal assignment to gate level.(10 marks)

Please log in to add an answer.