reg a[4:0];
reg inv_a[4:0];
assign inv_a = ~a; //This doesn't work.
When I tried modelsim with above statement, it throw: "Illegal operation on unpacked types"
Can someone please point out how to correctly negate an array in Verilog?
Edit: Give more information, does this change any recommendation?
module router_main(
input bustorouter_ready[4:0],
);
wire inv_bustorouter_ready[4:0];
assign inv_bustorouter_ready = ~bustorouter_ready; //Still doesn't work.