Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to print a simple debug message using the report statement.
VHDL
report [1]; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting the double quotes around the message
Using single quotes instead of double quotes
Writing the message without quotes
✗ Incorrect
In VHDL, the report statement requires a string literal enclosed in double quotes to print a message.
2fill in blank
mediumComplete the code to report a warning message with severity level.
VHDL
report "Warning: signal unstable" severity [1];
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'note' instead of 'warning' for warnings
Omitting the severity level
Using invalid severity levels
✗ Incorrect
The severity level 'warning' is used to indicate a warning message in VHDL report statements.
3fill in blank
hardFix the error in the report statement to correctly display an error message.
VHDL
report [1] severity error; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using single quotes instead of double quotes
Not enclosing the message in quotes
Adding a semicolon inside the quotes
✗ Incorrect
The message must be a string literal enclosed in double quotes for the report statement to work correctly.
4fill in blank
hardFill both blanks to report an informational message with the correct severity.
VHDL
report [1] severity [2];
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'warning' instead of 'note' for info messages
Not using double quotes for the message
Mixing up severity levels
✗ Incorrect
The message must be a string literal in double quotes, and the severity for informational messages is 'note'.
5fill in blank
hardFill both blanks to report a failure message with the correct string and severity.
VHDL
report [1] severity [2];
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'error' instead of 'failure' for critical errors
Not enclosing the message in double quotes
Confusing message strings
✗ Incorrect
The message must be a string literal in double quotes. The severity 'failure' indicates a serious error.