VHDL MCQ Quiz Hub

VHDL Mcq – Types of VHDL Modelling

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

What does modeling type refer to?





✅ Correct Answer: 2

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





✅ Correct Answer: 4

In behavioral modeling, what do descriptive statements describe?





✅ Correct Answer: 1

In behavioral modeling, what do descriptive statements describe?





✅ Correct Answer: 1

Which of the following statement is used in structural modeling?





✅ Correct Answer: 1

What is the basic unit of behavioral description?





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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;





✅ Correct Answer: 4

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;





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Ports are known as _________ to the component.





✅ Correct Answer: 4

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





✅ Correct Answer: 3

The signal assignment is considered as a ________





✅ Correct Answer: 1

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





✅ Correct Answer: 4

The sequential assignment statement is activated, whenever ________





✅ Correct Answer: 2

The concurrent assignment statement is activated whenever ______





✅ Correct Answer: 3

The concurrent assignment statement is activated whenever ______





✅ Correct Answer: 3

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





✅ Correct Answer: 1

The conditional assignment statement is a _________ assignment.





✅ Correct Answer: 2

The conditional assignment statement is a _________ assignment.





✅ Correct Answer: 2

Delays are generally ignored in ________ assignments statements.





✅ Correct Answer: 3

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





✅ Correct Answer: 4

Which of the following is a variable assignment statement?





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

The selected concurrent statement is equivalent to ________ sequential statement.





✅ Correct Answer: 4

Those statement which are placed under ________ are concurrent.





✅ Correct Answer: 3

Process is a _______ statement.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Local variables in a process can be declared __________





✅ Correct Answer: 3

Sensitivity list of a process contains __________





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 4

A __________ can’t be declared inside a process.





✅ Correct Answer: 1

The process can be __________ by using WAIT statements.





✅ Correct Answer: 3

A postponed process runs when ___________





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Which of the following signal uses keyword EVENT?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

What kind of statement is the IF statement?





✅ Correct Answer: 2

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





✅ Correct Answer: 4

Which of the following represents the correct order for keywords?





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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;





✅ Correct Answer: 3

Which of the following condition has topmost priority?





✅ Correct Answer: 1

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





✅ Correct Answer: 1

One IF statement can have multiple ___________





✅ Correct Answer: 2

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





✅ Correct Answer: 1

In a clocked process, IF statement is used to __________





✅ Correct Answer: 3

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;





✅ Correct Answer: 4

What is the problem with IF statement?





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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;





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

It is not possible to use range with _________ types.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

What is the main use of a CASE statement?





✅ Correct Answer: 4

Which of the following is most complex?





✅ Correct Answer: 2

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





✅ Correct Answer: 4

A loop statement is used where we needs to ________





✅ Correct Answer: 3

Loop is a ________ statement.





✅ Correct Answer: 2

What is the use of FOR loop?





✅ Correct Answer: 1

What is the use of WHILE loop?





✅ Correct Answer: 2

What does the next statement in loops do?





✅ Correct Answer: 1

What is the syntax to use the NEXT statement?





✅ Correct Answer: 2

The correct syntax for using EXIT in a loop is ___________





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 4

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 ________





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3