logo
  • Home
  • Test & Rank
  • About
  • Training
  • Programming
  • CS
  • IT
  • IS
  • ECE
  • EEE
  • EE
  • Civil
  • Mechanical
  • Chemical
  • Metallurgy
  • Instrumentation
  • Aeronautical
  • Aerospace
  • Biotechnology
  • Mining
  • Marine
  • Agriculture
  • MCA
  • BCA
  • Internship
  • Jobs
  • Contact

VHDL Multiple Choice Questions | MCQs | Quiz

VHDL Interview Questions and Answers
Practice VHDL questions and answers for interviews, campus placements, online tests, aptitude tests, quizzes and competitive exams.

Get Started

•   EDA Tools
•   HDLs Needs
•   VHDL Common Terms
•   Entity & Its Declaration
•   Architecture
•   Data Objects & Types
•   User defined Data Types
•   Data Conversion
•   Operators - 1
•   Operators - 2
•   Behavioural Modelling
•   Behavioural Modelling Types
•   Generics
•   Block Statement
•   Structural Modelling - 1
•   Structural Modelling - 2
•   Structural Modelling - 3
•   VHDL Modelling Types
•   Signal Assignment - 1
•   Signal Assignment - 2
•   Process Statement - 1
•   Process Statement - 2
•   IF Statement
•   Case Statement - 1
•   Case Statement - 2
•   LOOP Statement - 1
•   LOOP Statement - 2
•   Assert Statement
•   WAIT Statements - 1
•   WAIT Statements - 2
•   WAIT Statements - 3
•   Signal vs Variables - 1
•   Signal vs Variables - 2
•   Package
•   Some Predefined Packages
•   Functions & Subprograms-1
•   Functions & Subprograms-2
•   Functions & Subprograms-3
•   Procedures - 1
•   Procedures - 2
•   Attributes
•   Value Kind Attributes
•   Function Kind Attributes
•   Signal Kind Attributes
•   Range Kind Attributes
•   Configurations
•   Overloading
•   Aliases Expressions
•   Generate Statement
•   VHDL Keywords - 1
•   VHDL Keywords - 2
•   VHDL Keywords - 3
•   Functions Flattening
•   ↓ Implementing Gates ↓
•   Different Modelling - 1
•   Different Modelling - 2
•   ↓ VHDL Implementation ↓
•   Sequential Circuits
•   Synchronous Reset
•   Asynchronous Preset
•   Logic Functions - 1
•   Logic Functions - 2
•   Combinational Circuits - 1
•   Combinational Circuits - 2
•   ↓ VHDL Designing ↓
•   Shift Registers
•   Designing Counters
•   Moore Type FSM
•   Mealy Type FSM
•   Top Level System Design
•   RTL Simulation

Best Reference Books

VHDL Books
« Prev Page
Next Page »

VHDL Questions and Answers – Aliases and Qualified Expressions

Posted on December 5, 2018 by Manish

This set of VHDL Multiple Choice Questions & Answers (MCQs) focuses on “Aliases and Qualified Expressions”.

1. What does an alias declaration actually do?
a) Creates a new object
b) Doesn’t create a new object
c) Creates a new signal
d) Overwrites a file
View Answer

Answer: b
Explanation: An alias declaration is used for an alternative name for an existing object. An object is any signal, variable or constant. Thus, an alias creates a duplicate or xerox of existing object but doesn’t create a new object.
advertisement

2. Which of the following is a correct syntax for declaring an alias?
a) ALIAS alias_name : object_name;
b) ALIAS alias_name ; object_name;
c) ALIAS alias_name – alias_type object_name;
d) ALIAS alias_name : alias_type object_name;
View Answer

Answer: d
Explanation: To declare an alias, the keyword ALIAS is used. Then, the colon sign followed by the name of ALIAS. Then, the name of the object is then specified whose alias is to be created. So, that the duplicate for that object can be created.

3. For what purpose in the following, one can use alias?
a) To divide the complex part into smaller slices
b) To decrease the simulation time
c) To make use of same memory
d) To assign different memory locations
View Answer

Answer: a
Explanation: In the complex designs, for example, in the design of CPU, one may need to divide the complex part I to smaller reference slices which are easy to maintain and it also increases the readability of the code.

4. Which of the following can’t be aliased?
a) Signal
b) Loop variable
c) Variable
d) File
View Answer

Answer: b
Explanation: All the objects from the VHDL can be aliased i.e. signals, variables, constants. Even all the non-objects can also be aliased except Labels, Loop parameters and Generate parameters. These are the only three exceptions.

5. An alias of array type can reverse the order of the array.
a) True
b) False
View Answer

Answer: a
Explanation: It is possible to reverse the order of an array in its alias created. For example, if an array is defined with the range 0 TO 7, then its alias can also define 7 DOWNTO 0. It will be completely legal in VHDL.
advertisement

6. In what way the qualified expression differ from a normal expression?
a) It has a keyword qualified in front of it
b) Its type is explicitly defined
c) Its range is defined
d) It is similar to simple expression but is synthesizable
View Answer

