VHDL MCQ Quiz Hub

VHDL Mcq – Types of VHDL Modelling

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

1. What does modeling type refer to?




2. Which of the following is not a type of VHDL modeling?




3. In behavioral modeling, what do descriptive statements describe?




4. In behavioral modeling, what do descriptive statements describe?




5. Which of the following statement is used in structural modeling?




6. What is the basic unit of behavioral description?




7. Which of the following modeling style follows the sequential processing of instructions?




8. _________ modeling uses logic gates and basic blocks to describe the functionality of system.




9. Which of the following architecture defines the data flow modeling of ‘and’ gate?




10. Refer to the code given below, which type of modeling is used to describe the system? ARCHITECTURE and_1 OF and_gate IS begin process(a, b, y) begin IF(a = ‘1’ and b = ‘1’) THEN y <= ‘1’; ELSE y <=’0’; end IF; END process; END and_1;




11. Which logic function is described in the code given below? ARCHITECTURE my_func OF my_logic IS begin process(a, b, y) begin IF(a = ‘0’ and b = ‘0’) THEN y <= ‘0’; ELSIF (a = ‘1’ and b= ‘1’) THEN y<= ‘0’; ELSE y <= ‘1’; END if; END process; END my_func;




12. Which modeling style does the following code represents? Architecture my_logic OF logic_func IS Component gate_1 PORT (b1, b2 : IN BIT; s : OUT BIT); END component; Component gate_2 IS PORT (b1,b2 : IN BIT; C : OUT BIT); END component; SIGNAL a, b, sum, carry : BIT; begin EXOR : gate_1 portmap (a, b, sum); AND : gate_2 portmap (a,b ,carry); END my_logic




13. Ports are known as _________ to the component.




14. What is the use of a function called port map()?




15. The signal assignment is considered as a ________




16. How can we use an assignment statement as a sequential assignment?




17. The sequential assignment statement is activated, whenever ________




18. The concurrent assignment statement is activated whenever ______




19. The concurrent assignment statement is activated whenever ______




20. Which of the following is correct syntax for a signal assignment statement (if {} specifies an optional part)?




21. The conditional assignment statement is a _________ assignment.




22. The conditional assignment statement is a _________ assignment.




23. Delays are generally ignored in ________ assignments statements.




24. Which of the following can’t be a mode for target operand of assignment statement?




25. Which of the following is a variable assignment statement?




26. Which of the following is a keyword used for conditional assignment?




27. For a signal used in sequential assignment, it can have _______




28. The selected concurrent statement is equivalent to ________ sequential statement.




29. Those statement which are placed under ________ are concurrent.




30. Process is a _______ statement.




31. If there is more than one process in a VHDL code, How they are executed?




32. Local variables in a process can be declared __________




33. Sensitivity list of a process contains __________




34. Which of the following statement is used when there are no signals in the sensitive list?




35. What is the effect of the sensitivity list on the process?




36. If no signal in the sensitivity list is changed, then how many times the process will be executed?




37. Which of the following statements can be seen as sequential equivalent to the selected concurrent assignment?




38. A __________ can’t be declared inside a process.




39. The process can be __________ by using WAIT statements.




40. A postponed process runs when ___________




41. Which of the following statement can’t be used inside a process?




42. The value of y is initially 1 and it is changed after one delta cycle to 0. How many delta cycles (starting from the beginning) will be taken to change the initial value of z, refer to the process given below? PROCESS (y) BEGIN x <=y; z <= NOT y; END PROCESS




43. A combinational process must have all the _________ signals in its sensitivity list.




44. Which of the following circuit can’t be described without using a process statement?




45. Which of the following signal uses keyword EVENT?




46. Refer to the code given below, what kind of circuit is designed? SIGNAL x : IN BIT; SIGNAL y : OUT BIT; SIGNAL clk : IN BIT; PROCESS (clk) BEGIN IF (clk’EVENT and clk = ‘1’) y ;&lt= x; END PROCESS




47. The driver(s) of signal y is _________ PROCESS () BEGIN y <= ‘1’; y <= x; y <= z; END PROCESS;




48. The resolution function is needed to resolve the value of _______ PROCESS () BEGIN y <= x; y <= z; END PROCESS;




49. What kind of statement is the IF statement?




50. Which of the following keyword is not associated with IF statement?




51. Which of the following represents the correct order for keywords?




52. If the condition of IF statement is an expression, then what should be the type of the result of the expression?




53. In the following lines, what should be the value of signal y, if a and b both are at logic high? PROCESS (a, b) BEGIN IF( a XOR b <=’1’) y <= ‘1’; ELSIF (a AND b <= ‘0’) y <= a; ELSE y <= ‘0’; END IF; END PROCESS;




54. Which of the following condition has topmost priority?




55. What logic is described in the following logic? PROCESS (a, b) IF (a = ‘1’ AND b = ‘0’ OR a= ’0’ AND b = ‘1’) THEN y <= ‘1’; ELSIF (a = ‘1’ AND b= ‘1’) THEN y <= ‘0’; ELSE y <= ‘0’; END IF




56. One IF statement can have multiple ___________




57. If a user gets an error at the time of simulation which is “ the IF statement is illegal” what could be the reason?




58. In a clocked process, IF statement is used to __________




59. What will be the output in the following code? ARCHITECTURE my_logic OF my_design IS BEGIN a <= 1; b <= 1; PROCESS (a, b) BEGIN IF (a AND b = 1) THEN output <= a; ELSIF (a OR b = 1) THEN output <= b; ELSE output <= 0; END IF; END PROCESS; END my_logic;




60. What is the problem with IF statement?




61. In which of the following statements, all the branches are equal in priority?




62. In case any of the conditions is not covered by ‘cases’ in the case statement, which of the following keyword can be used to cover all those conditions?




63. CASE is a sequential statement, which is similar to _________ concurrent statement.




64. What will be the value of Z in the following code? ENTITY case_1 IS Port (a, b, c, y : IN INTEGER range 0 TO 31 z : OUT INTEGER range 0 TO 31) ARCHITECTURE example OF case_1 IS BEGIN y <= 2; a <= 4; b <= 5; c <=6; PROCESS(a, b, c, y) BEGIN CASE y+1 IS WHEN 1 => z <= a; WHEN 2 => z <= b; WHEN 3 => z <= c; WHEN OTHERS => Z <= 0; END CASE; END PROCESS; END example;




65. What should be the type of choices in the CASE statement?




66. If one wants to perform no action, when any condition is true, then which of the following keyword can be used?




67. It is not possible to use range with _________ types.




68. The CASE statement in VHDL is similar to _________ in C.




69. Which of the following operators can’t be used in the choices of a CASE?




70. What is the main use of a CASE statement?




71. Which of the following is most complex?




72. Which of the following is not a legal statement used Ii CASE?




73. A loop statement is used where we needs to ________




74. Loop is a ________ statement.




75. What is the use of FOR loop?




76. What is the use of WHILE loop?




77. What does the next statement in loops do?




78. What is the syntax to use the NEXT statement?




79. The correct syntax for using EXIT in a loop is ___________




80. FOR loop uses a loop index, the type of loop index is _________




81. Where do we declare the loop index of a FOR LOOP?




82. A FOR loop is inside a WHILE loop. Inside the FOR loop, the EXIT statement is used in such a way that after 4 iterations, it will execute. After the execution of EXIT statement, the control will be passed ________




83. On what side of the assignment statement, one can use a loop index?




84. The FOR loop is not synthesizable if it contains ______ statement. a) d)




85. The FOR loop is not synthesizable if it contains ______ statement.