My Report

VHDL Mock Test 6


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement
 10%

Question 1 of 10

1. What is the most important use of STD_LOGIC_1164 package?

Question 1 of 10

Question 2 of 10

2. Which of the following sequential statement can’t be used in a function?

Question 2 of 10

Question 3 of 10

3. The function is called from the ________

Question 3 of 10

Question 4 of 10

4. A package may consist of _________ design units.

Question 4 of 10

Question 5 of 10

5. Among the four packages given below, which is the most used package of VHDL?

Question 5 of 10

Question 6 of 10

6. TEXTIO package is included in the code by default.

Question 6 of 10

Question 7 of 10

7. Which of the following can’t be the parameter of function?

SIGNAL a, b : IN STD_LOGIC
VARIABLE c : INTEGER
CONSTANT d : INTEGER

Question 7 of 10

Question 8 of 10

8. In the following code, which of the lines corresponds to the function call and function definition?

L1 : ARCHITECTURE adder OF adder IS
L2 : BEGIN
L3 : x <= sum ( SIGNAL a : STD_LOGIC; SIGNAL b : STD_LOGIC);
L4 : END adder;
L5 : FUNCTION sum ( SIGNAL a : STD_LOGIC; SIGNAL b : STD_LOGIC) RETURN STD_LOGIC IS
L6 : VARIABLE c : INTEGER;
L7 : BEGIN
L8 : c<= a OR b;
L9 : RETURN c;
L10 : END sum;

Question 8 of 10

Question 9 of 10

9. Which of the following is not the legal name of a function?

Question 9 of 10

Question 10 of 10

10. A resolution function is invoked when ________

Question 10 of 10


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.