Complete the code to declare a parameter named WIDTH with a default value of 8.
module my_module #(parameter [1] = 8) (); endmodule
The parameter name is WIDTH as specified in the module.
Complete the code to instantiate my_module with WIDTH set to 16.
my_module #(.WIDTH([1])) instance_name ();
To override the parameter WIDTH to 16, use .WIDTH(16) in the instantiation.
Fix the error in the parameter declaration by completing the code.
module my_module #(parameter [1] 8) (); endmodule
The correct syntax for parameter assignment is parameter NAME = value.
Fill both blanks to declare two parameters WIDTH and DEPTH with default values 8 and 4.
module my_module #(parameter [1] = 8, parameter [2] = 4) (); endmodule
The parameters are named WIDTH and DEPTH with values 8 and 4 respectively.
Fill all three blanks to instantiate my_module with WIDTH=16, DEPTH=4, and SIZE=32 parameters.
my_module #(.WIDTH([1]), .DEPTH([2]), .SIZE([3])) instance ();
The parameters are set as WIDTH=16, DEPTH=4, and SIZE=32 in the instantiation.
