Hardware interview practice
Packages
Which statement about word_t is correct?
Starting point
Question code
package p;
parameter int W = 8;
typedef logic [W-1:0] word_t;
endpackage
module m; p::word_t x; endmoduleChoose one
Answer choices
- A. x is 8 bits, and this package parameter is not overridden per module instance like a module parameter
- B. x has implementation-defined width until m is instantiated
- C. Each import p::* creates a new specialization of the package
- D. x is 32 bits because all parameter-based typedefs use int width
