Forum Discussion
On board 2 bit input
- 2 years ago
Hi,
The error occurs because of this line input logic sel [1:0], in Task2 module due to unpacked array.
Have to change to packed array input logic [1:0] sel,
Thanks,
Best Regards,
Sheng
Need to see your top-level code, but a correct instantiation would be something like:
Task2 try1 (MAX10_CLK1_50,{ARDUINO_IO[9],ARDUINO_IO[8]},ARDUINO_IO[7]);
Curly brackets are concatenation.
Also note that initial blocks are not synthesizable. You should have a reset control signal and use that to reset all those counters.
- antonto2 years ago
Occasional Contributor
Thank you for your time.
Im getting this error
Error (10928): SystemVerilog error at DE10_LITE_Golden_Top.v(136): packed array type cannot be assigned to unpacked array type - types do not match
and this one
Error (10716): SystemVerilog error at DE10_LITE_Golden_Top.v(136): can't pass value from actual to formal input "sel" with incompatible type
Same with the answer from Sheng