Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to assign the value '1' to the signal 'clk'.
VHDL
clk [1] '1';
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variables, not signals.
Using '=' which is a comparison operator.
Using '=>' which is used in port maps, not assignments.
✗ Incorrect
In VHDL, the signal assignment operator is <=. It assigns a value to a signal.
2fill in blank
mediumComplete the code to assign the value of 'input_signal' to 'output_signal'.
VHDL
output_signal [1] input_signal; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variables.
Using '=' which compares values.
Using '=>' which is for port mapping.
✗ Incorrect
Signal assignment uses <= to assign values from one signal to another.
3fill in blank
hardFix the error in the signal assignment statement.
VHDL
signal_a [1] '0';
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' instead of '<=' for signals.
Using '=' which is a comparison operator.
Using '=>' which is for port mapping.
✗ Incorrect
The correct signal assignment operator is <=. Using ':=' causes an error because it is for variables.
4fill in blank
hardFill both blanks to assign '1' to 'reset_signal' and '0' to 'enable_signal'.
VHDL
reset_signal [1] '1'; enable_signal [2] '0';
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing ':=' and '<=' operators.
Using '=' or '=>' which are incorrect here.
✗ Incorrect
Both signals must use the signal assignment operator <= to assign values.
5fill in blank
hardFill all three blanks to assign values to signals 'a', 'b', and 'c' correctly.
VHDL
a [1] '1'; b [2] '0'; c [3] 'Z';
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' for signals.
Using '=' which is a comparison.
Using '=>' which is for port maps.
✗ Incorrect
All signal assignments must use the <= operator.