1
\$\begingroup\$

I simulated a design and viewed waveforms in Simvision, and an input port width is shown as in1[223:0]. But, it was declared as:

parameter BW = 13;
...
input [16*BW-1:0] in1;

I'm expecting it to be in1[207:0].

What are any reasons the port size would be changed by the simulator in Verilog?

toolic
10.8k11 gold badges31 silver badges35 bronze badges
asked Jul 29, 2022 at 17:33
\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

A parameter value can be overridden when a module is instanced inside another module.

Since in1 is 224 bits wide, and since 224 = 16 * 14, the BW parameter is probably being overridden as 14 (BW = 14).

Refer to How to instantiate a module.

answered Jul 29, 2022 at 17:39
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.