Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to instantiate the module using positional port connection.
Verilog
my_module instance1([1]);Attempts:
3 left
💡 Hint
Common Mistakes
Using named port syntax when positional connection is required.
Mixing order of signals in positional connection.
✗ Incorrect
When using positional port connection, ports are connected by order without naming them.
2fill in blank
mediumComplete the code to instantiate the module using named port connection.
Verilog
my_module instance2([1]);Attempts:
3 left
💡 Hint
Common Mistakes
Using positional syntax when named connection is required.
Incorrect syntax like missing parentheses or dots.
✗ Incorrect
Named port connection uses dot notation with port names and connected signals.
3fill in blank
hardFix the error in the named port connection syntax.
Verilog
my_module instance3([1]);Attempts:
3 left
💡 Hint
Common Mistakes
Using equal signs instead of parentheses in named connections.
Omitting dots before port names.
✗ Incorrect
Correct named port connection uses .port(signal) without equal signs.
4fill in blank
hardFill both blanks to instantiate the module with named ports and connect signals correctly.
Verilog
my_module instance4([1], [2]);
Attempts:
3 left
💡 Hint
Common Mistakes
Using signal names without dot notation.
Mixing positional and named syntax.
✗ Incorrect
Named port connections require dot notation with port names and signals.
5fill in blank
hardFill all three blanks to instantiate the module using positional connection with correct signal order.
Verilog
my_module instance5([1], [2], [3]);
Attempts:
3 left
💡 Hint
Common Mistakes
Using named port syntax in positional connection.
Mixing signal order causing wrong connections.
✗ Incorrect
Positional connection requires signals in the order of ports declared in the module.
