🧪 VHDL MCQ Quiz Hub

VHDL Mcq– Behavioural Modelling

Choose a topic to test your knowledge and improve your VHDL skills

1. The most basic form of behavioral modeling in VHDL is _______




2. For any concurrent assignment statement, which of the following is true?




3. Which of the circuit is described by following VHDL code? LIBRARY IEEE; USE IEEE.std_logic_1164.all; ENTITY my_func IS PORT(x, a, b : IN std_logic; q : OUT std_logic); END my_func; ARCHITECTURE behavior OF my_func IS SIGNAL s : INTEGER; BEGIN WITH s SELECT q <= a AFTER 10 ns WHEN 0; b AFTER 10 ns WHEN 1; s <= 0 WHEN x = ‘0’ ELSE 1 WHEN x = ‘1’; END behavior;




4. The main problem with behavioral modeling is ________




5. What is the use of simulation deltas in VHDL code?




6. Which function is used to create a single value for multiple driver signals?




7. Refer to the VHDL code given below, which of the following signal is driven by multiple drivers? LIBRARY IEEE; USE IEEE.std_logic_1164.all; ENTITY function IS PORT (b, c : IN BIT; a, d : OUT BIT); END function; ARCHITECTURE behavior OF my_func IS BEGIN a <= b; a <= c; d <= b; END behavior;




8. A signal is driven by two signals b and c. How the value of b and c will be resolved to calculate the value of a?




9. Which of the following is default delay in VHDL?




10. What must be overcome by the output signal to change the value in case of inertial delay?




11. The inertia value in inertial delay model is equal to _________




12. Transport delay is a kind of __________




13. A buffer with single input A and single output B has a delay of 20 nanosecond. If the value of input A changes after 10 ns from 0 to 1 and it changes again from 1 to 0 at 20 ns. At what time, the value of output B will be 1, if the inertial delay model is used?




14. The keyword TRANSPORT in any assignment statement specifies _______




15. A buffer with single input A and single output B has a delay of 20 nanosecond. If the value of input A changes after 10 ns from 0 to 1 and it changes again from 1 to 0 at 20 ns. At what time, the value of output B will be 1, if the transport delay model is used?




16. In the VHDL code given below, which delay model is used? LIBRARY IEEE; USE IEEE.std_logic_1164.all; ENTITY buffer IS PORT(a : IN STD_LOGIC; b : OUT STD_LOGIC); END buffer; ARCHITECTURE buf OF buffer IS BEGIN b <= a AFTER 20 ns; END buf;




17. For zero delay events, which of the following mechanism is used?




18. Which of the following delay model follows the principle of preemption?




19. Which of the following is not the application of inertial delay?




20. The condition to implement the simulation delta delay is _______




21. In which part of the VHDL code, generics are declared?




22. Which of the following is correct declaration for a generic?




23. What is the main use of the generic parameter?




24. Which of the following is true about Generics?




25. In most synthesis tools, only generics of type ________ are supported.




26. GENERIC (n : INTEGER := 8); In this statement, the mode of generic ‘n’ is _______




27. Which function is used to map a generic on design?




28. Generics in VHDL can be treated as _______




29. Which of the following can be used as a generic in a complex digital design with many inputs and two outputs?




30. What do you mean by a block?




31. What is the scope of variables or signals declared in the block statement?




32. Which of the following defines the interface to the block?




33. Guarded block has an extra ________ expression.




34. What should be the type of the value of guard expression?




35. What is the main purpose of using blocks?




36. Which of the following is better for design partitioning?




37. Which of the following is true about guarded blocks?




38. Which of the following statement is used to describe regular structures? d)




39. What will be the values of out1 and out2? ARCHITECTURE bhv OF example IS CONSTANT out1 : BIT; CONSTANT out2 : BIT; BEGIN B1 : BLOCK CONSTANT S : BIT := 0; BEGIN B1-1 : BLOCK SIGNAL S : BIT := 1; BEGIN out1 <= S; END BLCOK B1-1; out2 <= S; END BLOCK B1; END bhv;




40. What is the use of FOR generation?




41. Which of the following is the use of IF generation?




42. Which of the following is defined in structural modeling?




43. Which of the following is not a way of partitioning a design?




44. What is the basic unit of structural modeling?




45. Which of the following is similar to the entity declaration in structural modeling?




46. What do you mean by component instantiation?




47. The structural model is similar to___________




48. Which of the following is correct syntax for component declaration?




49. Which of the following is the correct syntax for component instantiation?




50. Which of the following must be known to describe a structural model in VHDL?