0
0
VHDLprogramming~10 mins

Concurrent signal assignment in VHDL - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
A<=
B:=
C=
D=>
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variable assignment inside processes.
Using '=' which is for comparisons, not assignments.
2fill in blank
medium

Complete 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'
A:=
B=
C<=
D=>
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variables inside processes.
Using '=' which is for comparisons.
3fill in blank
hard

Fix 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'
A=>
B:=
C=
D<=
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' which is for variables inside processes.
Using '=' which is for comparisons.
4fill in blank
hard

Fill 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'
A<=
Band
C+
D:=
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' instead of '<=' for signal assignment.
Using '+' instead of 'and' for logical operation.
5fill in blank
hard

Fill 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'
A<=
Bor
D:=
Attempts:
3 left
💡 Hint
Common Mistakes
Using ':=' instead of '<=' for signal assignment.
Adding an extra operator after 'y'.