Answer: b
Explanation: Qualified expression is an expression whose type is being explicitly specified in the expression itself. In some cases, it is necessary to specify the type other it may be ambiguous to interpret the expression.

7. Which of the following is the correct syntax to define a qualified expression?
a) (expression)’ type
b) (expression)” type
c) type’ (expression)
d) type” (expression)
View Answer

Answer: c
Explanation: To define a qualified expression, first we need to specify the type which is followed by a single quotation mark. After specifying the type, then the expression is written.

8. Where one should use the qualified expression?
a) In all overloaded functions
b) In overloaded functions with different number of parameters
c) In overloaded functions with different parameter names
d) In overloaded functions with different parameter types
View Answer

Answer: d
Explanation: When the parameters in two overloaded functions are of different type, then qualified expressions may be needed. In case of different number of parameters, it is easy to identify which function is called, to the user and to the simulation tool as well. But, if there are same number of parameters but different type, then the things may be ambiguous. So, there we need to specify the type of expression.

9. Which one of the following would be the best use of qualified expression?
a) Function overloaded with bit and integer types
b) Function overloaded with bit_vector and std_logic_vector
c) Function overloaded with bit_vector and std_logic
d) Function overloaded with std_logic_vector and bit
View Answer

Answer: b
Explanation: In case of function overloading, where in one function the parameter is of bit_vector type and other is of std_logic_vector type, then it could be difficult to identify that which function is being called. Say, 0110 is the argument passed to function, one can’t identify its type by seeing. So, qualified expression must be used.

10. A qualified expression is synthesizable in VHDL.
a) True
b) False
View Answer

Answer: a
Explanation: A qualified expression is usually supported by the synthesis tools. So, qualified expression is synthesizable, the only condition is that it should use a type which can be synthesized.
advertisement

Sanfoundry Global Education & Learning Series – VHDL.

To practice all areas of VHDL, here is complete set of 1000+ Multiple Choice Questions and Answers.

« Prev Page - VHDL Questions and Answers – Overloading
» Next Page - VHDL Questions and Answers – Generate Statement

« VHDL Questions and Answers – Overloading
VHDL Questions and Answers – Generate Statement »
advertisement

Deep Dive @ Sanfoundry:

  1. PHP Questions and Answers
  2. Oracle Database Questions and Answers
  3. C# Programming Examples on Delegates
  4. Java Programming Examples on Arrays
  5. C# Questions and Answers
  6. Java Programming Examples on Java.Lang
  7. C Programming Examples on Stacks & Queues
  8. C# Programming Examples on Arrays
  9. Object Oriented Programming Questions and Answers
  10. VHDL Questions and Answers
Manish Bhojasia
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Facebook | Twitter

Best Careers

Developer Tracks
SAN Developer
Linux Kernel Developer
Linux Driver Developer
Linux Network Developer

Live Training Photos
Mentoring
Software Productivity
GDB Assignment
Sanfoundry is No. 1 choice for Deep Hands-ON Trainings in SAN, Linux & C, Kernel Programming. Our Founder has trained employees of almost all Top Companies in India such as VMware, Citrix, Oracle, Motorola, Ericsson, Aricent, HP, Intuit, Microsoft, Cisco, SAP Labs, Siemens, Symantec, Redhat, Chelsio, Cavium, ST-Micro, Samsung, LG-Soft, Wipro, TCS, HCL, IBM, Accenture, HSBC, Mphasis, Tata-Elxsi, Tata VSNL, Mindtree, Cognizant and Startups.

Best Trainings

SAN I - Technology
SAN II - Admin
Linux Fundamentals
Advanced C Training
Linux-C Debugging
System Programming
Network Programming
Linux Threads
Kernel Programming
Kernel Debugging
Linux Device Drivers

Best Reference Books

Computer Science Books
Algorithm & Programming Books
Electronics Engineering Books
Electrical Engineering Books
Chemical Engineering Books
Civil Engineering Books
Mechanical Engineering Books
Industrial Engineering Books
Instrumentation Engg Books
Metallurgical Engineering Books
All Stream Best Books

Questions and Answers

1000 C Questions & Answers
1000 C++ Questions & Answers
1000 C# Questions & Answers
1000 Java Questions & Answers
1000 Linux Questions & Answers
1000 Python Questions
1000 PHP Questions & Answers
1000 Hadoop Questions
Cloud Computing Questions
Computer Science Questions
All Stream Questions & Answers

India Internships

Computer Science Internships
Instrumentation Internships
Electronics Internships
Electrical Internships
Mechanical Internships
Industrial Internships
Systems Internships
Chemical Internships
Civil Internships
IT Internships
All Stream Internships

About Sanfoundry

About Us
Copyright
Terms
Privacy Policy
Jobs
Bangalore Training
Online Training
Developers Track
Mentoring Sessions
Contact Us
Sitemap
© 2011 Sanfoundry. All Rights Reserved.