Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to assign the value '1' to signal 'a' concurrently.
VHDL
a [1] '1';
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variable assignment inside processes.
Using '=' which is for comparisons, not assignments.
✗ Incorrect
In VHDL, concurrent signal assignment uses the '<=' operator to assign values to signals.
2fill in blank
mediumComplete the concurrent assignment to assign the sum of 'x' and 'y' to signal 'z'.
VHDL
z [1] x + y; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variables inside processes.
Using '=' which is for comparisons.
✗ Incorrect
Concurrent signal assignment uses '<=' to assign the result of expressions to signals.
3fill in blank
hardFix the error in the concurrent assignment to signal 'out1' with the value of 'in1'.
VHDL
out1 [1] in1; Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variables inside processes.
Using '=' which is for comparisons.
✗ Incorrect
Concurrent signal assignment requires '<=' operator, not ':=' or '='.
4fill in blank
hardFill both blanks to assign the logical AND of 'a' and 'b' to signal 'c' concurrently.
VHDL
c [1] a [2] b;
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' instead of '<=' for signal assignment.
Using '+' instead of 'and' for logical operation.
✗ Incorrect
Use '<=' for concurrent signal assignment and 'and' for logical AND operation.
5fill in blank
hardFill both blanks to assign the bitwise OR of 'x' and 'y' to signal 'result' concurrently.
VHDL
result [1] x [2] y ;
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' instead of '<=' for signal assignment.
Adding an extra operator after 'y'.
✗ Incorrect
Use '<=' for concurrent assignment, 'or' for bitwise OR, and no extra operator after 'y'.