In Verilog, how do you specify the size of a reg or wire data type?
In Verilog, how do you specify the size of a reg or wire data type?
- using the size keyword
- with the bits specifier
- by declaring a width variable
- using the [n:0] notation
Correct answer
D. using the [n:0] notation
Explanation
A range such as [7:0] specifies eight packed bits because both endpoints are included.