Question 1
GENERICs are not declared in the entity.
A. TRUE
B. FALSE
View Answer
Answer: Option B
Explanation:
The declaration of GENERICs is also done in the entity itself. It is used to declare the constants that can be used to control the structure of behavior of the entity. The Generics are declared before port declarations.
Question 2
How to control the structure and timing of the entity can be changed?
A. By using TIME variable in the entity
B. By changing the entity declaration from time to time
C. By using some special code
D. By using GENERICS
View Answer
Answer: Option D
Explanation:
The structure and timing constraints can be changed by declaring some constant using GENERICS declaration. For example, in the full adder example, number of bits to be added can be declared as array with its size N. this N can be declared as a constant in the GENERIC declaration part of entity. By changing N only, one can change number of bits for the addition.
Question 3
In an assignment statement, OUT signal can be used only to the ___________
A. Left of <= operator
B. Right of <= operator
C. Any side of <= operator
D. Right of := operator
View Answer
Answer: Option A
Explanation:
OUT signal is used to take an output from any entity. Therefore, we can assign it any value but can’t read any value from this type of signal. So, in an assignment statement, OUT type signal can be used on the left side of <= operator.
Question 4
On which side of assignment operator, we can use the IN type signal?
A. Left
B. Right
C. Both
D. Can’t be used
View Answer
Answer: Option B
Explanation:
IN signal is for input only. We can read the value from IN signal. Therefore, it can be placed only on the right side of assignment.
Question 5
The entity name ‘xyz’ and ‘XYZ’ will be treated the same.
A. TRUE
B. FALSE
View Answer
Answer: Option A
Explanation:
VHDL is a strongly typed language which means that there are very strict rules regarding the data types. But, there is no difference between names of entity. VHDL is not case sensitive therefore, ‘xyz’ and ‘XYZ’ are same.
Question 6
What is the difference between OUT and BUFFER?
A. BUFFER can’t be used inside the entity for reading the value and OUT can be
B. BUFFER can only be read whereas OUT can only be assigned a value
C. BUFFER can be read as well as assigned a value but OUT can only be assigned
D. Both are same
View Answer
Answer: Option C
Explanation:
BUFFER is a unidirectional mode used as an output from the entity. But, the value of BUFFER can be used inside the entity i.e. it can appear on both sides of assignment operator whereas the value of OUT can’t be used inside the entity and can appear on the left side of assignment operator.
Question 7
Which of the following can be the name of an entity?
A. NAND
B. Nand_gate
C. Nand gate
D. AND
View Answer
Answer: Option B
Explanation:
The name of entity can be basically any name, except VHDL reserved words. NAND is reserved for nand operation and same applies for AND. The name of entity can’t contain any space character. Therefore, only option b is the only legal word.
Question 8
Which of the following can have more than one driver?
A. IN
B. OUT
C. INOUT
D. BUFFER
View Answer
Answer: Option C
Explanation:
INOUT is the only bidirectional signal. This mode can have more than one driver. Therefore, INOUT can be driven by more than one drivers. All other modes like IN, OUT, BUFFER can have only one driver.
Question 9
Which of the following is not defined by the entity?
A. Direction of any signal
B. Names of signal
C. Different ports
D. Behavior of the signals
View Answer
Answer: Option D
Explanation:
Entity specifies the name of the entity, the ports of the entity and all the information related to that entity. All designs are created using one or more entities. Declaration of ports in an entity includes the name of signals and there directions.
Question 10
Which of the following is the default mode for a port variable?
A. IN
B. OUT
C. INOUT
D. BUFFER
View Answer
Answer: Option A
Explanation:
IN is the default mode for a port variable. If the mode of any signal is not specified in the port declaration, then it is considered as IN type signal. All other types are needed to be specified at the time of declaration.
Question 11
Which of the following mode of the signal is bidirectional?
A. IN
B. OUT
C. INOUT
D. BUFFER
View Answer
Answer: Option C
Explanation:
INOUT is the only bidirectional mode for any signal. IN, OUT and BUFFER are unidirectional mode since they specifies the type to be either input or output. INOUT can be used as both an input to an entity and as an output of the entity. We can read as well as assign the value for INOUT type signal.