Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
2.2.3. VHDL Data Types and Operators
This section
Practice test
12 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
What data type would you use to represent a binary value?
Hint
Think of digital signals.
- 2.
Which operator would you use to add two INTEGER values?
Hint
It's a basic arithmetic operation.
- 3.
Which of the following is NOT a VHDL data type?
- BIT
- FLOAT
- INTEGER
- BOOLEAN
Hint
Recall which data types are mentioned in VHDL.
- 4.
True or False: UNSIGNED can represent negative integers.
- True
- False
Hint
Think about the definition of UNSIGNED.
- 5.
Create a VHDL expression that evaluates if a BIT signal is high and an INTEGER signal is even using the appropriate operators.
Hint
Combine logical and relational checks in your expression.
- 6.
In a loop, calculate the sum of INTEGER numbers from 1 to 10 and print if each number is odd or even.
Hint
Utilize arithmetic and modulus operations in your loop logic.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
2 more questions available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting