0
0
VHDLprogramming~10 mins

Why combinational design is the VHDL foundation - Test Your Understanding

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

Complete the code to declare a combinational process sensitive to inputs a and b.

VHDL
process([1])
begin
  y <= a and b;
end process;
Drag options to blanks, or click blank then click option'
Areset
Bclk
Ca, b
Dy
Attempts:
3 left
💡 Hint
Common Mistakes
Using clock or reset signals in sensitivity list for combinational logic.
Leaving sensitivity list empty.
2fill in blank
medium

Complete the code to assign output y as the OR of inputs a and b.

VHDL
y <= a [1] b;
Drag options to blanks, or click blank then click option'
Aand
Bor
Cnand
Dxor
Attempts:
3 left
💡 Hint
Common Mistakes
Using AND instead of OR.
Using NAND or XOR which change logic behavior.
3fill in blank
hard

Fix the error in the process sensitivity list for combinational logic.

VHDL
process([1])
begin
  y <= a xor b;
end process;
Drag options to blanks, or click blank then click option'
Aclk
Breset
Cy
Da, b
Attempts:
3 left
💡 Hint
Common Mistakes
Including clock or reset in sensitivity list for combinational logic.
Omitting inputs from sensitivity list.
4fill in blank
hard

Fill both blanks to complete the combinational assignment and sensitivity list.

VHDL
process([1])
begin
  y <= a [2] b;
end process;
Drag options to blanks, or click blank then click option'
Aa, b
Band
Cor
Dclk
Attempts:
3 left
💡 Hint
Common Mistakes
Using clock in sensitivity list for combinational logic.
Using OR instead of AND when AND is required.
5fill in blank
hard

Fill all three blanks to create a combinational process that outputs y as NAND of a and b.

VHDL
process([1])
begin
  y <= a [2] b;
  y <= not (a and b) when [3] else y;
end process;
Drag options to blanks, or click blank then click option'
Aa, b
Band
Ctrue
Dclk
Attempts:
3 left
💡 Hint
Common Mistakes
Including clock in sensitivity list.
Not inverting output correctly.
Using 'false' instead of 'true' in conditional assignment.