Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to specify the timescale directive with a time unit of 1 nanosecond.
Verilog
`[1] 1ns / 1ps
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'timeunit' instead of 'timescale'.
Omitting the backtick (`) before the directive.
Adding extra words after the directive keyword.
✗ Incorrect
The correct syntax to specify the timescale directive in Verilog is `timescale followed by the time unit and precision.
2fill in blank
mediumComplete the code to specify a timescale directive with a time unit of 10 picoseconds and a precision of 1 picosecond.
Verilog
`timescale [1] / 1ps
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing time unit with precision.
Using '10ns' instead of '10ps'.
Swapping the time unit and precision.
✗ Incorrect
The time unit is specified first in the timescale directive. Here, it should be 10ps for 10 picoseconds.
3fill in blank
hardFix the error in the timescale directive to correctly specify a time unit of 1 microsecond and precision of 10 nanoseconds.
Verilog
`timescale 1us / [1]
Attempts:
3 left
💡 Hint
Common Mistakes
Using 1ns instead of 10ns for precision.
Using a precision larger than the time unit.
Omitting the precision value.
✗ Incorrect
The precision must be 10ns to match the required precision in the timescale directive.
4fill in blank
hardFill both blanks to specify a timescale directive with a time unit of 100 picoseconds and precision of 10 picoseconds.
Verilog
`timescale [1] / [2]
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping time unit and precision values.
Using precision larger than time unit.
Using incorrect units like ns instead of ps.
✗ Incorrect
The time unit is 100ps and the precision is 10ps, so the directive is `timescale 100ps / 10ps.
5fill in blank
hardFill all three blanks to create a Verilog module with a timescale directive of 1ns time unit and 100ps precision.
Verilog
`timescale [1] / [2] module [3]; endmodule
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect timescale units.
Using invalid module names.
Omitting the module keyword.
✗ Incorrect
The timescale directive uses 1ns for time unit and 100ps for precision. The module name is 'my_module'.
