All Keywords in VHDL

VHDL

This set of VHDL Multiple Choice Questions & Answers (MCQs) focuses on “All Keywords in VHDL”.

1. What is the use of ABS keyword?
a) To use only complete number
b) To convert integer operand into real number
c) To convert decimal real operand into integer
d) To return absolute value of the operand

2. Which of the following keyword was not present before VHDL 93?
a) OR
b) NOT
c) XNOR
d) XOR

3. Which of the following keyword is used to declare a pointer?
a) ACCESS
b) POINT
c) POINTER
d) USE

4. ACCESS type can’t be used in ________ directly.
a) Process
b) Architecture
c) Functions
d) Loop

5. AFTER keyword is generally used with which of the following?
a) IS
b) IF
c) Assignment
d) When

6. Which of the following assignment is associated with OTHERS keyword?
a) <=
b) =>
c) :=
d) >=

7. Which of the following keyword is not associated with arrays?
a) TO
b) DOWNTO
c) ARRAY
d) GROUP

8. Which of the following is not a reserved word in VHDL?
a) Constant
b) Identifier
c) Variable
d) Signal

9. Which of the following is a reserved word, which may be used to terminate a loop?
a) BREAK
b) CONTINUE
c) EXIT
d) NULL

a) BLOCK

10. GUARDED keyword is associated with ______
a) BLOCK
b) PROCESS
c) FUNCTION
d) COMPONENT

11. When the keyword GUARDED is used, it is always mandatory that the statements inside will be executed concurrently.
a) True
b) False

12. Among the following, with which keyword MAP is generally used?
a) IS
b) PORT
c) COMPONENT
d) LABEL

13. Impure is a type of _______
a) Data type
b) Array
c) Function
d) Component

14. How does keyword inertial affect an assignment statement?
a) By defining initial value from which delay should be started
b) To prevent overriding of following delay assignment statements
c) To specify wire delay
d) No effect

15. Which of the following keyword must be used to specify wire delay?
a) TRANSPORT
b) INERTIAL
c) WIRE
d) DELTA

16. Which of the following is associated with the INOUT keyword?
a) Type of a signal
b) Mode of a signal
c) Name of a signal
d) Function of a signal

17. The word LABEL is not reserved in VHDL.
a) True
b) False

18. What is LINKAGE keyword associated with?
a) Signals
b) Variables
c) Constants
d) Identifiers

19. LINKAGE keyword is same as _______ mode.
a) IN
b) OUT
c) INOUT
d) BUFFER

20. MOD keyword is a ________
a) Data type
b) Literal
c) Operator
d) Function

21. The use of NEXT in VHDL is similar to _________ in C.
a) Break
b) Continue
c) Exit
d) Do

22. NULL keyword is most of the time useful with _______ part of _______ statement.
a) IF, IF
b) ELSIF, IF
c) OTHERS, CASE
d) NEXT, LOOP

23. When a port of a component is not connected to any signal, then which of the following keyword is used to indicate the situation?
a) OPEN
b) CLOSED
c) ON
d) OFF

24. Which of the line(s) in following code is not legal?

L1 : PROCESS(a,b)
L2 : SIGNAL x;
L3 : BEGIN
L4 : c<= a AFTER 10 ns;
L5: END PROCESS

a) L2 only
b) L4 only
c) No error
d) Both L2 and L4

25. A POSTPONED keyword used with a process will make it wait till _________
a) A specific process is suspended
b) A signal from the sensitivity list changes
c) All the processes are suspended
d) All the signals in sensitivity list changes

26. Which of the following keyword is used to identify a clocked process?
a) CLOCKED
b) CLKED
c) SEQ
d) No specific keyword

27. RANGE keyword is always used in _______
a) Type declaration
b) Array declaration
c) Loop declaration
d) Process declaration

28. If we don’t use any keyword in the function definition, then which of the following is the type of function?
a) IMPURE
b) PURE
c) CASE
d) CONCURRENT

29. The REPORT keyword is usually associated with _______
a) RECORD
b) NULL
c) ASSERT
d) IF

30. On which side of a signal assignment statement, UNAFFECTED keyword can be used?
a) Left hand side
b) Right hand side
c) On any of the side
d) Can’t be used in an assignment statement

Leave a Reply

Your email address will not be published. Required fields are marked *